diff options
author | kuriyama <kuriyama@FreeBSD.org> | 2003-01-13 17:44:35 +0800 |
---|---|---|
committer | kuriyama <kuriyama@FreeBSD.org> | 2003-01-13 17:44:35 +0800 |
commit | 71abd2c13a1753697318b80493ebc450a560fd33 (patch) | |
tree | 1b1ce5d7587d453bec3d7baf145017abf809dc7d /archivers | |
parent | 1ec49070df349629e2807010fd4166c9d5b3dbaf (diff) | |
download | freebsd-ports-gnome-71abd2c13a1753697318b80493ebc450a560fd33.tar.gz freebsd-ports-gnome-71abd2c13a1753697318b80493ebc450a560fd33.tar.zst freebsd-ports-gnome-71abd2c13a1753697318b80493ebc450a560fd33.zip |
Use another File::Spec detection code same as p5-HTML-Template.
Approved by: Erwin Lansing <erwin@lansing.dk> (maintainer)
Diffstat (limited to 'archivers')
-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 |