[package] update fftw3 to 3.2.1 (#5391)
[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.20
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:=268ead27f4ac39bcfe17d9e38e0f2977
17
18 PKG_BUILD_DEPENDS:=libopenssl
19 PKG_FIXUP = libtool
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 --disable-otp \
42 --disable-srp \
43 --disable-srp-setpass \
44 --disable-krb4 \
45 --disable-gssapi \
46 --disable-gss_mutexes \
47 --enable-plain \
48 --enable-anon \
49 --disable-login \
50 --disable-ntlm \
51 --disable-sql \
52 --with-dblib="none" \
53 --without-gdbm \
54 --with-devrandom="/dev/urandom" \
55 --without-pam \
56 --without-saslauthd \
57 --without-authdaemond \
58 --without-pwcheck \
59 --with-ipctype=unix \
60 --with-openssl="$(STAGING_DIR)/usr" \
61 --without-des \
62 --without-opie \
63 --without-ldap \
64 --without-mysql \
65 --without-pgsql \
66 --without-sqlite \
67 --without-rc4 \
68 --without-dmalloc \
69 --without-sfio
70
71 define Build/Compile
72 $(MAKE) -C $(PKG_BUILD_DIR)/include \
73 CC="$(HOSTCC)" \
74 LINK="$(HOSTCC) -o makemd5 -lc" \
75 CFLAGS="" \
76 CPPFLAGS="" \
77 makemd5
78 $(MAKE) -C $(PKG_BUILD_DIR) \
79 DESTDIR="$(PKG_INSTALL_DIR)" \
80 all install
81 endef
82
83 define Build/InstallDev
84 mkdir -p $(1)/usr/include/
85 $(CP) $(PKG_INSTALL_DIR)/usr/include/sasl $(1)/usr/include/
86 mkdir -p $(1)/usr/lib/
87 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsasl2.{a,so*} $(1)/usr/lib/
88 ln -sf libsasl2.a $(1)/usr/lib/libsasl.a
89 ln -sf libsasl2.so $(1)/usr/lib/libsasl.so
90 mkdir -p $(1)/usr/lib/sasl2
91 $(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/lib*.{a,so*} $(1)/usr/lib/sasl2/
92 endef
93
94 define Package/libsasl2/install
95 $(INSTALL_DIR) $(1)/usr/lib/
96 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsasl2.so.* $(1)/usr/lib/
97 $(INSTALL_DIR) $(1)/usr/lib/sasl2
98 $(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/lib*.so.* $(1)/usr/lib/sasl2/
99 endef
100
101 $(eval $(call BuildPackage,libsasl2))