a0fabd88a9b087c582228b7e8dcad02ba18942c7
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libgssapi
11 PKG_VERSION:=0.11
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.citi.umich.edu/projects/nfsv4/linux/libgssapi/
16 PKG_MD5SUM:=0e5b4c7267724f8ddf64bc35514c272e
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/libgssapi
21 SECTION:=libs
22 CATEGORY:=Libraries
23 TITLE:=required libraries for the nfs-utils
24 URL:=http://www.citi.umich.edu/projects/nfsv4/linux
25 endef
26
27 define Package/libgssapi/description
28 Support libraries - for newer nfs mount command (nfs4)
29 endef
30
31 TARGET_CFLAGS += -I$(PKG_BUILD_DIR)/lib $(FPIC)
32
33 MAKE_FLAGS += \
34 OPT="$(TARGET_CFLAGS)" \
35 INSTALLSUID="install -m 4755" \
36 DESTDIR="$(PKG_INSTALL_DIR)" \
37 all install
38
39 define Build/InstallDev
40 $(INSTALL_DIR) $(1)/usr/include/gssglue/gssapi
41 $(CP) $(PKG_INSTALL_DIR)/usr/include/gssglue/gssapi/gssapi.h $(1)/usr/include/gssglue/gssapi
42 $(INSTALL_DIR) $(1)/usr/lib
43 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgssapi.{a,so*} $(1)/usr/lib
44 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
45 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libgssapi.pc $(1)/usr/lib/pkgconfig
46 endef
47
48 $(eval $(call BuildPackage,libgssapi))