2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://ftp.andrew.cmu.edu
/pub
/cyrus-mail
/
17 PKG_MD5SUM
:=268ead27f4ac39bcfe17d9e38e0f2977
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
22 PKG_BUILD_DEPENDS
:=libopenssl
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/libsasl2
29 TITLE
:=A general purpose authentication library
30 URL
:=http
://asg.web.cmu.edu
/sasl
/
33 define Build
/Configure
34 $(call Build
/Configure
/Default
, \
38 --enable-staticdlopen \
40 --disable-alwaystrue \
46 --disable-srp-setpass \
49 --disable-gss_mutexes \
57 --with-devrandom
="/dev/urandom" \
60 --without-authdaemond \
63 --with-openssl
="$(STAGING_DIR)/usr" \
77 $(MAKE
) -C
$(PKG_BUILD_DIR
)/include \
79 LINK
="$(HOSTCC) -o makemd5 -lc" \
83 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
84 DESTDIR
="$(PKG_INSTALL_DIR)" \
88 define Build
/InstallDev
89 mkdir
-p
$(1)/usr
/include/
90 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/sasl
$(1)/usr
/include/
91 mkdir
-p
$(1)/usr
/lib
/
92 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libsasl2.
{a
,so
*} $(1)/usr
/lib
/
93 ln
-sf libsasl2.a
$(1)/usr
/lib
/libsasl.a
94 ln
-sf libsasl2.so
$(1)/usr
/lib
/libsasl.so
95 mkdir
-p
$(1)/usr
/lib
/sasl2
96 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/sasl2
/lib
*.
{a
,so
*} $(1)/usr
/lib
/sasl2
/
99 define Package
/libsasl2
/install
100 $(INSTALL_DIR
) $(1)/usr
/lib
/
101 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libsasl2.so.
* $(1)/usr
/lib
/
102 $(INSTALL_DIR
) $(1)/usr
/lib
/sasl2
103 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/sasl2
/lib
*.so.
* $(1)/usr
/lib
/sasl2
/
106 $(eval
$(call BuildPackage
,libsasl2
))