diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 2003-01-13 09:44:35 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 2003-01-13 09:44:35 +0000 |
commit | 8982a265952529a7cc05548c4b376ebfaf36d369 (patch) | |
tree | 4b7c58b5ce191a83fe6f5c82a4a796b466873358 /archivers/p5-Archive-Zip | |
parent | Generate correct *_DEPENDS line for File::Spec 0.82 on 4.x and 5.x. (diff) |
Use another File::Spec detection code same as p5-HTML-Template.
Approved by: Erwin Lansing <erwin@lansing.dk> (maintainer)
Diffstat (limited to 'archivers/p5-Archive-Zip')
-rw-r--r-- | archivers/p5-Archive-Zip/Makefile | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/archivers/p5-Archive-Zip/Makefile b/archivers/p5-Archive-Zip/Makefile index 44d31ee16e97..09c02687f026 100644 --- a/archivers/p5-Archive-Zip/Makefile +++ b/archivers/p5-Archive-Zip/Makefile @@ -22,15 +22,10 @@ PERL_CONFIGURE= yes MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} MAN3= Archive::Zip.3 Archive::Zip::Tree.3 Archive::Zip::FAQ.3 Archive::Zip::MemberRead.3 -.include <bsd.port.pre.mk> +.include <bsd.port.mk> -SITE_PERL?= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER} - -PERL_MAJOR=${PERL_VER:C|^([1-9]+).*|\1|} -PERL_MINOR=${PERL_VER:C|^[1-9]+\.0*([1-9]+).*|\1|} - -.if ${PERL_MAJOR} < 5 || ${PERL_MAJOR} == 5 && ${PERL_MINOR} < 8 +# ${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) BUILD_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec -.endif # ${PERL_MAJOR} < 5 || ${PERL_MAJOR} == 5 && ${PERL_MINOR} < 8 - -.include <bsd.port.post.mk> +.endif |