From 0025e27d568e4e7b93742b50e1c71f2450474161 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Mon, 29 Aug 2016 19:09:33 +0200 Subject: [PATCH] znc: fix cross. --- srcpkgs/znc/template | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/srcpkgs/znc/template b/srcpkgs/znc/template index c9631321180..2138b7819a8 100644 --- a/srcpkgs/znc/template +++ b/srcpkgs/znc/template @@ -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" }