From 628b215647a7f7c1e3232ad55bb67fd7cbdb9f14 Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Thu, 20 Feb 2003 16:33:26 +0000 Subject: Conditionalise several dependencies on PERL_LEVEL to make those ports more friendly for perl-5.8.0, which has those dependencies included into the base distribution. Sponsired by: Porta Software Ltd --- devel/p5-Cache-Cache/Makefile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'devel/p5-Cache-Cache') diff --git a/devel/p5-Cache-Cache/Makefile b/devel/p5-Cache-Cache/Makefile index ae7b2b3df51d..731dd67ab33a 100644 --- a/devel/p5-Cache-Cache/Makefile +++ b/devel/p5-Cache-Cache/Makefile @@ -14,9 +14,7 @@ PKGNAMEPREFIX= p5- MAINTAINER= tobez@FreeBSD.org -BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \ - ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/IPC/ShareLite.pm:${PORTSDIR}/devel/p5-IPC-ShareLite \ - ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable \ +BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/IPC/ShareLite.pm:${PORTSDIR}/devel/p5-IPC-ShareLite \ ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Error.pm:${PORTSDIR}/lang/p5-Error RUN_DEPENDS= ${BUILD_DEPENDS} @@ -44,4 +42,11 @@ MAN3= Cache::BaseCache.3 \ Cache::SizeAwareSharedMemoryCache.3 MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} -.include +.include + +.if ${PERL_LEVEL} < 500800 +BUILD_DEPENDS+= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \ + ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable +.endif + +.include -- cgit v1.2.3