Add libnfsidmap
[openwrt/svn-archive/archive.git] / libs / libnfsidmap / 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:=libnfsidmap
12 PKG_VERSION:=0.20
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/libnfsidmap/
17 PKG_MD5SUM:=9233cb77876eb642374a0d2bcaba1170
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/libnfsidmap
22 SECTION:=libs
23 CATEGORY:=Libraries
24 TITLE:=libnfsidmap, for compiling mount.nfs4
25 DESCRIPTION:= needed for nfs-utils
26 URL:=http://www.citi.umich.edu/projects/nfsv4
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
41 $(CP) $(PKG_INSTALL_DIR)/usr/include/nfsidmap.h $(STAGING_DIR)/usr/include/
42 mkdir -p $(STAGING_DIR)/usr/lib
43 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnfsidmap.{a,so*} $(STAGING_DIR)/usr/lib
44 mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig
45 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnfsidmap.pc $(STAGING_DIR)/usr/lib/pkgconfig
46 endef
47
48 define Build/UninstallDev
49 rm -rf \
50 $(STAGING_DIR)/usr/include/nfsidmap.h
51 $(STAGING_DIR)/usr/lib/libnfsidmap.{a,so*}
52 $(STAGING_DIR)/usr/lib/pkgconfig/libnfsidmap.pc
53 endef
54
55 $(eval $(call BuildPackage,libnfsidmap))