Fix libpam install.
[openwrt/svn-archive/archive.git] / libs / libpam / Makefile
1 #
2 # Copyright (C) 2006 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:=libpam
12 PKG_VERSION:=0.99.6.3
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=Linux-PAM-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.kernel.org/pub/linux/libs/pam/pre/library/
17 PKG_MD5SUM:=0f17f7105faa82a51dfbeb6b08a1ca29
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/Linux-PAM-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libpam
24 SECTION:=libs
25 CATEGORY:=Libraries
26 DEPENDS:=@BROKEN
27 TITLE:=free implementation of the following DCE-RFC from Sunsoft.
28 URL:=http://www.kernel.org/pub/linux/libs/pam
29 endef
30
31 define Package/libpam/description
32 Linux-PAM is a free implementation of the following DCE-RFC from Sunsoft.
33
34 endef
35
36 TARGET_CFLAGS += $(FPIC)
37
38 define Build/Configure
39 $(call Build/Configure/Default, \
40 --enable-shared \
41 --enable-static \
42 --enable-pamlocking \
43 --disable-prelude \
44 --disable-lckpwdf \
45 --disable-selinux \
46 --disable-nls \
47 --disable-rpath \
48 )
49 endef
50
51 define Build/Compile
52 $(MAKE) -C $(PKG_BUILD_DIR) \
53 DESTDIR="$(PKG_INSTALL_DIR)" \
54 all install
55 endef
56
57 define Build/InstallDev
58 mkdir -p $(1)/usr/lib $(1)/lib
59 mkdir -p $(1)/usr/include
60 $(CP) $(PKG_INSTALL_DIR)/lib/* $(1)/usr/lib/
61 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
62 endef
63
64 define Package/libpam/install
65 $(INSTALL_DIR) $(1)/lib
66 $(INSTALL_DIR) $(1)/etc
67 $(INSTALL_DIR) $(1)/usr/sbin
68 $(CP) $(PKG_INSTALL_DIR)/lib/* $(1)/lib/
69 $(CP) $(PKG_INSTALL_DIR)/etc/* $(1)/etc/
70 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
71 endef
72
73 $(eval $(call BuildPackage,libpam))