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.

60 lines
1.6 KiB

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