aboutsummaryrefslogtreecommitdiffstats
path: root/www/p5-Apache-Reload/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/p5-Apache-Reload/Makefile')
-rw-r--r--www/p5-Apache-Reload/Makefile29
1 files changed, 26 insertions, 3 deletions
diff --git a/www/p5-Apache-Reload/Makefile b/www/p5-Apache-Reload/Makefile
index a6e394eac45f..319e7a731adb 100644
--- a/www/p5-Apache-Reload/Makefile
+++ b/www/p5-Apache-Reload/Makefile
@@ -6,7 +6,8 @@
#
PORTNAME= Apache-Reload
-PORTVERSION= 0.07
+PORTVERSION= 0.10
+PORTREVISION= 2
CATEGORIES= www perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
@@ -16,6 +17,28 @@ COMMENT= Reload changed modules
PERL_CONFIGURE= yes
-MAN3= Apache::Reload.3
+MAN3= Apache2::Reload.3 Apache::Reload.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_MODPERL2)
+BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/mod_perl2.pm:${PORTSDIR}/www/mod_perl2
+RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/mod_perl2.pm:${PORTSDIR}/www/mod_perl2
+MAKE_ENV+= MOD_PERL=2
+_APACHE= Apache2
+.else
+BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/mod_perl.pm:${PORTSDIR}/www/mod_perl
+RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/mod_perl.pm:${PORTSDIR}/www/mod_perl
+MAKE_ENV+= MOD_PERL=1
+_APACHE= Apache
+.endif
+
+PLIST_DIRS= %%SITE_PERL%%/Apache2 \
+ %%SITE_PERL%%/Apache \
+ %%SITE_PERL%%/%%PERL_ARCH%%/auto/${_APACHE}/Reload
+
+PLIST_FILES= %%SITE_PERL%%/%%PERL_ARCH%%/auto/${_APACHE}/Reload/.packlist \
+ %%SITE_PERL%%/Apache2/Reload.pm \
+ %%SITE_PERL%%/Apache/Reload.pm
+
+.include <bsd.port.post.mk>