From 2d3f054590df65ffa003151fa13c8da59ac8ca65 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 24 Feb 2015 10:05:08 +0100 Subject: [PATCH] build-style/perl-module: replace host includedir for cross compilation. --- common/build-style/perl-module.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/common/build-style/perl-module.sh b/common/build-style/perl-module.sh index 84775835ed5..6c9db2fbf2c 100644 --- a/common/build-style/perl-module.sh +++ b/common/build-style/perl-module.sh @@ -14,6 +14,10 @@ do_configure() { local perlmkf + if [ -f ${wrksrc}/Makefile.PL ]; then + sed -i "s,/usr/include,${XBPS_CROSS_BASE}/usr/include,g" ${wrksrc}/Makefile.PL + fi + if [ -z "$perl_configure_dirs" ]; then perlmkf="$wrksrc/Makefile.PL" if [ ! -f $perlmkf ]; then @@ -29,7 +33,7 @@ do_configure() { perl Makefile.PL ${configure_args} INSTALLDIRS=vendor fi - for i in "$perl_configure_dirs"; do + for i in ${perl_configure_dirs}; do perlmkf="$wrksrc/$i/Makefile.PL" if [ -f $perlmkf ]; then cd $wrksrc/$i @@ -43,6 +47,7 @@ do_configure() { msg_error "*** ERROR: couldn't find $perlmkf, aborting **\n" fi done + } do_build() {