From 3af4cf6d1d0c4b685ad6a4411f428aed50dfd7f2 Mon Sep 17 00:00:00 2001 From: rene Date: Mon, 23 May 2011 19:19:17 +0000 Subject: Fix build for Perl 5.14 by adding a dependency on lang/p5-Switch in that case. PR: ports/152737 Submitted by: Christoph Moench-Tegeder [cmt burggraben.net] --- www/chromium/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'www/chromium') diff --git a/www/chromium/Makefile b/www/chromium/Makefile index ce943f1e989..562de68b639 100644 --- a/www/chromium/Makefile +++ b/www/chromium/Makefile @@ -112,6 +112,12 @@ STRIP= MAKE_ENV+= BUILDTYPE=${BUILDTYPE} MAKE_JOBS_SAFE= yes +.include + +.if ${PERL_LEVEL} >= 501400 +BUILD_DEPENDS+= p5-Switch>=0:${PORTSDIR}/lang/p5-Switch +.endif + pre-everything:: @${ECHO_MSG} @${ECHO_MSG} "To build Chromium, you should have around 1 GB of memory" @@ -170,4 +176,4 @@ do-install: ${COPYTREE_SHARE} "locales resources" ${DATADIR} ${LN} -sf ${DATADIR}/chrome ${PREFIX}/bin -.include +.include -- cgit