summaryrefslogtreecommitdiff
path: root/print/p5-PDF-Template/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'print/p5-PDF-Template/Makefile')
-rw-r--r--print/p5-PDF-Template/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/print/p5-PDF-Template/Makefile b/print/p5-PDF-Template/Makefile
index 25bc08939eba..b96dd7e452b8 100644
--- a/print/p5-PDF-Template/Makefile
+++ b/print/p5-PDF-Template/Makefile
@@ -16,4 +16,10 @@ RUN_DEPENDS= pdflib-perl>=0:print/pdflib-perl \
USES= perl5
USE_PERL5= configure
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} >= 504200
+EXTRA_PATCHES= ${PATCHDIR}/extrapatch-Makefile.PL
+.endif
+
+.include <bsd.port.post.mk>