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_BUILD_DEPENDS:=libopenssl
21 PKG_MACRO_PATHS:=cmulocal config ../cmulocal ../config
22 PKG_AUTOMAKE_PATHS:=. saslauthd
23 PKG_REMOVE_FILES:=aclocal.m4 saslauthd/aclocal.m4
25 include $(INCLUDE_DIR)/package.mk
27 define Package/libsasl2
30 TITLE:=A general purpose authentication library
31 URL:=http://asg.web.cmu.edu/sasl/
34 TARGET_CFLAGS += $(FPIC)
39 --enable-staticdlopen \
41 --disable-alwaystrue \
45 --without-auth-sasldb \
48 --disable-srp-setpass \
51 --disable-gss_mutexes \
60 --with-devrandom="/dev/urandom" \
63 --without-authdaemond \
66 --with-openssl="$(STAGING_DIR)/usr" \
79 $(MAKE) -C $(PKG_BUILD_DIR)/include \
81 LINK="$(HOSTCC) -o makemd5 -lc" \
85 $(MAKE) -C $(PKG_BUILD_DIR) \
86 DESTDIR="$(PKG_INSTALL_DIR)" \
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/
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/
108 $(eval $(call BuildPackage,libsasl2))