znc: fix cross.

This commit is contained in:
Christian Neukirchen 2016-08-29 19:09:33 +02:00
parent e4ec440ecd
commit 0025e27d56

View file

@ -1,9 +1,7 @@
nocross=yes #tempfix
# Template file for 'znc'
pkgname=znc
version=1.6.3
revision=4
revision=5
build_style=gnu-configure
configure_args="--enable-python --enable-perl --enable-tcl --enable-cyrus"
hostmakedepends="pkg-config perl"
@ -20,6 +18,12 @@ znc_homedir="/var/lib/znc"
make_dirs="/var/lib/znc 0750 znc znc"
pre_configure() {
local perlprefix=${XBPS_STATEDIR}/perlprefix-${XBPS_TARGET_MACHINE}
mkdir -p $perlprefix
cp "$XBPS_CROSS_BASE/usr/lib/perl5/core_perl/Config"* $perlprefix
cp "$XBPS_CROSS_BASE/usr/lib/perl5/core_perl/Errno.pm" $perlprefix
export PERL5LIB=$perlprefix
export TCL_FLAGS="$CFLAGS $LDFLAGS -ltcl8.6"
}