remove UninstallDev
[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:=2
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 URL:=http://www.citi.umich.edu/projects/nfsv4
26 endef
27
28 define Package/libnfsidmap/description
29 needed for nfs-utils
30 endef
31
32 TARGET_CFLAGS += -I$(PKG_BUILD_DIR)/lib
33
34 MAKE_FLAGS += \
35 OPT="$(TARGET_CFLAGS)" \
36 INSTALLSUID="install -m 4755" \
37 DESTDIR="$(PKG_INSTALL_DIR)" \
38 all install
39
40 define Build/InstallDev
41 $(INSTALL_DIR) $(1)/usr/include
42 $(CP) $(PKG_INSTALL_DIR)/usr/include/nfsidmap.h $(1)/usr/include/
43 $(INSTALL_DIR) $(1)/usr/lib
44 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnfsidmap.{a,so*} $(1)/usr/lib
45 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
46 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnfsidmap.pc $(1)/usr/lib/pkgconfig
47 endef
48
49 $(eval $(call BuildPackage,libnfsidmap))