Add libgssapi
[openwrt/svn-archive/archive.git] / libs / libgssapi / 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:=libgssapi
12 PKG_VERSION:=0.11
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.citi.umich.edu/projects/nfsv4/linux/libgssapi/
17 PKG_MD5SUM:=0e5b4c7267724f8ddf64bc35514c272e
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/libgssapi
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
30 define Build/Compile
31 $(call Build/Compile/Default, \
32 OPT="$(TARGET_CFLAGS)" \
33 INSTALLSUID="install -m 4755" \
34 DESTDIR="$(PKG_INSTALL_DIR)" \
35 all install \
36 )
37 endef
38
39 define Build/InstallDev
40 mkdir -p $(STAGING_DIR)/usr/include/gssglue/gssapi
41 $(CP) $(PKG_INSTALL_DIR)/usr/include/gssglue/gssapi/gssapi.h $(STAGING_DIR)/usr/include/gssglue/gssapi
42 mkdir -p $(STAGING_DIR)/usr/lib
43 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgssapi.{a,so*} $(STAGING_DIR)/usr/lib
44 mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig
45 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libgssapi.pc $(STAGING_DIR)/usr/lib/pkgconfig
46 endef
47
48 define Build/UninstallDev
49 rm -rf \
50 $(STAGING_DIR)/usr/include/gssglue
51 $(STAGING_DIR)/usr/lib/libgssapi.{a,so*}
52 $(STAGING_DIR)/usr/lib/pkgconfig/libgssapi.pc
53 endef
54
55 $(eval $(call BuildPackage,libgssapi))