You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.7 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=rpcsvc-proto
  3. PKG_VERSION:=1.4
  4. PKG_RELEASE:=2
  5. PKG_SOURCE_URL:=https://github.com/thkukuk/rpcsvc-proto/releases/download/v$(PKG_VERSION)/
  6. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  7. PKG_HASH:=867e46767812784d8dda6d8d931d6fabb30168abb02d87a2a205be6d5a2934a7
  8. PKG_MAINTAINER:=Andy Walsh <andy.walsh44+github@gmail.com>
  9. PKG_LICENSE:=BSD-3-clause
  10. PKG_LICENSE_FILES:=COPYING
  11. PKG_FIXUP:=autoreconf
  12. PKG_REMOVE_FILES:=autogen.sh
  13. PKG_INSTALL:=1
  14. PKG_BUILD_DEPENDS:=rpcsvc-proto/host
  15. include $(INCLUDE_DIR)/package.mk
  16. include $(INCLUDE_DIR)/nls.mk
  17. include $(INCLUDE_DIR)/host-build.mk
  18. define Package/rpcsvc-proto
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=rpcgen and rpcsvc proto.x files from glibc
  22. URL:=https://github.com/thkukuk/rpcsvc-proto
  23. DEPENDS:=$(INTL_DEPENDS)
  24. endef
  25. define Package/rpcsvc-proto/description
  26. This package contains rpcsvc proto.x files from glibc, which are missing in libtirpc.
  27. Additional it contains rpcgen, which is needed to create header files and sources from protocol files.
  28. endef
  29. # need to use host tool
  30. define Build/Prepare
  31. $(Build/Prepare/Default)
  32. $(SED) 's,.*/rpcgen/rpcgen,\t$(STAGING_DIR_HOSTPKG)/bin/rpcgen,' $(PKG_BUILD_DIR)/rpcsvc/Makefile.am
  33. endef
  34. define Build/InstallDev
  35. $(INSTALL_DIR) $(1)/usr/include
  36. $(CP) $(PKG_INSTALL_DIR)/usr/include/rpcsvc $(1)/usr/include/
  37. $(INSTALL_DIR) $(1)/usr/bin
  38. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rpcgen $(1)/usr/bin/
  39. endef
  40. # do we need rpcgen on target?
  41. define Package/rpcsvc-proto/install
  42. # $(INSTALL_DIR) $(1)/usr/bin
  43. # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rpcgen $(1)/usr/bin/
  44. endef
  45. $(eval $(call HostBuild))
  46. $(eval $(call BuildPackage,rpcsvc-proto))