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
:=268ead27f4ac39bcfe17d9e38e0f2977
18 PKG_BUILD_DEPENDS
:=libopenssl
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/libsasl2
26 TITLE
:=A general purpose authentication library
27 URL
:=http
://asg.web.cmu.edu
/sasl
/
30 TARGET_CFLAGS
+= $(FPIC
)
35 --enable-staticdlopen \
37 --disable-alwaystrue \
43 --disable-srp-setpass \
46 --disable-gss_mutexes \
54 --with-devrandom
="/dev/urandom" \
57 --without-authdaemond \
60 --with-openssl
="$(STAGING_DIR)/usr" \
72 $(MAKE
) -C
$(PKG_BUILD_DIR
)/include \
74 LINK
="$(HOSTCC) -o makemd5 -lc" \
78 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
79 DESTDIR
="$(PKG_INSTALL_DIR)" \
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
/
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
/
101 $(eval
$(call BuildPackage
,libsasl2
))