void-packages/srcpkgs/libsasl/template

63 lines
1.7 KiB
Plaintext
Raw Normal View History

# Template file for 'libsasl'
pkgname=libsasl
version=2.1.26
revision=1
build_style=gnu-configure
configure_args="--enable-cram --enable-digest --enable-auth-sasldb
--enable-plain --enable-anon --enable-login --enable-gssapi --enable-ntlm
--with-configdir=/etc/sasl2:/etc/sasl:/usr/lib/sasl2
2014-07-25 16:15:10 +02:00
--disable-otp --disable-srp --disable-srp-setpass --disable-krb4
--with-devrandom=/dev/urandom"
hostmakedepends="automake libtool pkg-config"
2014-07-16 00:10:40 +02:00
makedepends="db-devel>=5.3 mit-krb5-devel"
wrksrc="cyrus-sasl-${version}"
short_desc="Cyrus SASL - runtime shared libraries"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://cyrusimap.web.cmu.edu/"
license="BSD"
distfiles="ftp://ftp.cyrusimap.org/cyrus-sasl/cyrus-sasl-${version}.tar.gz"
checksum=8fbc5136512b59bb793657f36fadda6359cae3b08f01fd16b3d406f1345b7bc3
2014-07-25 16:15:10 +02:00
patch_args="-Np1"
disable_parallel_build=yes
2014-07-25 16:15:10 +02:00
pre_configure() {
# XXX
if [ "$CROSS_BUILD" ]; then
sed 's,AC_TRY_RUN,AC_TRY_LINK_FUNC,' -i cmulocal/sasl2.m4
fi
rm -f config/config.guess config/config.sub
rm -f config/ltconfig config/ltmain.sh config/libtool.m4
rm -fr autom4te.cache
libtoolize -c
aclocal -I config -I cmulocal
automake -a -c
autoheader
autoconf
pushd saslauthd
rm -f config/config.guess config/config.sub
rm -f config/ltconfig config/ltmain.sh config/libtool.m4
rm -fr autom4te.cache
libtoolize -c
aclocal -I config -I ../cmulocal -I ../config
automake -a -c
autoheader
autoconf
popd
}
post_install() {
# We are only interested in libsasl.
rm -rf ${DESTDIR}/usr/{sbin,share,lib/sasl2}
}
libsasl-devel_package() {
depends="libsasl>=${version}_${revision}"
2013-05-09 16:26:34 +02:00
short_desc+=" - development files"
pkg_install() {
vmove usr/include
2014-02-20 18:45:00 +01:00
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}