aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/p5-Acme-Monta/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/www/p5-Acme-Monta/Makefile b/www/p5-Acme-Monta/Makefile
index 3268a16bada0..07462b5ae272 100644
--- a/www/p5-Acme-Monta/Makefile
+++ b/www/p5-Acme-Monta/Makefile
@@ -19,4 +19,12 @@ PERL_CONFIGURE= yes
MAN3= Acme::Monta.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600
+post-patch:
+ @${PERL} -pi -e 's/^our (\S+)/use vars qw($$1); $$1/' \
+ ${WRKSRC}/lib/Acme/Monta.pm
+.endif
+
+.include <bsd.port.post.mk>