summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorLars Thegler <lth@FreeBSD.org>2005-04-30 11:10:25 +0000
committerLars Thegler <lth@FreeBSD.org>2005-04-30 11:10:25 +0000
commit72a520f063ee8bfefa278af3c881ec9851986317 (patch)
treed83b88a634f4b9bc6561661ae6521f39c7ce8f04 /www
parentUnbreak on -current where _types.h got a new prerequisite (sys/cdefs.h) (diff)
Make the module build honor the APXS variable.
PR: ports/79810 Noticed by: Jeremy Reed <reed@reedmedia.net>
Notes
Notes: svn path=/head/; revision=134407
Diffstat (limited to 'www')
-rw-r--r--www/p5-CGI-SpeedyCGI/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/www/p5-CGI-SpeedyCGI/Makefile b/www/p5-CGI-SpeedyCGI/Makefile
index 7faeb84e06e0..edea9df54014 100644
--- a/www/p5-CGI-SpeedyCGI/Makefile
+++ b/www/p5-CGI-SpeedyCGI/Makefile
@@ -20,8 +20,6 @@ PERL_CONFIGURE= yes
.include <bsd.port.pre.mk>
-APXS?= ${LOCALBASE}/sbin/apxs
-
# define WITHOUT_APACHE to prevent mod_speedycgi from being built even if Apache is installed
.if !exists(${APXS}) || defined(WITHOUT_APACHE)
@@ -40,6 +38,12 @@ AP_LIBEXEC?= ${PREFIX}/libexec/apache
PLIST_SUB+= AP_LIBEXEC=${AP_LIBEXEC:S/^${PREFIX}\///}
.endif
+post-patch:
+ @${PERL} -pi -e 's,apxs -q,${APXS} -q,;' \
+ ${WRKSRC}/src/SpeedyMake.pl
+ @${PERL} -pi -e 's,APXS=apxs,APXS=${APXS},;' \
+ ${WRKSRC}/mod_speedycgi/Makefile.tmpl
+
post-configure:
@${PERL} -pi -e 's,^PREFIX = /usr$$,PREFIX = ${PREFIX},g;' \
${WRKSRC}/Makefile ${WRKSRC}/*/Makefile