1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00

Fix port's build on -stable.

Submitted by:	bento logs
This commit is contained in:
Anton Berezin 2001-10-14 21:29:36 +00:00
parent d52a7a070a
commit 845b265aba
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=48768
2 changed files with 14 additions and 0 deletions

View File

@ -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>

View File

@ -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>