cyrus-sasl: update to version 2.1.23.
[openwrt/svn-archive/archive.git] / libs / cyrus-sasl / Makefile
1 #
2 # Copyright (C) 2006-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=cyrus-sasl
11 PKG_VERSION:=2.1.23
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://ftp.andrew.cmu.edu/pub/cyrus-mail/
16 PKG_MD5SUM:=2eb0e48106f0e9cd8001e654f267ecbc
17
18 PKG_BUILD_DEPENDS:=libopenssl
19 PKG_FIXUP = libtool no-autoreconf
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libsasl2
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=A general purpose authentication library
27 URL:=http://asg.web.cmu.edu/sasl/
28 endef
29
30 TARGET_CFLAGS += $(FPIC)
31 CONFIGURE_ARGS += \
32 --enable-shared \
33 --enable-static \
34 --disable-sample \
35 --enable-staticdlopen \
36 --disable-java \
37 --disable-alwaystrue \
38 --disable-checkapop \
39 --enable-cram \
40 --enable-digest \
41 --without-auth-sasldb \
42 --disable-otp \
43 --disable-srp \
44 --disable-srp-setpass \
45 --disable-krb4 \
46 --disable-gssapi \
47 --disable-gss_mutexes \
48 --enable-plain \
49 --enable-anon \
50 --disable-login \
51 --disable-ntlm \
52 --disable-sql \
53 --disable-ldapdb \
54 --without-dblib \
55 --without-gdbm \
56 --with-devrandom="/dev/urandom" \
57 --without-pam \
58 --without-saslauthd \
59 --without-authdaemond \
60 --without-pwcheck \
61 --with-ipctype=unix \
62 --with-openssl="$(STAGING_DIR)/usr" \
63 --without-des \
64 --without-opie \
65 --without-ldap \
66 --without-mysql \
67 --without-pgsql \
68 --without-sqlite \
69 --without-rc4 \
70 --without-dmalloc \
71 --without-sfio
72
73 define Build/Compile
74 $(MAKE) -C $(PKG_BUILD_DIR)/include \
75 CC="$(HOSTCC)" \
76 LINK="$(HOSTCC) -o makemd5 -lc" \
77 CFLAGS="" \
78 CPPFLAGS="" \
79 makemd5
80 $(MAKE) -C $(PKG_BUILD_DIR) \
81 DESTDIR="$(PKG_INSTALL_DIR)" \
82 all install || \
83 $(MAKE) -C $(PKG_BUILD_DIR) \
84 DESTDIR="$(PKG_INSTALL_DIR)" \
85 all install
86 endef
87
88 define Build/InstallDev
89 $(INSTALL_DIR) $(1)/usr/include/
90 $(CP) $(PKG_INSTALL_DIR)/usr/include/sasl $(1)/usr/include/
91 $(INSTALL_DIR) $(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 $(INSTALL_DIR) $(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))