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.

59 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.0.3
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_URL:=@SF/libtirpc
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  13. PKG_HASH:=86c3a78fc1bddefa96111dd233124c703b22a78884203c55c3e06b3be6a0fd5e
  14. PKG_MAINTAINER:=Andy Walsh <andy.walsh44+github@gmail.com>
  15. PKG_LICENSE:=BSD-3-Clause
  16. PKG_FIXUP:=autoreconf
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libtirpc
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=Library TI RPC for RPC bindings
  23. URL:=http://libtirpc.sourceforge.net/
  24. DEPENDS:=+libpthread
  25. endef
  26. CONFIGURE_ARGS += --disable-gssapi
  27. # Info from Buildroot Makefile
  28. # getrpcby{number,name} are only provided if 'GQ' is defined
  29. TARGET_CFLAGS += -DGQ
  30. #CONFIGURE_VARS += \
  31. # GSSGLUE_LIBS="-lkrb5 -lk5crypto -l:libcom_err.so.3 -lkeyutils -lresolv -gssapi_krb5" \
  32. # GSSGLUE_CFLAGS=-I$(STAGING_DIR)/usr/include/krb5/
  33. #EXTRA_LDFLAGS := -lgssapi_krb5
  34. define Package/libtirpc/install
  35. $(INSTALL_DIR) $(1)/usr/lib
  36. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtirpc.so* $(1)/usr/lib
  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 BuildPackage,libtirpc))