860c2e4e0f4b79eb5e7d2623f439ebed042bce5e
[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:=2
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 PKG_BUILD_DEPENDS:=libgssapi
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/librpcsecgss
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=required libraries for the nfs-utils
27 DESCRIPTION:= Support libraries - for newer nfs mount command (nfs4)
28 URL:=http://www.citi.umich.edu/projects/nfsv4/linux
29 endef
30
31 TARGET_CFLAGS += -I$(PKG_BUILD_DIR)/lib -I$(STAGING_DIR)/usr/include/gssglue/
32
33 MAKE_FLAGS += \
34 OPT="$(TARGET_CFLAGS)" \
35 INSTALLSUID="install -m 4755" \
36 DESTDIR="$(PKG_INSTALL_DIR)" \
37 GSSAPI_LIBS="usr/lib/libgssapi.a" \
38 all install
39
40 define Build/InstallDev
41 $(INSTALL_DIR) $(STAGING_DIR)/usr/include/rpcsecgss/rpc
42 $(CP) $(PKG_INSTALL_DIR)/usr/include/rpcsecgss/rpc/*.h $(STAGING_DIR)/usr/include/rpcsecgss/rpc/
43 $(INSTALL_DIR) $(STAGING_DIR)/usr/lib
44 $(CP) $(PKG_INSTALL_DIR)/usr/lib/librpcsecgss.{a,so*} $(STAGING_DIR)/usr/lib
45 $(INSTALL_DIR) $(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))