aboutsummaryrefslogtreecommitdiffstats
path: root/devel/apr
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2004-02-13 08:32:24 +0800
committerkuriyama <kuriyama@FreeBSD.org>2004-02-13 08:32:24 +0800
commita01558e85474adfef927040048c806edc8f0a97d (patch)
treee7a72373d453a38a61ae4d06915eb39049e7ab1e /devel/apr
parent20d803757473f17f66fa7695af766d646702a429 (diff)
downloadfreebsd-ports-gnome-a01558e85474adfef927040048c806edc8f0a97d.tar.gz
freebsd-ports-gnome-a01558e85474adfef927040048c806edc8f0a97d.tar.zst
freebsd-ports-gnome-a01558e85474adfef927040048c806edc8f0a97d.zip
Unbreak on amd64.
Submitted by: Craig Rodrigues <rodrigc@crodrigues.org> (maintainer)
Diffstat (limited to 'devel/apr')
-rw-r--r--devel/apr/Makefile21
1 files changed, 10 insertions, 11 deletions
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: