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
:=ftp
://ftp.cyrusimap.org
/cyrus-sasl
/
16 PKG_MD5SUM
:=a7f4e5e559a0e37b3ffc438c9456e425
18 PKG_LICENSE
:=BSD-4c BSD
19 PKG_LICENSE_FILES
:=COPYING cmulocal
/COPYING saslauthd
/COPYING
22 PKG_MACRO_PATHS
:=cmulocal config ..
/cmulocal ..
/config
23 PKG_AUTOMAKE_PATHS
:=. saslauthd sasldb
24 PKG_REMOVE_FILES
:=aclocal.m4 saslauthd
/aclocal.m4 config
/libtool.m4
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/libsasl2
31 TITLE
:=A general purpose authentication library
32 URL
:=http
://asg.web.cmu.edu
/sasl
/
36 TARGET_CFLAGS
+= $(FPIC
)
41 --enable-staticdlopen \
43 --disable-alwaystrue \
47 --without-auth-sasldb \
50 --disable-srp-setpass \
53 --disable-gss_mutexes \
62 --with-devrandom
="/dev/urandom" \
65 --without-authdaemond \
68 --with-openssl
="$(STAGING_DIR)/usr" \
81 $(MAKE
) -C
$(PKG_BUILD_DIR
)/include \
83 LINK
="$(HOSTCC) -o makemd5 -lc" \
87 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
88 DESTDIR
="$(PKG_INSTALL_DIR)" \
92 define Build
/InstallDev
93 $(INSTALL_DIR
) $(1)/usr
/include/
94 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/sasl
$(1)/usr
/include/
95 $(INSTALL_DIR
) $(1)/usr
/lib
/
96 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libsasl2.
{a
,so
*} $(1)/usr
/lib
/
97 ln
-sf libsasl2.a
$(1)/usr
/lib
/libsasl.a
98 ln
-sf libsasl2.so
$(1)/usr
/lib
/libsasl.so
99 $(INSTALL_DIR
) $(1)/usr
/lib
/sasl2
100 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/sasl2
/lib
*.
{a
,so
*} $(1)/usr
/lib
/sasl2
/
103 define Package
/libsasl2
/install
104 $(INSTALL_DIR
) $(1)/usr
/lib
/
105 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libsasl2.so.
* $(1)/usr
/lib
/
106 $(INSTALL_DIR
) $(1)/usr
/lib
/sasl2
107 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/sasl2
/lib
*.so.
* $(1)/usr
/lib
/sasl2
/
110 $(eval
$(call BuildPackage
,libsasl2
))