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.1
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  6. PKG_SOURCE_URL:=https://github.com/thkukuk/rpcsvc-proto/releases/download/v$(PKG_VERSION)
  7. PKG_HASH:=9429e143bb8dd33d34bf0663f571d4d4a1103e1afd7c49791b367b7ae1ef7f35
  8. PKG_MAINTAINER:=Andy Walsh <andy.walsh44+github@gmail.com>
  9. PKG_LICENSE:=BSD-3-clause
  10. PKG_LICENSE_FILES:=COPYING
  11. PKG_INSTALL:=1
  12. PKG_BUILD_PARALLEL:=1
  13. HOST_BUILD_DEPENDS:=gettext-full/host
  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))