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.

53 lines
1.5 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=rpcsvc-proto
  3. PKG_RELEASE:=2
  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. HOST_BUILD_DEPENDS:=gettext-full/host
  16. PKG_BUILD_DEPENDS:=rpcsvc-proto/host
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/nls.mk
  19. include $(INCLUDE_DIR)/host-build.mk
  20. define Package/rpcsvc-proto
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=rpcgen and rpcsvc proto.x files from glibc
  24. URL:=https://github.com/thkukuk/rpcsvc-proto
  25. DEPENDS:=$(INTL_DEPENDS)
  26. BUILDONLY:=1
  27. endef
  28. define Package/rpcsvc-proto/description
  29. This package contains rpcsvc proto.x files from glibc, which are missing in libtirpc.
  30. Additional it contains rpcgen, which is needed to create header files and sources from protocol files.
  31. endef
  32. # need to use host tool
  33. define Build/Prepare
  34. $(Build/Prepare/Default)
  35. $(SED) 's,.*/rpcgen/rpcgen,\t$(STAGING_DIR_HOSTPKG)/bin/rpcgen,' $(PKG_BUILD_DIR)/rpcsvc/Makefile.am
  36. endef
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)/usr/include
  39. $(CP) $(PKG_INSTALL_DIR)/usr/include/rpcsvc $(1)/usr/include/
  40. endef
  41. $(eval $(call HostBuild))
  42. $(eval $(call BuildPackage,rpcsvc-proto))