aboutsummaryrefslogtreecommitdiff
path: root/www/p5-libapreq/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/p5-libapreq/Makefile')
-rw-r--r--www/p5-libapreq/Makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/www/p5-libapreq/Makefile b/www/p5-libapreq/Makefile
index d198da42fd9c..95c5528af866 100644
--- a/www/p5-libapreq/Makefile
+++ b/www/p5-libapreq/Makefile
@@ -5,29 +5,35 @@
# $FreeBSD$
#
-PORTNAME= p5-libapreq
+PORTNAME= libapreq
PORTVERSION= 0.31
CATEGORIES= www perl5 devel
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Apache
-DISTNAME= libapreq-0.31
+PKGNAMEPREFIX= p5-
MAINTAINER= frank@exit.com
BUILD_DEPENDS= ${LOCALBASE}/include/apache/httpd.h:${PORTSDIR}/www/apache13 \
${LOCALBASE}/include/apache/modules/perl/mod_perl.h:${PORTSDIR}/www/p5-Apache
-USE_PERL5= YES
+USE_PERL5= yes
MAN3= Apache::Request.3 Apache::Cookie.3 libapreq.3 Apache::libapreq.3
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
do-configure:
- cd ${WRKSRC}; ${SETENV} ${SCRIPTS_ENV} ${PERL} Makefile.PL
+ @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL} Makefile.PL \
+ CC="${CC}" CCFLAGS="${CFLAGS}"
+ @${PERL} -i -p \
+ -e 's/^(CC = ).*/$$1 ${CC}/;' \
+ -e 's/^(CCFLAGS = ).*/$$1 ${CFLAGS}/' \
+ `find ${WRKSRC} -name Makefile`
post-install:
- ${CP} ${WRKSRC}/blib/arch/auto/libapreq/libapreq.so ${LOCALBASE}/lib
+ ${INSTALL_DATA} ${WRKSRC}/blib/arch/auto/libapreq/libapreq.so \
+ ${PREFIX}/lib
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
.include <bsd.port.mk>