aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorJames E. Housley <jeh@FreeBSD.org>2000-10-24 17:09:00 +0000
committerJames E. Housley <jeh@FreeBSD.org>2000-10-24 17:09:00 +0000
commit50770c6fded53310e72f02c5f027dbd7f79e17b9 (patch)
treeebac2d151e5cf9419bdd6710ba23da5f54504a1a /www
parent958509618fe1de3c638cbd841fa5754943a7b7a8 (diff)
downloadports-50770c6fded53310e72f02c5f027dbd7f79e17b9.tar.gz
ports-50770c6fded53310e72f02c5f027dbd7f79e17b9.zip
Notes
Diffstat (limited to 'www')
-rw-r--r--www/apache-contrib/Makefile20
1 files changed, 19 insertions, 1 deletions
diff --git a/www/apache-contrib/Makefile b/www/apache-contrib/Makefile
index 2c8a8b45fb9e..4f7004c1a3d4 100644
--- a/www/apache-contrib/Makefile
+++ b/www/apache-contrib/Makefile
@@ -30,6 +30,24 @@ MAINTAINER= anders@fix.no
BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
RUN_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
-ALL_TARGET= APXS=${LOCALBASE}/sbin/apxs all
+APXS= ${LOCALBASE}/sbin/apxs
+
+AP_PORT?= apache13
+.if exists(${APXS})
+APXS_WORKS!= ${APXS} -q TARGET 2>/dev/null || echo no
+.endif
+.if exists(${APXS}) && ${APXS_WORKS} != no
+AP_TARGET!= ${APXS} -q TARGET
+AP_SYSCONF!= ${APXS} -q SYSCONFDIR
+AP_INCLUDE!= ${APXS} -q INCLUDEDIR
+AP_LIBEXEC!= ${APXS} -q LIBEXECDIR
+.else
+AP_TARGET?= httpd
+AP_SYSCONF?= ${PREFIX}/etc/apache
+AP_INCLUDE?= ${PREFIX}/include/apache
+AP_LIBEXEC?= ${PREFIX}/libexec/apache
+.endif
+
+ALL_TARGET= APXS=${APXS}/sbin/apxs all
.include <bsd.port.mk>