put the guessdirs loop at the shell level so that it's evaluated later.
This commit is contained in:
parent
34a129ce4f
commit
aebeb16b58
@ -1,6 +1,6 @@
|
||||
#-*- mode: Fundamental; tab-width: 4; -*-
|
||||
# ex:ts=4 sw=4 filetype=make:
|
||||
# $OpenBSD: gnu.port.mk,v 1.25 2005/12/26 21:29:41 naddy Exp $
|
||||
# $OpenBSD: gnu.port.mk,v 1.26 2006/07/10 10:12:05 espie Exp $
|
||||
# Based on bsd.port.mk, originally by Jordan K. Hubbard.
|
||||
# This file is in the public domain.
|
||||
|
||||
@ -41,14 +41,13 @@ MODGNU_CONFIG_GUESS_DIRS?=${WRKSRC}
|
||||
MODGNU_SAVE_CACHE?= No
|
||||
MODGNU_SAVE_CACHE_LOCATION=${PORTSDIR}/config
|
||||
|
||||
MODGNU_configure =
|
||||
.for _d in ${MODGNU_CONFIG_GUESS_DIRS}
|
||||
MODGNU_configure += cp -f ${PORTSDIR}/infrastructure/db/config.guess ${_d};
|
||||
MODGNU_configure += chmod a+rx ${_d}/config.guess;
|
||||
MODGNU_configure += cp -f ${PORTSDIR}/infrastructure/db/config.sub ${_d};
|
||||
MODGNU_configure += chmod a+rx ${_d}/config.sub;
|
||||
.endfor
|
||||
MODGNU_configure += ${MODSIMPLE_configure}
|
||||
MODGNU_configure = for d in ${MODGNU_CONFIG_GUESS_DIRS}; do \
|
||||
cp -f ${PORTSDIR}/infrastructure/db/config.guess $$d; \
|
||||
chmod a+rx $$d/config.guess; \
|
||||
cp -f ${PORTSDIR}/infrastructure/db/config.sub $$d; \
|
||||
chmod a+rx $$d/config.sub; \
|
||||
done; ${MODSIMPLE_configure}
|
||||
|
||||
.if ${MODGNU_SAVE_CACHE:L} == "yes"
|
||||
MODGNU_configure += ; mkdir -p ${MODGNU_SAVE_CACHE_LOCATION}; \
|
||||
cp ${WRKBUILD}/config.cache ${MODGNU_SAVE_CACHE_LOCATION}/${FULLPKGNAME} \
|
||||
|
Loading…
Reference in New Issue
Block a user