libtirpc: add package v1.0.2
[feed/packages.git] / libs / libtirpc / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libtirpc
11 PKG_VERSION:=1.0.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_URL:=@SF/libtirpc
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_HASH:=723c5ce92706cbb601a8db09110df1b4b69391643158f20ff587e20e7c5f90f5
17
18 PKG_MAINTAINER:=Andy Walsh <andy.walsh44+github@gmail.com>
19 PKG_LICENSE:=BSD-3-Clause
20
21 PKG_FIXUP:=autoreconf
22 PKG_INSTALL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/libtirpc
27 SECTION:=libs
28 CATEGORY:=Libraries
29 TITLE:=Library TI RPC for RPC bindings
30 URL:=http://libtirpc.sourceforge.net/
31 DEPENDS:=+libpthread
32 endef
33
34 CONFIGURE_ARGS += --disable-gssapi
35 # Info from Buildroot Makefile
36 # getrpcby{number,name} are only provided if 'GQ' is defined
37 TARGET_CFLAGS += -DGQ
38 #CONFIGURE_VARS += \
39 # GSSGLUE_LIBS="-lkrb5 -lk5crypto -l:libcom_err.so.3 -lkeyutils -lresolv -gssapi_krb5" \
40 # GSSGLUE_CFLAGS=-I$(STAGING_DIR)/usr/include/krb5/
41
42 #EXTRA_LDFLAGS := -lgssapi_krb5
43
44 define Package/libtirpc/install
45 $(INSTALL_DIR) $(1)/usr/lib
46 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtirpc.so* $(1)/usr/lib
47 endef
48
49 define Build/InstallDev
50 $(INSTALL_DIR) $(1)/usr/include
51 $(INSTALL_DIR) $(1)/usr/lib
52 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtirpc.{a,so*} $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
55 $(SED) 's,/usr,${STAGING_DIR}/usr,g' $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtirpc.pc
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtirpc.pc $(1)/usr/lib/pkgconfig/libtirpc.pc
57 endef
58
59 $(eval $(call BuildPackage,libtirpc))