66dabda81be7ad232b161d6313facb05615e57a5
[openwrt/svn-archive/archive.git] / libs / librpcsecgss / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=librpcsecgss
12 PKG_VERSION:=0.14
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=librpcsecgss-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.citi.umich.edu/projects/nfsv4/linux/librpcsecgss/
17 PKG_MD5SUM:=0d4cdee46a98731b1b71e30504589281
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/librpcsecgss
22 SECTION:=libs
23 CATEGORY:=Libraries
24 TITLE:=required libraries for the nfs-utils
25 DESCRIPTION:= Support libraries - for newer nfs mount command (nfs4)
26 URL:=http://www.citi.umich.edu/projects/nfsv4/linux
27 endef
28
29 TARGET_CFLAGS += -I$(PKG_BUILD_DIR)/lib -I$(STAGING_DIR)/usr/include/gssglue/
30 define Build/Compile
31 $(call Build/Compile/Default, \
32 OPT="$(TARGET_CFLAGS)" \
33 INSTALLSUID="install -m 4755" \
34 DESTDIR="$(PKG_INSTALL_DIR)" \
35 GSSAPI_LIBS="usr/lib/libgssapi.a" \
36 all install \
37 )
38 endef
39
40 define Build/InstallDev
41 mkdir -p $(STAGING_DIR)/usr/include/rpcsecgss/rpc
42 $(CP) $(PKG_INSTALL_DIR)/usr/include/rpcsecgss/rpc/*.h $(STAGING_DIR)/usr/include/rpcsecgss/rpc/
43 mkdir -p $(STAGING_DIR)/usr/lib
44 $(CP) $(PKG_INSTALL_DIR)/usr/lib/librpcsecgss.{a,so*} $(STAGING_DIR)/usr/lib
45 mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig
46 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/librpcsecgss.pc $(STAGING_DIR)/usr/lib/pkgconfig
47 endef
48
49 define Build/UninstallDev
50 rm -rf \
51 $(STAGING_DIR)/usr/include/rpcsecgss
52 $(STAGING_DIR)/usr/lib/librpcsecgss.{a,so*}
53 $(STAGING_DIR)/usr/lib/pkgconfig/librpcsecgss.pc
54 endef
55
56 $(eval $(call BuildPackage,librpcsecgss))