build-style/perl-module: replace host includedir for cross compilation.
This commit is contained in:
parent
336612fc24
commit
2d3f054590
1 changed files with 6 additions and 1 deletions
|
@ -14,6 +14,10 @@
|
||||||
do_configure() {
|
do_configure() {
|
||||||
local perlmkf
|
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
|
if [ -z "$perl_configure_dirs" ]; then
|
||||||
perlmkf="$wrksrc/Makefile.PL"
|
perlmkf="$wrksrc/Makefile.PL"
|
||||||
if [ ! -f $perlmkf ]; then
|
if [ ! -f $perlmkf ]; then
|
||||||
|
@ -29,7 +33,7 @@ do_configure() {
|
||||||
perl Makefile.PL ${configure_args} INSTALLDIRS=vendor
|
perl Makefile.PL ${configure_args} INSTALLDIRS=vendor
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for i in "$perl_configure_dirs"; do
|
for i in ${perl_configure_dirs}; do
|
||||||
perlmkf="$wrksrc/$i/Makefile.PL"
|
perlmkf="$wrksrc/$i/Makefile.PL"
|
||||||
if [ -f $perlmkf ]; then
|
if [ -f $perlmkf ]; then
|
||||||
cd $wrksrc/$i
|
cd $wrksrc/$i
|
||||||
|
@ -43,6 +47,7 @@ do_configure() {
|
||||||
msg_error "*** ERROR: couldn't find $perlmkf, aborting **\n"
|
msg_error "*** ERROR: couldn't find $perlmkf, aborting **\n"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue