summaryrefslogtreecommitdiff
path: root/www/ap-scgi
diff options
context:
space:
mode:
authorjoerg <joerg>2009-07-06 16:05:45 +0000
committerjoerg <joerg>2009-07-06 16:05:45 +0000
commit35e550e52714ec430a73d778bac727fe3a54c20d (patch)
tree1af70fcb36359effe4e846aa103fe9180e0260dc /www/ap-scgi
parent7e9c0bd750a4c9aa542d530b11f9d3afadb71a4c (diff)
downloadpkgsrc-35e550e52714ec430a73d778bac727fe3a54c20d.tar.gz
Fix build with Apache 1.3.
Diffstat (limited to 'www/ap-scgi')
-rw-r--r--www/ap-scgi/Makefile19
1 files changed, 14 insertions, 5 deletions
diff --git a/www/ap-scgi/Makefile b/www/ap-scgi/Makefile
index 6d4931b7026..4cc54fe65a4 100644
--- a/www/ap-scgi/Makefile
+++ b/www/ap-scgi/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2009/03/07 16:26:16 tnn Exp $
+# $NetBSD: Makefile,v 1.4 2009/07/06 16:05:45 joerg Exp $
#
PKGNAME= ${APACHE_PKG_PREFIX}-${DISTNAME}
@@ -12,13 +12,22 @@ DEPENDS+= ${PYPKGPREFIX}-scgi-[0-9]*:../../www/py-scgi
APACHE_MODULE= yes
.include "../../mk/apache.mk"
+.if ${APACHE_PKG_PREFIX} == "ap13"
+WRKSRC= ${WRKDIR}/${DISTNAME}/apache1
+.else
+WRKSRC= ${WRKDIR}/${DISTNAME}/apache2
+.endif
+
do-build:
- cd ${WRKSRC}/apache${APACHE_PKG_PREFIX:C/^ap(2)?.*/\1/} && \
- ${APXS} -c mod_scgi.c
+ cd ${WRKSRC} && ${APXS} -c mod_scgi.c
+.if ${APACHE_PKG_PREFIX} == "ap13"
+do-install:
+ cd ${WRKSRC} && ${APXS} -i mod_scgi.so
+.else
do-install:
- cd ${WRKSRC}/apache${APACHE_PKG_PREFIX:C/^ap(2)?.*/\1/} && \
- ${APXS} -i mod_scgi.la
+ cd ${WRKSRC} && ${APXS} -i mod_scgi.la
+.endif
.include "../../lang/python/pyversion.mk"
.include "../../www/py-scgi/Makefile.common"