From 6db26ba974644717e439058b4c65ca3a69ac9882 Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Wed, 23 Nov 2005 12:00:47 +0000 Subject: - Force use of a higher GCC version - Include digest::md5 for perl on 4.x - Add BUILD_ENV to make sure that do-build works fine - Fix files/patch-code-unix-cons to understand $ENV{CC} and friends - Fix files/patch-code-qcommon-common.c to include sys/types.h Noticed by: YAPHR --- games/q3cellshading/Makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'games/q3cellshading/Makefile') diff --git a/games/q3cellshading/Makefile b/games/q3cellshading/Makefile index 41846d782d2f..00dad03d14da 100644 --- a/games/q3cellshading/Makefile +++ b/games/q3cellshading/Makefile @@ -7,7 +7,7 @@ PORTNAME= quake3 PORTVERSION= 1.32b -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= ftp://ftp.idsoftware.com/idstuff/source/ \ http://www.proarena.com/p/ftpx/x8524/quake_3_arena/ \ @@ -27,9 +27,16 @@ USE_GMAKE= yes USE_REINPLACE= yes USE_PERL5_BUILD=yes USE_GL= yes +USE_GCC= 3.2+ PLIST_FILES= bin/q3ded bin/quake3 +.include + +.if ${PERL_LEVEL} < 500600 +BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 +.endif + post-patch: @${REINPLACE_CMD} -e 's|%%Q3DIR%%|"${Q3DIR}"|' \ ${WRKSRC}/code/unix/unix_shared.c @@ -38,7 +45,7 @@ pre-build: ${MKDIR} ${WRKSRC}/lcc/build do-build: - cd ${WRKSRC}/code && ${PERL} unix/cons + cd ${WRKSRC}/code && ${MAKE_ENV} ${PERL} unix/cons do-install: ${INSTALL_PROGRAM} ${WRKSRC}/code/install/linuxq3ded \ @@ -47,4 +54,4 @@ do-install: ${PREFIX}/bin/quake3 .include "${.CURDIR}/../quake3-data/Makefile.include" -.include +.include -- cgit v1.2.3