remove UninstallDev
[openwrt/svn-archive/archive.git] / libs / cyrus-sasl / 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:=cyrus-sasl
12 PKG_VERSION:=2.1.20
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://ftp.andrew.cmu.edu/pub/cyrus-mail/
17 PKG_MD5SUM:=268ead27f4ac39bcfe17d9e38e0f2977
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 PKG_BUILD_DEPENDS:=libopenssl
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/libsasl2
27 SECTION:=libs
28 CATEGORY:=Libraries
29 TITLE:=A general purpose authentication library
30 URL:=http://asg.web.cmu.edu/sasl/
31 endef
32
33 define Build/Configure
34 $(call Build/Configure/Default, \
35 --enable-shared \
36 --enable-static \
37 --disable-sample \
38 --enable-staticdlopen \
39 --disable-java \
40 --disable-alwaystrue \
41 --disable-checkapop \
42 --enable-cram \
43 --enable-digest \
44 --disable-otp \
45 --disable-srp \
46 --disable-srp-setpass \
47 --disable-krb4 \
48 --disable-gssapi \
49 --disable-gss_mutexes \
50 --enable-plain \
51 --enable-anon \
52 --disable-login \
53 --disable-ntlm \
54 --disable-sql \
55 --with-dblib="none" \
56 --without-gdbm \
57 --with-devrandom="/dev/urandom" \
58 --without-pam \
59 --without-saslauthd \
60 --without-authdaemond \
61 --without-pwcheck \
62 --with-ipctype=unix \
63 --with-openssl="$(STAGING_DIR)/usr" \
64 --without-des \
65 --without-opie \
66 --without-ldap \
67 --without-mysql \
68 --without-pgsql \
69 --without-sqlite \
70 --without-rc4 \
71 --without-dmalloc \
72 --without-sfio \
73 );
74 endef
75
76 define Build/Compile
77 $(MAKE) -C $(PKG_BUILD_DIR)/include \
78 CC="$(HOSTCC)" \
79 LINK="$(HOSTCC) -o makemd5 -lc" \
80 CFLAGS="" \
81 CPPFLAGS="" \
82 makemd5
83 $(MAKE) -C $(PKG_BUILD_DIR) \
84 DESTDIR="$(PKG_INSTALL_DIR)" \
85 all install
86 endef
87
88 define Build/InstallDev
89 mkdir -p $(1)/usr/include/
90 $(CP) $(PKG_INSTALL_DIR)/usr/include/sasl $(1)/usr/include/
91 mkdir -p $(1)/usr/lib/
92 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsasl2.{a,so*} $(1)/usr/lib/
93 ln -sf libsasl2.a $(1)/usr/lib/libsasl.a
94 ln -sf libsasl2.so $(1)/usr/lib/libsasl.so
95 mkdir -p $(1)/usr/lib/sasl2
96 $(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/lib*.{a,so*} $(1)/usr/lib/sasl2/
97 endef
98
99 define Package/libsasl2/install
100 $(INSTALL_DIR) $(1)/usr/lib/
101 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsasl2.so.* $(1)/usr/lib/
102 $(INSTALL_DIR) $(1)/usr/lib/sasl2
103 $(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/lib*.so.* $(1)/usr/lib/sasl2/
104 endef
105
106 $(eval $(call BuildPackage,libsasl2))