summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Seaman <matthew@FreeBSD.org>2012-06-04 19:11:13 +0000
committerMatthew Seaman <matthew@FreeBSD.org>2012-06-04 19:11:13 +0000
commitf415b695826f08d16ad8834d3621016134387bd9 (patch)
tree4d8bb524e7f10e533b84173daa5b63c78e8145f2
parent- Add a missing = after MASTER_SITE_SUBDIR (diff)
- Fix USE_APACHE syntax
- Set RUN_DEPENDS from BUILD_DEPENDS - update to new OPTIONS framework Approved by: shaun (mentor) PR: ports/168143 Submitted by: me
Notes
Notes: svn path=/head/; revision=298384
-rw-r--r--www/p5-HTML-Mason/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/www/p5-HTML-Mason/Makefile b/www/p5-HTML-Mason/Makefile
index 448c3d434f4e..bc13b2e2383a 100644
--- a/www/p5-HTML-Mason/Makefile
+++ b/www/p5-HTML-Mason/Makefile
@@ -20,6 +20,7 @@ BUILD_DEPENDS= p5-Class-Container>=0.7:${PORTSDIR}/devel/p5-Class-Container \
p5-Exception-Class>=1.15:${PORTSDIR}/devel/p5-Exception-Class \
p5-Log-Any>=0.08:${PORTSDIR}/devel/p5-Log-Any \
p5-Cache-Cache>=1:${PORTSDIR}/devel/p5-Cache-Cache
+RUN_DEPENDS:= ${BUILD_DEPENDS}
TEST_DEPENDS= p5-Test-Deep>=0:${PORTSDIR}/devel/p5-Test-Deep
PERL_MODBUILD= yes
@@ -56,7 +57,8 @@ MAN3= Bundle::HTML::Mason.3 \
HTML::Mason::Tools.3 \
HTML::Mason::Utils.3
-OPTIONS= MOD_PERL "with mod_perl dependency" off
+OPTIONS_DEFINE= MOD_PERL
+MOD_PERL_DESC= with mod_perl dependency
post-build:
${MV} -f ${WRKSRC}/bin ${WRKSRC}/bin.orig
@@ -65,11 +67,11 @@ post-build:
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/blib/script.orig/mason.pl ${PREFIX}/bin
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITH_MOD_PERL)
-USE_APACHE= 2.0+
+.if ${PORT_OPTIONS:MMOD_PERL}
+USE_APACHE= 20+
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Apache2/Request.pm:${PORTSDIR}/www/p5-libapreq2
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>