summaryrefslogtreecommitdiff
path: root/archivers/p5-Archive-Zip/Makefile
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2003-01-23 06:26:21 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2003-01-23 06:26:21 +0000
commit6c750ea53aaa0a3e5ff23d44c6cae07bbe20140f (patch)
tree9ab0144bf7d5eb24f667d92e07ad77d25dc66add /archivers/p5-Archive-Zip/Makefile
parentSimplify decection of File::Spec to avoid INDEX generation breakage. (diff)
Simplify decection of File::Spec to avoid INDEX generation breakage.
You shoud check to be installed latest perl5 port (5.x) or latest File::Spec module (4.x).
Notes
Notes: svn path=/head/; revision=73838
Diffstat (limited to 'archivers/p5-Archive-Zip/Makefile')
-rw-r--r--archivers/p5-Archive-Zip/Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/archivers/p5-Archive-Zip/Makefile b/archivers/p5-Archive-Zip/Makefile
index 09c02687f026..2f5846ed8714 100644
--- a/archivers/p5-Archive-Zip/Makefile
+++ b/archivers/p5-Archive-Zip/Makefile
@@ -24,8 +24,7 @@ MAN3= Archive::Zip.3 Archive::Zip::Tree.3 Archive::Zip::FAQ.3 Archive::Zip::Mem
.include <bsd.port.mk>
-# ${PERL} defined after bsd.port.post.mk. So place this after .include line.
-USE_FILESPEC!= ${PERL} -MFile::Spec -e 'print $$File::Spec::VERSION<0.8'
-.if (${USE_FILESPEC} == 1)
+.if ${OSVERSION} < 500000 && !exists(${SITE_PERL}/File/Spec.pm)
BUILD_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
+RUN_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
.endif