summaryrefslogtreecommitdiff
path: root/www/ap-scgi
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-02-20 14:58:44 +0000
committerjoerg <joerg@pkgsrc.org>2010-02-20 14:58:44 +0000
commitf44a82ffc69adc19dd585fb18edcb8be0bcf7aef (patch)
tree6e0424dcd7356d3f000cc298d0c68ca14ee350cc /www/ap-scgi
parente2f0cf964aa5e9bc915b03a1c6df6d29e763f0ee (diff)
downloadpkgsrc-f44a82ffc69adc19dd585fb18edcb8be0bcf7aef.tar.gz
DESTDIR support for various Apache modules.
Diffstat (limited to 'www/ap-scgi')
-rw-r--r--www/ap-scgi/Makefile23
1 files changed, 10 insertions, 13 deletions
diff --git a/www/ap-scgi/Makefile b/www/ap-scgi/Makefile
index c43e1ba626e..72b26f1927f 100644
--- a/www/ap-scgi/Makefile
+++ b/www/ap-scgi/Makefile
@@ -1,32 +1,29 @@
-# $NetBSD: Makefile,v 1.6 2010/02/10 19:17:47 joerg Exp $
+# $NetBSD: Makefile,v 1.7 2010/02/20 14:58:45 joerg Exp $
#
PKGNAME= ${APACHE_PKG_PREFIX}-${DISTNAME}
PKGREVISION= 1
+PKG_DESTDIR_SUPPORT= user-destdir
+
COMMENT= Simple Common Gateway Interface for Apache
DEPENDS+= ${PYPKGPREFIX}-scgi-[0-9]*:../../www/py-scgi
APACHE_MODULE= yes
.include "../../mk/apache.mk"
+.include "../../www/apache/module.mk"
.if ${APACHE_PKG_PREFIX} == "ap13"
-WRKSRC= ${WRKDIR}/${DISTNAME}/apache1
+MODULE_EXT= so
+APACHE_MODULE_SRCDIR= ${WRKDIR}/${DISTNAME}/apache1
.else
-WRKSRC= ${WRKDIR}/${DISTNAME}/apache2
+MODULE_EXT= la
+APACHE_MODULE_SRCDIR= ${WRKDIR}/${DISTNAME}/apache2
.endif
-do-build:
- 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} && ${APXS} -i mod_scgi.la
-.endif
+APACHE_MODULE_NAME= mod_scgi.${MODULE_EXT}
+APACHE_MODULE_SRC= mod_scgi.c
.include "../../lang/python/pyversion.mk"
.include "../../www/py-scgi/Makefile.common"