aboutsummaryrefslogtreecommitdiff
path: root/security/p5-Crypt-Twofish
diff options
context:
space:
mode:
authorAlan Eldridge <alane@FreeBSD.org>2002-10-30 09:16:06 +0000
committerAlan Eldridge <alane@FreeBSD.org>2002-10-30 09:16:06 +0000
commit71ca69645ec6d359df31524e2dc9557710c07c10 (patch)
tree30f0e0c42e0ddf0180d5d9d4f3104e343574343d /security/p5-Crypt-Twofish
parent18adf914eada48bfa3ddc0c865060ce420e5b25c (diff)
downloadports-71ca69645ec6d359df31524e2dc9557710c07c10.tar.gz
ports-71ca69645ec6d359df31524e2dc9557710c07c10.zip
Notes
Diffstat (limited to 'security/p5-Crypt-Twofish')
-rw-r--r--security/p5-Crypt-Twofish/Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/security/p5-Crypt-Twofish/Makefile b/security/p5-Crypt-Twofish/Makefile
index 240d29c0a6d9..abae739e7431 100644
--- a/security/p5-Crypt-Twofish/Makefile
+++ b/security/p5-Crypt-Twofish/Makefile
@@ -14,8 +14,6 @@ PKGNAMEPREFIX= p5-
MAINTAINER= ports@FreeBSD.org
-BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
-
RESTRICTED= "Crypto; export-controlled"
PERL_CONFIGURE= yes
@@ -24,4 +22,15 @@ MAN3= Crypt::Twofish.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>