diff options
Diffstat (limited to 'textproc/p5-XML-Directory')
-rw-r--r-- | textproc/p5-XML-Directory/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/textproc/p5-XML-Directory/Makefile b/textproc/p5-XML-Directory/Makefile index 3492341..d7dab3b 100644 --- a/textproc/p5-XML-Directory/Makefile +++ b/textproc/p5-XML-Directory/Makefile @@ -14,8 +14,7 @@ PKGNAMEPREFIX= p5- MAINTAINER= skv@protey.ru -BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec \ - ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/RDF/Notation3.pm:${PORTSDIR}/textproc/p5-RDF-Notation3 +BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/RDF/Notation3.pm:${PORTSDIR}/textproc/p5-RDF-Notation3 RUN_DEPENDS= ${BUILD_DEPENDS} PERL_CONFIGURE= yes @@ -30,4 +29,10 @@ pre-patch: @find ${WRKSRC} -name "*.pm" | xargs ${PERL} -pi -e \ '$$package=$$1 if /^package\s+([^\s;]*);/; s!^require 5.005_62;!!; s!^use warnings;!!; s!^our\s+(\$$|@)(VERSION|ISA|EXPORT|EXPORT_OK)\s+=!$$1$${package}::$$2=!;' -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 500601 +BUILD_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec +.endif + +.include <bsd.port.post.mk> |