libgssapi: cleanup and fix compile
[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:=2
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
31 MAKE_FLAGS += \
32 OPT="$(TARGET_CFLAGS)" \
33 INSTALLSUID="install -m 4755" \
34 DESTDIR="$(PKG_INSTALL_DIR)" \
35 all install
36
37 define Build/InstallDev
38 $(INSTALL_DIR) $(STAGING_DIR)/usr/include/gssglue/gssapi
39 $(CP) $(PKG_INSTALL_DIR)/usr/include/gssglue/gssapi/gssapi.h $(STAGING_DIR)/usr/include/gssglue/gssapi
40 $(INSTALL_DIR) $(STAGING_DIR)/usr/lib
41 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgssapi.{a,so*} $(STAGING_DIR)/usr/lib
42 $(INSTALL_DIR) $(STAGING_DIR)/usr/lib/pkgconfig
43 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libgssapi.pc $(STAGING_DIR)/usr/lib/pkgconfig
44 endef
45
46 define Build/UninstallDev
47 rm -rf \
48 $(STAGING_DIR)/usr/include/gssglue \
49 $(STAGING_DIR)/usr/lib/libgssapi.{a,so*} \
50 $(STAGING_DIR)/usr/lib/pkgconfig/libgssapi.pc
51 endef
52
53 $(eval $(call BuildPackage,libgssapi))