aboutsummaryrefslogtreecommitdiff
path: root/graphics/p5-Graph-ReadWrite/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/p5-Graph-ReadWrite/Makefile')
-rw-r--r--graphics/p5-Graph-ReadWrite/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/graphics/p5-Graph-ReadWrite/Makefile b/graphics/p5-Graph-ReadWrite/Makefile
index a93b23d5ca49..163055a57c95 100644
--- a/graphics/p5-Graph-ReadWrite/Makefile
+++ b/graphics/p5-Graph-ReadWrite/Makefile
@@ -36,4 +36,11 @@ MAN3= Graph::Reader.3 \
post-patch:
@${REINPLACE_CMD} -e 's|Graph-ReadWrite|Graph::ReadWrite|' ${WRKSRC}/Makefile.PL
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+RUN_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+.endif
+
+.include <bsd.port.post.mk>