[packages] restund, baresip, libre: update to v0.2.0
[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
20 PKG_FIXUP:=autoreconf
21 PKG_MACRO_PATHS:=cmulocal config ../cmulocal ../config
22 PKG_AUTOMAKE_PATHS:=. saslauthd
23 PKG_REMOVE_FILES:=aclocal.m4 saslauthd/aclocal.m4
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/libsasl2
28 SECTION:=libs
29 CATEGORY:=Libraries
30 TITLE:=A general purpose authentication library
31 URL:=http://asg.web.cmu.edu/sasl/
32 endef
33
34 TARGET_CFLAGS += $(FPIC)
35 CONFIGURE_ARGS += \
36 --enable-shared \
37 --enable-static \
38 --disable-sample \
39 --enable-staticdlopen \
40 --disable-java \
41 --disable-alwaystrue \
42 --disable-checkapop \
43 --enable-cram \
44 --enable-digest \
45 --without-auth-sasldb \
46 --disable-otp \
47 --disable-srp \
48 --disable-srp-setpass \
49 --disable-krb4 \
50 --disable-gssapi \
51 --disable-gss_mutexes \
52 --enable-plain \
53 --enable-anon \
54 --disable-login \
55 --disable-ntlm \
56 --disable-sql \
57 --disable-ldapdb \
58 --without-dblib \
59 --without-gdbm \
60 --with-devrandom="/dev/urandom" \
61 --without-pam \
62 --without-saslauthd \
63 --without-authdaemond \
64 --without-pwcheck \
65 --with-ipctype=unix \
66 --with-openssl="$(STAGING_DIR)/usr" \
67 --without-des \
68 --without-opie \
69 --without-ldap \
70 --without-mysql \
71 --without-pgsql \
72 --without-sqlite \
73 --without-rc4 \
74 --without-dmalloc \
75 --without-sfio \
76 --disable-sample
77
78 define Build/Compile
79 $(MAKE) -C $(PKG_BUILD_DIR)/include \
80 CC="$(HOSTCC)" \
81 LINK="$(HOSTCC) -o makemd5 -lc" \
82 CFLAGS="" \
83 CPPFLAGS="" \
84 makemd5
85 $(MAKE) -C $(PKG_BUILD_DIR) \
86 DESTDIR="$(PKG_INSTALL_DIR)" \
87 all install
88 endef
89
90 define Build/InstallDev
91 $(INSTALL_DIR) $(1)/usr/include/
92 $(CP) $(PKG_INSTALL_DIR)/usr/include/sasl $(1)/usr/include/
93 $(INSTALL_DIR) $(1)/usr/lib/
94 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsasl2.{a,so*} $(1)/usr/lib/
95 ln -sf libsasl2.a $(1)/usr/lib/libsasl.a
96 ln -sf libsasl2.so $(1)/usr/lib/libsasl.so
97 $(INSTALL_DIR) $(1)/usr/lib/sasl2
98 $(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/lib*.{a,so*} $(1)/usr/lib/sasl2/
99 endef
100
101 define Package/libsasl2/install
102 $(INSTALL_DIR) $(1)/usr/lib/
103 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsasl2.so.* $(1)/usr/lib/
104 $(INSTALL_DIR) $(1)/usr/lib/sasl2
105 $(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/lib*.so.* $(1)/usr/lib/sasl2/
106 endef
107
108 $(eval $(call BuildPackage,libsasl2))