xbps-src: quote wrksrc to allow whitespace
This commit is contained in:
parent
4c29e554b6
commit
6efc7dd98d
9 changed files with 31 additions and 31 deletions
|
@ -29,17 +29,17 @@ do_configure() {
|
|||
fi
|
||||
export PERL5LIB=$perlprefix
|
||||
|
||||
if [ -f ${wrksrc}/Makefile.PL ]; then
|
||||
sed -i "s,/usr/include,${XBPS_CROSS_BASE}/usr/include,g" ${wrksrc}/Makefile.PL
|
||||
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
|
||||
if [ ! -f "$perlmkf" ]; then
|
||||
msg_error "*** ERROR couldn't find $perlmkf, aborting ***\n"
|
||||
fi
|
||||
|
||||
cd $wrksrc
|
||||
cd "$wrksrc"
|
||||
PERL_MM_USE_DEFAULT=1 GCC="$CC" CC="$CC" LD="$CC" \
|
||||
OPTIMIZE="$CFLAGS" \
|
||||
CFLAGS="$CFLAGS -I${XBPS_CROSS_BASE}/usr/include" \
|
||||
|
@ -50,8 +50,8 @@ do_configure() {
|
|||
|
||||
for i in ${perl_configure_dirs}; do
|
||||
perlmkf="$wrksrc/$i/Makefile.PL"
|
||||
if [ -f $perlmkf ]; then
|
||||
cd $wrksrc/$i
|
||||
if [ -f "$perlmkf" ]; then
|
||||
cd "$wrksrc/$i"
|
||||
PERL_MM_USE_DEFAULT=1 GCC="$CC" CC="$CC" LD="$CC" \
|
||||
OPTIMIZE="$CFLAGS" \
|
||||
CFLAGS="$CFLAGS -I${XBPS_CROSS_BASE}/usr/include" \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue