diff options
author | clement <clement@FreeBSD.org> | 2004-12-13 18:26:52 +0800 |
---|---|---|
committer | clement <clement@FreeBSD.org> | 2004-12-13 18:26:52 +0800 |
commit | 9025bc2e729a5fddae7af844d3eea6ea02c2f5ca (patch) | |
tree | fe273022386f84ed0d20bc6a668018b0456002b8 /www/apache21/Makefile | |
parent | 9b4a5dd5fb121981a541fba1efa3b3e8483da616 (diff) | |
download | freebsd-ports-gnome-9025bc2e729a5fddae7af844d3eea6ea02c2f5ca.tar.gz freebsd-ports-gnome-9025bc2e729a5fddae7af844d3eea6ea02c2f5ca.tar.zst freebsd-ports-gnome-9025bc2e729a5fddae7af844d3eea6ea02c2f5ca.zip |
- Sync apache-apr layout with devel/apr one (to avoid another hack for
subversion)
- Add support for APR_FROM_PORTS
Diffstat (limited to 'www/apache21/Makefile')
-rw-r--r-- | www/apache21/Makefile | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/www/apache21/Makefile b/www/apache21/Makefile index cfaba377f1d8..b9982cf496ed 100644 --- a/www/apache21/Makefile +++ b/www/apache21/Makefile @@ -60,8 +60,6 @@ CONFIGURE_ARGS= --prefix=${PREFIX_RELDEST} \ --with-port=${WITH_HTTP_PORT} \ --with-expat=${LOCALBASE} \ --with-iconv=${LOCALBASE} \ - --libdir=${PREFIX_RELDEST}/lib/apache21 \ - --includedir=${PREFIX_RELDEST}/include/apache21 \ --enable-http CONFIGURE_ENV= CC="${CC}" CPPFLAGS="${CPPFLAGS}" \ @@ -129,8 +127,15 @@ CONFIGURE_ARGS+= --with-ldap \ .include <bsd.port.pre.mk> -.if exists(${LOCALBASE}/lib/libapr-1.so) || defined(WITH_APR_FROM_PORTS) -IGNORE= : apr from ports is not yet supported +.if defined(WITH_APR_FROM_PORTS) +PLIST_SUB+= APR_PORTS="@comment " +LIB_DEPENDS+= apr-1:${PORTSDIR}/devel/apr +CONFIGURE_ARGS+= --with-apr=${LOCALBASE}/bin/apr-1-config \ + --with-apr-util=${LOCALBASE}/bin/apu-1-config +CONFIGURE_ENV+= LTFLAGS="--tag=CXX" +.else +PLIST_SUB+= APR_PORTS="" +CONFLICTS+= apr-1.* .endif WITH_PTHREAD_LIBS?= ${PTHREAD_LIBS:S/-l//:S/-//} @@ -191,8 +196,6 @@ post-patch: @${RM} -f ${WRKSRC}/docs/docroot/*.bak @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ ${FILESDIR}/apache.sh > ${WRKDIR}/apache21.sh - @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ - ${FILESDIR}/apache21libs.sh > ${WRKDIR}/apache21libs.sh @${RM} -f ${WRKSRC}/docs/manual/index.html.ko.euc-kr @${REINPLACE_CMD} -e 's," PLATFORM ",FreeBSD,' \ ${WRKSRC}/server/core.c @@ -215,10 +218,6 @@ pre-install: post-install: @${MKDIR} ${PREFIX}/etc/apache21/Includes -.if !defined(WITH_APR_FROM_PORTS) - @${ECHO_CMD} "Installing ${PREFIX}/etc/rc.d/000.apache21libs.sh startup script." - @${INSTALL_SCRIPT} -m 751 ${WRKDIR}/apache21libs.sh ${PREFIX}/etc/rc.d/000.apache21libs.sh -.endif @${ECHO_CMD} "Installing ${PREFIX}/etc/rc.d/apache21.sh startup script." @${INSTALL_SCRIPT} -m 751 ${WRKDIR}/apache21.sh ${PREFIX}/etc/rc.d/apache21.sh @@${CAT} ${PKGMESSAGE} |