aboutsummaryrefslogtreecommitdiff
path: root/textproc/p5-XML-Directory
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-02-05 10:24:06 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-02-05 10:24:06 +0000
commitc2b9e72c293a6b07be0a2485f7c9bb2760e33fcd (patch)
tree197270b9a72cd2d2120d0c1a514fb6c612394830 /textproc/p5-XML-Directory
parent5150f9a4b561fb0a5a1f83cc7fbd127c70ec222a (diff)
downloadports-c2b9e72c293a6b07be0a2485f7c9bb2760e33fcd.tar.gz
ports-c2b9e72c293a6b07be0a2485f7c9bb2760e33fcd.zip
Notes
Diffstat (limited to 'textproc/p5-XML-Directory')
-rw-r--r--textproc/p5-XML-Directory/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/textproc/p5-XML-Directory/Makefile b/textproc/p5-XML-Directory/Makefile
index 3492341d1480..d7dab3b142c2 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>