2 # Copyright (C) 2006-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
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
18 PKG_LICENSE:=BSD-4c BSD
19 PKG_LICENSE_FILES:=COPYING cmulocal/COPYING saslauthd/COPYING
21 PKG_BUILD_DEPENDS:=libopenssl
24 PKG_MACRO_PATHS:=cmulocal config ../cmulocal ../config
25 PKG_AUTOMAKE_PATHS:=. saslauthd sasldb
26 PKG_REMOVE_FILES:=aclocal.m4 saslauthd/aclocal.m4 config/libtool.m4
28 include $(INCLUDE_DIR)/package.mk
30 define Package/libsasl2
33 TITLE:=A general purpose authentication library
34 URL:=http://asg.web.cmu.edu/sasl/
37 TARGET_CFLAGS += $(FPIC)
42 --enable-staticdlopen \
44 --disable-alwaystrue \
48 --without-auth-sasldb \
51 --disable-srp-setpass \
54 --disable-gss_mutexes \
63 --with-devrandom="/dev/urandom" \
66 --without-authdaemond \
69 --with-openssl="$(STAGING_DIR)/usr" \
82 $(MAKE) -C $(PKG_BUILD_DIR)/include \
84 LINK="$(HOSTCC) -o makemd5 -lc" \
88 $(MAKE) -C $(PKG_BUILD_DIR) \
89 DESTDIR="$(PKG_INSTALL_DIR)" \
93 define Build/InstallDev
94 $(INSTALL_DIR) $(1)/usr/include/
95 $(CP) $(PKG_INSTALL_DIR)/usr/include/sasl $(1)/usr/include/
96 $(INSTALL_DIR) $(1)/usr/lib/
97 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsasl2.{a,so*} $(1)/usr/lib/
98 ln -sf libsasl2.a $(1)/usr/lib/libsasl.a
99 ln -sf libsasl2.so $(1)/usr/lib/libsasl.so
100 $(INSTALL_DIR) $(1)/usr/lib/sasl2
101 $(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/lib*.{a,so*} $(1)/usr/lib/sasl2/
104 define Package/libsasl2/install
105 $(INSTALL_DIR) $(1)/usr/lib/
106 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsasl2.so.* $(1)/usr/lib/
107 $(INSTALL_DIR) $(1)/usr/lib/sasl2
108 $(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/lib*.so.* $(1)/usr/lib/sasl2/
111 $(eval $(call BuildPackage,libsasl2))