From 815f710e2a64989747b3b108ea6cc5b788e47e4f Mon Sep 17 00:00:00 2001 From: Jun Kuriyama Date: Fri, 13 Feb 2004 00:32:24 +0000 Subject: Unbreak on amd64. Submitted by: Craig Rodrigues (maintainer) --- devel/apr/Makefile | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'devel/apr') diff --git a/devel/apr/Makefile b/devel/apr/Makefile index 8bf899b3f56a..2c741b21aa36 100644 --- a/devel/apr/Makefile +++ b/devel/apr/Makefile @@ -39,15 +39,6 @@ INSTALLS_SHLIB= yes GNU_CONFIGURE= yes WRKSRC= ${WRKDIR} -APR_CONF_ENV= CC="${CC}" CFLAGS="${CFLAGS}" ${CONFIGURE_ENV} \ - CONFIG_SHELL=/bin/sh - -APR_UTIL_CONF_ENV= \ - CC="${CC}" CFLAGS="${CFLAGS}" ${CONFIGURE_ENV} \ - CONFIG_SHELL=/bin/sh \ - CPPFLAGS="-I${PREFIX}/include" \ - LDFLAGS="-L${PREFIX}/lib" - APR_UTIL_CONF_ARGS= --with-apr=../apr-${PORTVERSION} \ --with-expat=${PREFIX} \ --with-iconv=${PREFIX} @@ -133,10 +124,18 @@ pre-configure: --with-apr=../apr-${PORTVERSION} do-configure: + @CONFIG_GUESS_DIRS=$$(${FIND} ${WRKDIR} -name config.guess -o -name config.sub \ + | ${XARGS} -n 1 ${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 cd ${WRKDIR}/apr-${PORTVERSION}; \ - ${SETENV} ${APR_CONF_ENV} ./configure ${CONFIGURE_ARGS} + ${SETENV} ${SCRIPTS_ENV} ${SH} ./configure ${CONFIGURE_ARGS} cd ${WRKDIR}/apr-util-${PORTVERSION}; \ - ${SETENV} ${APR_UTIL_CONF_ENV} \ + ${SETENV} ${SCRIPTS_ENV} ${SH} \ ./configure ${CONFIGURE_ARGS} ${APR_UTIL_CONF_ARGS} do-build: -- cgit v1.2.3