aboutsummaryrefslogtreecommitdiff
path: root/net/p5-DNS-Config/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/p5-DNS-Config/Makefile')
-rw-r--r--net/p5-DNS-Config/Makefile14
1 files changed, 5 insertions, 9 deletions
diff --git a/net/p5-DNS-Config/Makefile b/net/p5-DNS-Config/Makefile
index 4fe72aea418e..239f51bc564e 100644
--- a/net/p5-DNS-Config/Makefile
+++ b/net/p5-DNS-Config/Makefile
@@ -18,19 +18,15 @@ COMMENT= DNS::Config is set of perl modules for name service configurations
PERL_CONFIGURE= yes
-MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
+post-patch:
+ ${FIND} ${WRKSRC} -name '*.pm' -o -name '*.t' -o -name '*.PL' | \
+ ${XARGS} ${PERL} -pi -e '$$_="" if /^use 5/;' \
+ -e '$$_="" if /(use|no) warnings/;'
-DOCSDIR= ${PREFIX}/share/doc/p5-DNS-Zone
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
-.include <bsd.port.pre.mk>
-
-.if ${PERL_LEVEL} < 500600
-IGNORE= "Perl 5.6 or newer required. Install lang/perl5 or lang/perl5.8 and try again."
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>