aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--textproc/p5-XML-Xerces/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/textproc/p5-XML-Xerces/Makefile b/textproc/p5-XML-Xerces/Makefile
index 8924913b6158..2430dffe8bbc 100644
--- a/textproc/p5-XML-Xerces/Makefile
+++ b/textproc/p5-XML-Xerces/Makefile
@@ -24,7 +24,13 @@ CONFIGURE_ENV= XERCES_INCLUDE=${LOCALBASE}/include \
XERCES_LIB=${LOCALBASE}/lib
USE_GMAKE= yes
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600
+IGNORE= "requires perl 5.6.x or later. Install lang/perl5 and try again"
+.endif
+
post-patch:
@${PERL} -pi -e "s|-lpthread|${PTHREAD_LIBS}|" ${WRKSRC}/Makefile.PL
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>