summaryrefslogtreecommitdiff
path: root/www/p5-Apache
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2000-06-17 02:37:15 +0000
committerWill Andrews <will@FreeBSD.org>2000-06-17 02:37:15 +0000
commit1e60866cc19e399726a715fe8f90de75614755d9 (patch)
tree919603a1bf324ecbe31827d6a9441e11e58f98a0 /www/p5-Apache
parentUse the distfiles now on ftp.freebsd.org instead of from my home directory (diff)
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>
Notes
Notes: svn path=/head/; revision=29658
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 9146bc949d45..833b60dbe18f 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