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
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 PKG_BUILD_DEPENDS
:=libopenssl
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 define Build
/Configure
35 $(call Build
/Configure
/Default
, \
39 --enable-staticdlopen \
41 --disable-alwaystrue \
47 --disable-srp-setpass \
50 --disable-gss_mutexes \
58 --with-devrandom
="/dev/urandom" \
61 --without-authdaemond \
64 --with-openssl
="$(STAGING_DIR)/usr" \
78 $(MAKE
) -C
$(PKG_BUILD_DIR
)/include \
80 LINK
="$(HOSTCC) -o makemd5 -lc" \
84 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
85 DESTDIR
="$(PKG_INSTALL_DIR)" \
89 define Build
/InstallDev
90 mkdir
-p
$(1)/usr
/include/
91 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/sasl
$(1)/usr
/include/
92 mkdir
-p
$(1)/usr
/lib
/
93 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libsasl2.
{a
,so
*} $(1)/usr
/lib
/
94 ln
-sf libsasl2.a
$(1)/usr
/lib
/libsasl.a
95 ln
-sf libsasl2.so
$(1)/usr
/lib
/libsasl.so
96 mkdir
-p
$(1)/usr
/lib
/sasl2
97 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/sasl2
/lib
*.
{a
,so
*} $(1)/usr
/lib
/sasl2
/
100 define Build
/UninstallDev
101 rm -rf
$(STAGING_DIR
)/usr
/include/sasl \
102 $(STAGING_DIR
)/usr
/lib
/libsasl
{2,}.
{a
,so
*} \
103 $(STAGING_DIR
)/usr
/lib
/sasl2
106 define Package
/libsasl2
/install
107 $(INSTALL_DIR
) $(1)/usr
/lib
/
108 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libsasl2.so.
* $(1)/usr
/lib
/
109 $(INSTALL_DIR
) $(1)/usr
/lib
/sasl2
110 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/sasl2
/lib
*.so.
* $(1)/usr
/lib
/sasl2
/
113 $(eval
$(call BuildPackage
,libsasl2
))