diff options
author | kris <kris@FreeBSD.org> | 2003-07-11 06:30:43 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2003-07-11 06:30:43 +0000 |
commit | 7c677b52878318525d628e589f7ba722d9c2e80f (patch) | |
tree | 563f4deeca0327ecd716076ea243ed6c3d830785 /Mk/bsd.port.mk | |
parent | a744141a8ed0d4ceddc596815349dc04c13450f4 (diff) | |
download | FreeBSD-ports-7c677b52878318525d628e589f7ba722d9c2e80f.zip FreeBSD-ports-7c677b52878318525d628e589f7ba722d9c2e80f.tar.gz |
If GNU_CONFIGURE is defined, replace all instances of config.guess
and config.sub found under ${WRKDIR} with the master versions from
${PORTSDIR}/Template. This allows old ports (which contain old versions
of these scripts) to build on newer architectures like ia64 and amd64.
Submitted by: naddy (initial patch, reworked by me)
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r-- | Mk/bsd.port.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index c1fd582..230d96c 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -2825,6 +2825,16 @@ do-configure: cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} \ ${SCRIPTDIR}/configure; \ fi +.if defined(GNU_CONFIGURE) + @CONFIG_GUESS_DIRS=$$(${FIND} ${WRKDIR} -name config.guess -o -name config.sub \ + | ${XARGS} -n 1 /usr/bin/dirname); \ + for _D in $${CONFIG_GUESS_DIRS}; do \ + ${CP} -f ${TEMPLATES}/config.guess $${_D}/config.guess; \ + ${CHMOD} a+rx $${_D}/config.guess; \ + ${CP} -f ${TEMPLATES}/config.sub $${_D}/config.sub; \ + ${CHMOD} a+rx $${_D}/config.sub; \ + done +.endif .if defined(HAS_CONFIGURE) @(cd ${CONFIGURE_WRKSRC} && \ if ! ${SETENV} CC="${CC}" CXX="${CXX}" \ |