summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErwin Lansing <erwin@FreeBSD.org>2006-04-22 11:29:24 +0000
committerErwin Lansing <erwin@FreeBSD.org>2006-04-22 11:29:24 +0000
commit4204481c056db1ddf2a80c91c86004acba12d4c0 (patch)
tree6cc2ef0edca16cad74101c42097b7607260bf895
parentUpdate to 1.2.4 (diff)
Fix the build error on 5.005 due to the warnings pragma
PR: 96154 Submitted by: hideo <hideo@lastamericanempire.com> (maintainer)
Notes
Notes: svn path=/head/; revision=160132
-rw-r--r--security/p5-Authen-Libwrap/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/security/p5-Authen-Libwrap/Makefile b/security/p5-Authen-Libwrap/Makefile
index 02990b40aaee..a7f99918540b 100644
--- a/security/p5-Authen-Libwrap/Makefile
+++ b/security/p5-Authen-Libwrap/Makefile
@@ -15,11 +15,15 @@ PKGNAMEPREFIX= p5-
MAINTAINER= hideo@lastamericanempire.com
COMMENT= Authen::Libwrap - access to TCP Wrappers library
-BUILD_DEPENDS= ${SITE_PERL}/Module/Build.pm:${PORTSDIR}/devel/p5-Module-Build
-RUN_DEPENDS= ${BUILD_DEPENDS}
-
PERL_MODBUILD= yes
MAN3= Authen::Libwrap.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600
+post-patch:
+ @${PERL} -pi -e 'undef $$_ if /^\s*(?:no|use) warnings/o' ${WRKSRC}/Build.PL ${WRKSRC}/lib/Authen/Libwrap.pm
+.endif
+
+.include <bsd.port.post.mk>