summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorSergey Skvortsov <skv@FreeBSD.org>2005-10-12 11:41:16 +0000
committerSergey Skvortsov <skv@FreeBSD.org>2005-10-12 11:41:16 +0000
commit70b5ead61db5c05b597521c537e8770b14b75464 (patch)
tree8adcbcb1911f0d3f4339558970063501933ab7c0 /security
parentUpdate to 1.21 (diff)
Fix build on perl < 5.6
PR: ports/87315 Submitted by: lth
Notes
Notes: svn path=/head/; revision=145098
Diffstat (limited to 'security')
-rw-r--r--security/p5-POE-Component-SSLify/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/security/p5-POE-Component-SSLify/Makefile b/security/p5-POE-Component-SSLify/Makefile
index cabaea3f53af..ab996c0d043f 100644
--- a/security/p5-POE-Component-SSLify/Makefile
+++ b/security/p5-POE-Component-SSLify/Makefile
@@ -24,4 +24,11 @@ MAN3= POE::Component::SSLify.3 \
POE::Component::SSLify::ClientHandle.3 \
POE::Component::SSLify::ServerHandle.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.if ${PERL_LEVEL} < 500600
+post-patch:
+ @${PERL} -pi -e 's/^our (%\w+)/use vars qw($$1); $$1/;' \
+ -e '$$_ = "" if /use warnings/;' \
+ $$(${FIND} ${WRKSRC} -name '*.pm')
+.endif
+.include <bsd.port.post.mk>