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.

51 lines
1.4 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=rpcsvc-proto
  3. PKG_VERSION:=1.4
  4. PKG_RELEASE:=3
  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. BUILDONLY:=1
  25. endef
  26. define Package/rpcsvc-proto/description
  27. This package contains rpcsvc proto.x files from glibc, which are missing in libtirpc.
  28. Additional it contains rpcgen, which is needed to create header files and sources from protocol files.
  29. endef
  30. # need to use host tool
  31. define Build/Prepare
  32. $(Build/Prepare/Default)
  33. $(SED) 's,.*/rpcgen/rpcgen,\t$(STAGING_DIR_HOSTPKG)/bin/rpcgen,' $(PKG_BUILD_DIR)/rpcsvc/Makefile.am
  34. endef
  35. define Build/InstallDev
  36. $(INSTALL_DIR) $(1)/usr/include
  37. $(CP) $(PKG_INSTALL_DIR)/usr/include/rpcsvc $(1)/usr/include/
  38. endef
  39. $(eval $(call HostBuild))
  40. $(eval $(call BuildPackage,rpcsvc-proto))