cyrus-sasl: fix compile bug, so that we do not need this ugly workaround introduced...
[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 --disable-sample
73
74 define Build/Compile
75 $(MAKE) -C $(PKG_BUILD_DIR)/include \
76 CC="$(HOSTCC)" \
77 LINK="$(HOSTCC) -o makemd5 -lc" \
78 CFLAGS="" \
79 CPPFLAGS="" \
80 makemd5
81 $(MAKE) -C $(PKG_BUILD_DIR) \
82 DESTDIR="$(PKG_INSTALL_DIR)" \
83 all install
84 endef
85
86 define Build/InstallDev
87 $(INSTALL_DIR) $(1)/usr/include/
88 $(CP) $(PKG_INSTALL_DIR)/usr/include/sasl $(1)/usr/include/
89 $(INSTALL_DIR) $(1)/usr/lib/
90 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsasl2.{a,so*} $(1)/usr/lib/
91 ln -sf libsasl2.a $(1)/usr/lib/libsasl.a
92 ln -sf libsasl2.so $(1)/usr/lib/libsasl.so
93 $(INSTALL_DIR) $(1)/usr/lib/sasl2
94 $(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/lib*.{a,so*} $(1)/usr/lib/sasl2/
95 endef
96
97 define Package/libsasl2/install
98 $(INSTALL_DIR) $(1)/usr/lib/
99 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsasl2.so.* $(1)/usr/lib/
100 $(INSTALL_DIR) $(1)/usr/lib/sasl2
101 $(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/lib*.so.* $(1)/usr/lib/sasl2/
102 endef
103
104 $(eval $(call BuildPackage,libsasl2))