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.

52 lines
1.4 KiB

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