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.

57 lines
1.4 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libtirpc
  3. PKG_VERSION:=1.3.2
  4. PKG_RELEASE:=$(AUTORELEASE)
  5. PKG_SOURCE_URL:=@SF/libtirpc
  6. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  7. PKG_HASH:=e24eb88b8ce7db3b7ca6eb80115dd1284abc5ec32a8deccfed2224fc2532b9fd
  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. ifeq ($(HOST_OS),Darwin)
  26. HOST_CONFIGURE_ARGS += --disable-symvers
  27. endif
  28. TARGET_CFLAGS += -DGQ
  29. HOST_CFLAGS += -DGQ
  30. define Package/libtirpc/install
  31. $(INSTALL_DIR) $(1)/usr/lib
  32. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtirpc.so* $(1)/usr/lib/
  33. $(INSTALL_DIR) $(1)/etc
  34. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/netconfig $(1)/etc/
  35. endef
  36. define Build/InstallDev
  37. $(INSTALL_DIR) $(1)/usr/include
  38. $(INSTALL_DIR) $(1)/usr/lib
  39. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtirpc.{a,so*} $(1)/usr/lib
  41. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtirpc.pc $(1)/usr/lib/pkgconfig/libtirpc.pc
  43. endef
  44. $(eval $(call HostBuild))
  45. $(eval $(call BuildPackage,libtirpc))