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.6
  4. PKG_RELEASE:=2
  5. PKG_SOURCE_URL:=@SF/libtirpc
  6. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  7. PKG_HASH:=4278e9a5181d5af9cd7885322fdecebc444f9a3da87c526e7d47f7a12a37d1cc
  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_PARALLEL:=1
  14. include $(INCLUDE_DIR)/package.mk
  15. include $(INCLUDE_DIR)/host-build.mk
  16. define Package/libtirpc
  17. SECTION:=libs
  18. CATEGORY:=Libraries
  19. TITLE:=Library TI RPC for RPC bindings
  20. URL:=http://libtirpc.sourceforge.net/
  21. DEPENDS:=+libpthread
  22. endef
  23. CONFIGURE_ARGS += --disable-gssapi
  24. HOST_CONFIGURE_ARGS += --disable-gssapi
  25. TARGET_CFLAGS += -DGQ
  26. HOST_CFLAGS += -DGQ
  27. define Package/libtirpc/install
  28. $(INSTALL_DIR) $(1)/usr/lib
  29. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtirpc.so* $(1)/usr/lib/
  30. $(INSTALL_DIR) $(1)/etc
  31. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/netconfig $(1)/etc/
  32. endef
  33. define Build/InstallDev
  34. $(INSTALL_DIR) $(1)/usr/include
  35. $(INSTALL_DIR) $(1)/usr/lib
  36. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtirpc.{a,so*} $(1)/usr/lib
  38. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
  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))