summaryrefslogtreecommitdiff
path: root/www/apache-contrib
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/apache-contrib
parentUpgrade to 1.1. (diff)
bento doesn't have a real working apxs. Use these unil bsd.apache.mk
is created. Submitted by: bento
Notes
Notes: svn path=/head/; revision=34196
Diffstat (limited to 'www/apache-contrib')
-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>