summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--comms/p5-Device-SerialPort/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/comms/p5-Device-SerialPort/Makefile b/comms/p5-Device-SerialPort/Makefile
index e8d8284b7a77..be8a3ba6e57b 100644
--- a/comms/p5-Device-SerialPort/Makefile
+++ b/comms/p5-Device-SerialPort/Makefile
@@ -21,4 +21,10 @@ PERL_CONFIGURE= yes
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
MAN3= Device::SerialPort.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500601
+IGNORE= "needs at least perl 5.6.1 to build"
+.endif
+
+.include <bsd.port.post.mk>