aboutsummaryrefslogtreecommitdiff
path: root/devel/p5-File-Temp/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/p5-File-Temp/Makefile')
-rw-r--r--devel/p5-File-Temp/Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/devel/p5-File-Temp/Makefile b/devel/p5-File-Temp/Makefile
index 18e99f631c04..3d6007c94cb1 100644
--- a/devel/p5-File-Temp/Makefile
+++ b/devel/p5-File-Temp/Makefile
@@ -26,11 +26,9 @@ MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
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
+.if ${PERL_LEVEL} < 500601
BUILD_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
-.endif # ${PERL_MAJOR} < 5 || ${PERL_MAJOR} == 5 && ${PERL_MINOR} < 8
+RUN_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
+.endif
.include <bsd.port.post.mk>