diff options
Diffstat (limited to 'www/ap-scgi')
-rw-r--r-- | www/ap-scgi/Makefile | 19 |
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" |