From 927c9c2190303cbf488da40b21aa8f687198bb23 Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Sun, 13 Apr 2003 12:28:23 +0000 Subject: Conditionalize dependencies for moudules included in perl 5.8 Make dependencies on modules included in the perl 5.8 distribution conditional on the perl version installed. While I'm here, remove SITE_PERL and MAN(3)PREFIX. 17 + 29 + 234 = 280 PRs. It's about time he starts doing the work himself! PR: ports/50588 Submitted by: Erwin Lansing --- devel/p5-Cache-Mmap/Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'devel/p5-Cache-Mmap') diff --git a/devel/p5-Cache-Mmap/Makefile b/devel/p5-Cache-Mmap/Makefile index 2e2be1d44796..a741892f5a12 100644 --- a/devel/p5-Cache-Mmap/Makefile +++ b/devel/p5-Cache-Mmap/Makefile @@ -15,12 +15,15 @@ PKGNAMEPREFIX= p5- MAINTAINER= erwin@lansing.dk COMMENT= Cache::Mmap - Shared data cache using memory mapped files -BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable -RUN_DEPENDS= ${BUILD_DEPENDS} - PERL_CONFIGURE= yes -MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} MAN3= Cache::Mmap.3 -.include +.include + +.if ${PERL_LEVEL} < 500800 +BUILD_DEPENDS+= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable +RUN_DEPENDS+= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable +.endif + +.include -- cgit v1.2.3