pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/ap-scgi Fix build with Apache 1.3.
details: https://anonhg.NetBSD.org/pkgsrc/rev/b37976f10de3
branches: trunk
changeset: 395069:b37976f10de3
user: joerg <joerg%pkgsrc.org@localhost>
date: Mon Jul 06 16:05:45 2009 +0000
description:
Fix build with Apache 1.3.
diffstat:
www/ap-scgi/Makefile | 21 +++++++++++++++------
1 files changed, 15 insertions(+), 6 deletions(-)
diffs (37 lines):
diff -r 3dc0c662fd37 -r b37976f10de3 www/ap-scgi/Makefile
--- a/www/ap-scgi/Makefile Mon Jul 06 15:22:14 2009 +0000
+++ b/www/ap-scgi/Makefile Mon Jul 06 16:05:45 2009 +0000
@@ -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 @@
APACHE_MODULE= yes
.include "../../mk/apache.mk"
-do-build:
- cd ${WRKSRC}/apache${APACHE_PKG_PREFIX:C/^ap(2)?.*/\1/} && \
- ${APXS} -c mod_scgi.c
+.if ${APACHE_PKG_PREFIX} == "ap13"
+WRKSRC= ${WRKDIR}/${DISTNAME}/apache1
+.else
+WRKSRC= ${WRKDIR}/${DISTNAME}/apache2
+.endif
+do-build:
+ cd ${WRKSRC} && ${APXS} -c mod_scgi.c
+
+.if ${APACHE_PKG_PREFIX} == "ap13"
do-install:
- cd ${WRKSRC}/apache${APACHE_PKG_PREFIX:C/^ap(2)?.*/\1/} && \
- ${APXS} -i mod_scgi.la
+ cd ${WRKSRC} && ${APXS} -i mod_scgi.so
+.else
+do-install:
+ cd ${WRKSRC} && ${APXS} -i mod_scgi.la
+.endif
.include "../../lang/python/pyversion.mk"
.include "../../www/py-scgi/Makefile.common"
Home |
Main Index |
Thread Index |
Old Index