summaryrefslogtreecommitdiffstats
path: root/www/p5-Apache
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2000-06-17 02:37:15 +0000
committerwill <will@FreeBSD.org>2000-06-17 02:37:15 +0000
commit6dd7168cddcf03645b7b524d0eaec762ba4a5c26 (patch)
treedde5ee054b255f449dc09b875bfef1cb678c4d3e /www/p5-Apache
parent09860925596143f36628cd7f462f54e90412d7ae (diff)
downloadFreeBSD-ports-6dd7168cddcf03645b7b524d0eaec762ba4a5c26.zip
FreeBSD-ports-6dd7168cddcf03645b7b524d0eaec762ba4a5c26.tar.gz
Lots and lots of cleanups. Teach p5-* in general about PKGNAMEPREFIX.
Add some missing/wrong dependencies. Show how to respect CC/CFLAGS. Many miscellaneous modifications. I used more excessive hacks to force p5-Jcode and p5-WWW-Search to respect CC/CFLAGS. Patches largely done by: Christian Weisgerber <naddy@mips.inka.de>
Diffstat (limited to 'www/p5-Apache')
-rw-r--r--www/p5-Apache/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/www/p5-Apache/Makefile b/www/p5-Apache/Makefile
index 9146bc9..833b60d 100644
--- a/www/p5-Apache/Makefile
+++ b/www/p5-Apache/Makefile
@@ -5,12 +5,13 @@
# $FreeBSD$
#
-PORTNAME= p5-Apache
+PORTNAME= Apache
PORTVERSION= 1.24
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Apache
DISTNAME= mod_perl-${PORTVERSION}
+PKGNAMEPREFIX= p5-
MAINTAINER= jfitz@FreeBSD.org
@@ -20,7 +21,7 @@ APACHE_PORT=apache13
BUILD_DEPENDS= ${PREFIX}/sbin/apxs:${PORTSDIR}/www/${APACHE_PORT} \
${PREFIX}/bin/lwp-download:${PORTSDIR}/www/p5-libwww
-USE_PERL5= YES
+USE_PERL5= yes
MAN3= Apache.3 \
Apache::Constants.3 \
Apache::Debug.3 \
@@ -59,7 +60,13 @@ MAN3= Apache.3 \
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
do-configure:
- @ cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${CONFIGURE_ENV} ${PERL5} Makefile.PL USE_APXS=1 WITH_APXS=${PREFIX}/sbin/apxs EVERYTHING=1
+ @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL \
+ CC="${CC}" CCFLAGS="${CFLAGS}" \
+ USE_APXS=1 WITH_APXS=${PREFIX}/sbin/apxs EVERYTHING=1
+ @${PERL} -i -p \
+ -e 's/^(CC = ).*/$$1 ${CC}/;' \
+ -e 's/^(CCFLAGS = ).*/$$1 ${CFLAGS}/' \
+ ${WRKSRC}/Leak/Makefile ${WRKSRC}/Symbol/Makefile
post-install:
${MKDIR} ${PREFIX}/include/apache/modules/perl
OpenPOWER on IntegriCloud