aboutsummaryrefslogtreecommitdiff
path: root/www/mod_php4
diff options
context:
space:
mode:
authorDirk Froemberg <dirk@FreeBSD.org>2002-11-21 20:37:21 +0000
committerDirk Froemberg <dirk@FreeBSD.org>2002-11-21 20:37:21 +0000
commitb97c177da399bc9823c34bc8b0ce94158487c748 (patch)
treeeb0fe430ba00be27c3511daa185dbe06c9924935 /www/mod_php4
parent7b2178dbc385be39bae970449ffc256e77125dbc (diff)
downloadports-b97c177da399bc9823c34bc8b0ce94158487c748.tar.gz
ports-b97c177da399bc9823c34bc8b0ce94158487c748.zip
Notes
Diffstat (limited to 'www/mod_php4')
-rw-r--r--www/mod_php4/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/www/mod_php4/Makefile b/www/mod_php4/Makefile
index 27264d970100..4eede4b0f597 100644
--- a/www/mod_php4/Makefile
+++ b/www/mod_php4/Makefile
@@ -37,6 +37,12 @@ SLAVEDIRS= lang/php4
USE_BZIP2= yes
USE_SUBMAKE= yes
USE_AUTOCONF_VER=213
+
+.include <bsd.port.pre.mk>
+.if exists(${LOCALBASE}/include/apache2/apr.h)
+WITH_APACHE2= yes
+.endif
+
.if defined(WITH_APACHE2)
APACHE_PORT?= ${PORTSDIR}/www/apache2
.else
@@ -85,9 +91,14 @@ SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
pre-fetch:
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.php
-.if !defined(STANDALONE) && !defined(WITH_APACHE2)
+.if !defined(STANDALONE)
+.if !defined(WITH_APACHE2)
@${ECHO_CMD} "Define WITH_APACHE2 to build mod_php4 as an apache2 module."
@${ECHO_CMD} ""
+.else
+ @${ECHO_CMD} "Building mod_php4 as an apache2 module."
+ @${ECHO_CMD} ""
+.endif
.endif
post-install:
@@ -120,4 +131,4 @@ post-clean:
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>