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.4 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libtirpc
  3. PKG_VERSION:=1.2.5
  4. PKG_RELEASE:=1
  5. PKG_SOURCE_URL:=@SF/libtirpc
  6. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  7. PKG_HASH:=f3b6350c7e9c3cd9c58fc7a5e5f8e6be469cc571bb5eb31eb9790b3e675186ca
  8. PKG_MAINTAINER:=Andy Walsh <andy.walsh44+github@gmail.com>
  9. PKG_LICENSE:=BSD-3-Clause
  10. PKG_FIXUP:=autoreconf
  11. PKG_REMOVE_FILES:=autogen.sh aclocal.m4
  12. PKG_INSTALL:=1
  13. include $(INCLUDE_DIR)/package.mk
  14. include $(INCLUDE_DIR)/host-build.mk
  15. define Package/libtirpc
  16. SECTION:=libs
  17. CATEGORY:=Libraries
  18. TITLE:=Library TI RPC for RPC bindings
  19. URL:=http://libtirpc.sourceforge.net/
  20. DEPENDS:=+libpthread
  21. endef
  22. CONFIGURE_ARGS += --disable-gssapi
  23. HOST_CONFIGURE_ARGS += --disable-gssapi
  24. TARGET_CFLAGS += -DGQ
  25. HOST_CFLAGS += -DGQ
  26. define Package/libtirpc/install
  27. $(INSTALL_DIR) $(1)/usr/lib
  28. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtirpc.so* $(1)/usr/lib/
  29. $(INSTALL_DIR) $(1)/etc
  30. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/netconfig $(1)/etc/
  31. endef
  32. define Build/InstallDev
  33. $(INSTALL_DIR) $(1)/usr/include
  34. $(INSTALL_DIR) $(1)/usr/lib
  35. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  36. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtirpc.{a,so*} $(1)/usr/lib
  37. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
  38. $(SED) 's,/usr,${STAGING_DIR}/usr,g' $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtirpc.pc
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtirpc.pc $(1)/usr/lib/pkgconfig/libtirpc.pc
  40. endef
  41. $(eval $(call HostBuild))
  42. $(eval $(call BuildPackage,libtirpc))