summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorAnton Berezin <tobez@FreeBSD.org>2001-10-14 21:29:36 +0000
committerAnton Berezin <tobez@FreeBSD.org>2001-10-14 21:29:36 +0000
commit845b265abaf292a3ff8dea893aff4397929ad0ef (patch)
tree3e5940f39cb124f2e109001bc943dd16158e8934 /net
parentUpgrade to 2.0.1 (gd2 was repocopied from gd). The name of the (diff)
Fix port's build on -stable.
Submitted by: bento logs
Notes
Notes: svn path=/head/; revision=48768
Diffstat (limited to 'net')
-rw-r--r--net/p5-NetAddr-IP/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/p5-NetAddr-IP/Makefile b/net/p5-NetAddr-IP/Makefile
index cac55990c41c..3a4ff32be495 100644
--- a/net/p5-NetAddr-IP/Makefile
+++ b/net/p5-NetAddr-IP/Makefile
@@ -19,4 +19,11 @@ PERL_CONFIGURE= yes
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
MAN3= NetAddr::IP.3
+post-patch:
+ ${PERL} -pi -e 's/\r//;' \
+ -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1);$$1/;' \
+ -e '$$_="" if /require 5/;' \
+ -e '$$_="" if /use warnings/;' \
+ ${WRKSRC}/IP.pm
+
.include <bsd.port.mk>