void-packages/srcpkgs/libsasl/template

69 lines
1.9 KiB
Bash

# Template file for 'libsasl'
pkgname=libsasl
version=2.1.26
revision=3
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
--disable-otp --disable-srp --disable-srp-setpass --disable-krb4
--with-devrandom=/dev/urandom"
hostmakedepends="automake libtool mit-krb5-devel pkg-config"
makedepends="db-devel mit-krb5-devel"
wrksrc="cyrus-sasl-${version}"
short_desc="Cyrus SASL - runtime shared libraries"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://cyrusimap.web.cmu.edu/"
license="BSD"
distfiles="ftp://ftp.cyrusimap.org/cyrus-sasl/cyrus-sasl-${version}.tar.gz"
checksum=8fbc5136512b59bb793657f36fadda6359cae3b08f01fd16b3d406f1345b7bc3
patch_args="-Np1"
# Seems to be cured with libtool>=2.4.6
# disable_parallel_build=yes
pre_configure() {
# XXX
if [ "$CROSS_BUILD" ]; then
sed 's,AC_TRY_RUN,AC_TRY_LINK_FUNC,' -i cmulocal/sasl2.m4
fi
# Remove outdated files
rm -f config/config.{guess,sub}
rm -f config/lt{config,main.sh} config/libtool.m4
# Rename configure.in for fewer warnings
mv configure.{in,ac}
# Avoid picking up the target LDFLAGS for makemd5
sed -i include/Makefile.am -e "/^CFLAGS/a LDFLAGS ="
# Rename configure.in for fewer warnings
mv saslauthd/configure.{in,ac}
# Remove check for KRB4; otherwise we would need mt-krb4-devel
rm -f config/kerberos_v4.m4
# Remove placeholder for KRB4 library
find -name Makefile.am -exec sed -i "{}" -e "s;= @SASL_KRB_LIB@;= ;" \;
autoreconf -I $(pwd)/config -I $(pwd)/cmulocal -i -f
}
post_install() {
# We are only interested in libsasl.
rm -rf ${DESTDIR}/usr/{sbin,share,lib/sasl2}
vlicense COPYING
}
libsasl-devel_package() {
depends="libsasl>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}