diff options
author | alane <alane@FreeBSD.org> | 2002-10-30 17:04:27 +0800 |
---|---|---|
committer | alane <alane@FreeBSD.org> | 2002-10-30 17:04:27 +0800 |
commit | 3752cd01a1f7a62adffb490c5072f4b7018a5120 (patch) | |
tree | 85350312c0ec50832e14b2f7ec52b41559413c4d /devel/p5-File-Temp | |
parent | dd215536e57d2eda81c85a56156d2dcc67557093 (diff) | |
download | freebsd-ports-graphics-3752cd01a1f7a62adffb490c5072f4b7018a5120.tar.gz freebsd-ports-graphics-3752cd01a1f7a62adffb490c5072f4b7018a5120.tar.zst freebsd-ports-graphics-3752cd01a1f7a62adffb490c5072f4b7018a5120.zip |
Only use File-Spec if perl < 5.8.0.
PR: 44720
Approved by: maintainer
Diffstat (limited to 'devel/p5-File-Temp')
-rw-r--r-- | devel/p5-File-Temp/Makefile | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/devel/p5-File-Temp/Makefile b/devel/p5-File-Temp/Makefile index 67ca693e444..18e99f631c0 100644 --- a/devel/p5-File-Temp/Makefile +++ b/devel/p5-File-Temp/Makefile @@ -15,8 +15,6 @@ PKGNAMEPREFIX= p5- MAINTAINER= wjv@FreeBSD.org -# This dependency is not required for Perl >= 5.6.0 -BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec RUN_DEPENDS= ${BUILD_DEPENDS} PERL_CONFIGURE= yes @@ -24,4 +22,15 @@ PERL_CONFIGURE= yes MAN3= File::Temp.3 MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} -.include <bsd.port.mk> +.include <bsd.port.pre.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 +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> |