aboutsummaryrefslogtreecommitdiffstats
path: root/devel/apr1
diff options
context:
space:
mode:
authoralane <alane@FreeBSD.org>2002-12-29 22:46:21 +0800
committeralane <alane@FreeBSD.org>2002-12-29 22:46:21 +0800
commite4046dee8c86d9793541a5a41fd1de4e56c63e3e (patch)
tree5944fce1de98b18061039f5c827ccaa227b2356c /devel/apr1
parentfcde61525d39954c81f605e9af52c91d8803c6cf (diff)
downloadfreebsd-ports-gnome-e4046dee8c86d9793541a5a41fd1de4e56c63e3e.tar.gz
freebsd-ports-gnome-e4046dee8c86d9793541a5a41fd1de4e56c63e3e.tar.zst
freebsd-ports-gnome-e4046dee8c86d9793541a5a41fd1de4e56c63e3e.zip
Fix violations of automake/autoconf rules, other customary ports technique
that can lead to unpredicatble build failures on different platforms and individual setups. Approved by: implicit - build fixes/autoconf/automake violations with maintainers blessing
Diffstat (limited to 'devel/apr1')
-rw-r--r--devel/apr1/Makefile43
1 files changed, 29 insertions, 14 deletions
diff --git a/devel/apr1/Makefile b/devel/apr1/Makefile
index 6287425b049a..e8ac4b176f6a 100644
--- a/devel/apr1/Makefile
+++ b/devel/apr1/Makefile
@@ -14,33 +14,48 @@ DISTFILES= apr_${PORTVERSION}.tar.gz apr-util_20020725223700.tar.gz
MAINTAINER= rooneg@electricjellyfish.net
-BUILD_DEPENDS= autoconf:${PORTSDIR}/devel/autoconf \
- libtool:${PORTSDIR}/devel/libtool
-LIB_DEPENDS= expat.4:${PORTSDIR}/textproc/expat2 \
+BUILD_DEPENDS+= libtool:${PORTSDIR}/devel/libtool
+LIB_DEPENDS+= expat.4:${PORTSDIR}/textproc/expat2 \
iconv.3:${PORTSDIR}/converters/libiconv
-GNU_CONFIGURE= yes
+WANT_AUTOCONF_VER= 253
+
+USE_PERL5= yes
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
-USE_PERL5= yes
WRKSRC= ${WRKDIR}
+APR_CONF_ENV= ${CONFIGURE_ENV} \
+ CONFIG_SHELL=/bin/sh
+
+APR_UTIL_CONF_ENV=${CONFIGURE_ENV} \
+ CONFIG_SHELL=/bin/sh \
+ CPPFLAGS="-I${PREFIX}/include" \
+ LDFLAGS="-L${PREFIX}/lib"
+
+APR_UTIL_CONF_ARGS= --with-apr=../apr/ --with-expat=${PREFIX}
+
pre-fetch:
- @${SH} pkg-install apr PRE-INSTALL
+ ${SH} pkg-install apr PRE-INSTALL
pre-configure:
- @(cd ${WRKDIR}/apr/ && ./buildconf)
- @(cd ${WRKDIR}/apr-util/ && ./buildconf)
+ cd ${WRKDIR}/apr; ./buildconf
+ cd ${WRKDIR}/apr-util; ./buildconf
do-configure:
- @(cd ${WRKDIR}/apr/ && ./configure --prefix=${PREFIX})
- @(cd ${WRKDIR}/apr-util/ && ${ENV} CPPFLAGS=-I${PREFIX}/include LDFLAGS=-L${PREFIX}/lib ./configure --prefix=${PREFIX} --with-apr=../apr/ --with-expat=${PREFIX})
+ cd ${WRKDIR}/apr; \
+ ${SETENV} ${APR_CONF_ENV} ./configure ${CONFIGURE_ARGS}
+ cd ${WRKDIR}/apr-util; \
+ ${SETENV} ${APR_UTIL_CONF_ENV} \
+ ./configure ${CONFIGURE_ARGS} ${APR_UTIL_CONF_ARGS}
do-build:
- @(cd ${WRKDIR}/apr/ && make)
- @(cd ${WRKDIR}/apr-util/ && make)
+ cd ${WRKDIR}/apr; ${SETENV} ${MAKE_ENV} make
+ cd ${WRKDIR}/apr-util; ${SETENV} ${MAKE_ENV} make
do-install:
- @(cd ${WRKDIR}/apr/ && make install)
- (cd ${WRKDIR}/apr-util/ && make install)
+ cd ${WRKDIR}/apr; ${SETENV} ${MAKE_ENV} make install
+ cd ${WRKDIR}/apr-util; ${SETENV} ${MAKE_ENV} make install
.include <bsd.port.mk>