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_MAINTAINER
:=W. Michael Petullo
<mike@flyn.org
>
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=ftp
://ftp.cyrusimap.org
/cyrus-sasl
/
18 PKG_MD5SUM
:=a7f4e5e559a0e37b3ffc438c9456e425
20 PKG_LICENSE
:=BSD-4c BSD
21 PKG_LICENSE_FILES
:=COPYING cmulocal
/COPYING saslauthd
/COPYING
24 PKG_MACRO_PATHS
:=cmulocal config ..
/cmulocal ..
/config
25 PKG_AUTOMAKE_PATHS
:=. saslauthd sasldb
26 PKG_REMOVE_FILES
:=aclocal.m4 saslauthd
/aclocal.m4 config
/libtool.m4
28 include $(INCLUDE_DIR
)/package.mk
30 define Package
/libsasl2
33 TITLE
:=A general purpose authentication library
34 URL
:=http
://asg.web.cmu.edu
/sasl
/
38 TARGET_CFLAGS
+= $(FPIC
)
43 --enable-staticdlopen \
45 --disable-alwaystrue \
49 --without-auth-sasldb \
52 --disable-srp-setpass \
55 --disable-gss_mutexes \
64 --with-devrandom
="/dev/urandom" \
67 --without-authdaemond \
70 --with-openssl
="$(STAGING_DIR)/usr" \
83 $(MAKE
) -C
$(PKG_BUILD_DIR
)/include \
85 LINK
="$(HOSTCC) -o makemd5 -lc" \
89 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
90 DESTDIR
="$(PKG_INSTALL_DIR)" \
94 define Build
/InstallDev
95 $(INSTALL_DIR
) $(1)/usr
/include/
96 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/sasl
$(1)/usr
/include/
97 $(INSTALL_DIR
) $(1)/usr
/lib
/
98 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libsasl2.
{a
,so
*} $(1)/usr
/lib
/
99 ln
-sf libsasl2.a
$(1)/usr
/lib
/libsasl.a
100 ln
-sf libsasl2.so
$(1)/usr
/lib
/libsasl.so
101 $(INSTALL_DIR
) $(1)/usr
/lib
/sasl2
102 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/sasl2
/lib
*.
{a
,so
*} $(1)/usr
/lib
/sasl2
/
105 define Package
/libsasl2
/install
106 $(INSTALL_DIR
) $(1)/usr
/lib
/
107 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libsasl2.so.
* $(1)/usr
/lib
/
108 $(INSTALL_DIR
) $(1)/usr
/lib
/sasl2
109 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/sasl2
/lib
*.so.
* $(1)/usr
/lib
/sasl2
/
112 $(eval
$(call BuildPackage
,libsasl2
))