summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2009-01-23 07:26:17 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2009-01-23 07:26:17 +0000
commit5fcbddbc257203598af0fc8c08e3161edc544db7 (patch)
treed96edc46218ec8100312e803708e038c3a198093 /games-action/btanks
parentRemove patch for sparc-fbsd since it was applied upstream, bug 159584. (diff)
downloadgentoo-2-5fcbddbc257203598af0fc8c08e3161edc544db7.tar.gz
gentoo-2-5fcbddbc257203598af0fc8c08e3161edc544db7.tar.bz2
gentoo-2-5fcbddbc257203598af0fc8c08e3161edc544db7.zip
EAPI=2; add use-based deps; allow parallel build; re-roll patch to avoid passing CFLAGS to the c++ compiler; fixed some compile warnings; work around namespace collision for bug #237980
(Portage version: 2.1.6.4/cvs/Linux 2.6.28.1 i686)
Diffstat (limited to 'games-action/btanks')
-rw-r--r--games-action/btanks/ChangeLog10
-rw-r--r--games-action/btanks/btanks-0.8.7686.ebuild18
-rw-r--r--games-action/btanks/files/btanks-0.8.7686-scons-blows.patch123
3 files changed, 137 insertions, 14 deletions
diff --git a/games-action/btanks/ChangeLog b/games-action/btanks/ChangeLog
index 732b2c5d2b16..38d159396acb 100644
--- a/games-action/btanks/ChangeLog
+++ b/games-action/btanks/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-action/btanks
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-action/btanks/ChangeLog,v 1.15 2008/11/10 07:46:36 mr_bones_ Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-action/btanks/ChangeLog,v 1.16 2009/01/23 07:26:17 mr_bones_ Exp $
+
+ 23 Jan 2009; Michael Sterrett <mr_bones_@gentoo.org>
+ files/btanks-0.8.7686-scons-blows.patch, btanks-0.8.7686.ebuild:
+ EAPI=2; add use-based deps; allow parallel build; re-roll patch to avoid
+ passing CFLAGS to the c++ compiler; fixed some compile warnings; work around
+ namespace collision for bug #237980
10 Nov 2008; Michael Sterrett <mr_bones_@gentoo.org>
btanks-0.8.7686.ebuild:
diff --git a/games-action/btanks/btanks-0.8.7686.ebuild b/games-action/btanks/btanks-0.8.7686.ebuild
index 2eb77e033790..4db444740105 100644
--- a/games-action/btanks/btanks-0.8.7686.ebuild
+++ b/games-action/btanks/btanks-0.8.7686.ebuild
@@ -1,7 +1,8 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-action/btanks/btanks-0.8.7686.ebuild,v 1.2 2008/11/10 07:46:36 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-action/btanks/btanks-0.8.7686.ebuild,v 1.3 2009/01/23 07:26:17 mr_bones_ Exp $
+EAPI=2
inherit eutils toolchain-funcs games
DESCRIPTION="Fast 2D tank arcade game with multiplayer and split-screen modes"
@@ -19,21 +20,18 @@ RDEPEND=">=dev-lang/lua-5.1
virtual/opengl
dev-libs/expat
media-libs/smpeg
- media-libs/sdl-image"
+ media-libs/sdl-image[jpeg,png]"
DEPEND="${RDEPEND}
dev-util/scons
dev-util/pkgconfig"
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${P}-scons-blows.patch
-}
+PATCHES=( "${FILESDIR}"/${P}-scons-blows.patch )
src_compile() {
+ local sconsopts=$(echo "${MAKEOPTS}" | sed -e "s/.*\(-j[0-9]\+\).*/\1/")
+
scons \
- CC="$(tc-getCC)" \
- CXX="$(tc-getCXX)" \
+ ${sconsopts} \
prefix="${GAMES_PREFIX}" \
lib_dir="$(games_get_libdir)"/${PN} \
plugins_dir="$(games_get_libdir)"/${PN} \
diff --git a/games-action/btanks/files/btanks-0.8.7686-scons-blows.patch b/games-action/btanks/files/btanks-0.8.7686-scons-blows.patch
index 81ef87bfed24..942bd7985706 100644
--- a/games-action/btanks/files/btanks-0.8.7686-scons-blows.patch
+++ b/games-action/btanks/files/btanks-0.8.7686-scons-blows.patch
@@ -1,5 +1,15 @@
---- SConstruct
-+++ SConstruct
+diff -ru btanks-0.8.7686.orig/SConstruct btanks-0.8.7686/SConstruct
+--- btanks-0.8.7686.orig/SConstruct 2008-07-29 05:08:59.000000000 -0400
++++ btanks-0.8.7686/SConstruct 2009-01-23 02:15:29.000000000 -0500
+@@ -49,7 +49,7 @@
+ if os.environ.has_key('CC'):
+ env['CC'] = os.environ['CC']
+ if os.environ.has_key('CFLAGS'):
+- env['CCFLAGS'] += SCons.Util.CLVar(os.environ['CFLAGS'])
++ env['CFLAGS'] += SCons.Util.CLVar(os.environ['CFLAGS'])
+ if os.environ.has_key('CXX'):
+ env['CXX'] = os.environ['CXX']
+ if os.environ.has_key('CXXFLAGS'):
@@ -90,19 +90,9 @@
#env.Append(CPPDEFINES = ['NDEBUG'])
@@ -22,3 +32,112 @@
conf_env = env.Clone()
+diff -ru btanks-0.8.7686.orig/clunk/kiss/_kiss_fft_guts.h btanks-0.8.7686/clunk/kiss/_kiss_fft_guts.h
+--- btanks-0.8.7686.orig/clunk/kiss/_kiss_fft_guts.h 2008-03-12 06:32:16.000000000 -0400
++++ btanks-0.8.7686/clunk/kiss/_kiss_fft_guts.h 2009-01-23 02:16:13.000000000 -0500
+@@ -18,6 +18,7 @@
+ typedef struct { kiss_fft_scalar r; kiss_fft_scalar i; }kiss_fft_cpx; */
+ #include "kiss_fft.h"
+ #include <limits.h>
++#include <string.h>
+
+ #define MAXFACTORS 32
+ /* e.g. an fft of length 128 has 4 factors
+diff -ru btanks-0.8.7686.orig/mrt/export_base.h btanks-0.8.7686/mrt/export_base.h
+--- btanks-0.8.7686.orig/mrt/export_base.h 2008-01-09 06:14:14.000000000 -0500
++++ btanks-0.8.7686/mrt/export_base.h 2009-01-23 02:16:58.000000000 -0500
+@@ -1,7 +1,7 @@
+ #ifndef MRT_EXPORT_MACRO_H__
+ #define MRT_EXPORT_MACRO_H__
+
+-// Shared library support
++/* Shared library support */
+ #ifdef _WINDOWS
+
+ # pragma warning(disable:4251) /* needs to have dll-interface used by client */
+diff -ru btanks-0.8.7686.orig/mrt/tclUniData.c btanks-0.8.7686/mrt/tclUniData.c
+--- btanks-0.8.7686.orig/mrt/tclUniData.c 2008-08-15 03:44:45.000000000 -0400
++++ btanks-0.8.7686/mrt/tclUniData.c 2009-01-23 02:15:29.000000000 -0500
+@@ -880,7 +880,7 @@
+ FINAL_QUOTE_PUNCTUATION,
+ OTHER_PUNCTUATION,
+ MATH_SYMBOL,
+- CURRENCY_SYMBOL,
++ LCURRENCY_SYMBOL,
+ MODIFIER_SYMBOL,
+ OTHER_SYMBOL
+ };
+diff -ru btanks-0.8.7686.orig/sdlx/gfx/SDL_rotozoom.c btanks-0.8.7686/sdlx/gfx/SDL_rotozoom.c
+--- btanks-0.8.7686.orig/sdlx/gfx/SDL_rotozoom.c 2008-09-02 06:43:34.000000000 -0400
++++ btanks-0.8.7686/sdlx/gfx/SDL_rotozoom.c 2009-01-23 02:18:37.000000000 -0500
+@@ -153,7 +153,7 @@
+ * Advance destination pointer
+ */
+ dp++;
+- } // dst x loop
++ } /* dst x loop */
+
+ /* next box-y */
+ sp = (Uint8 *)((Uint8*)osp + src->pitch*factory);
+@@ -739,7 +739,7 @@
+ }
+ break;
+
+- case 2: // rotated 180 degrees clockwise
++ case 2: /* rotated 180 degrees clockwise */
+ {
+ Uint32* srcBuf = NULL;
+ Uint32* dstBuf = NULL;
+@@ -751,8 +751,8 @@
+ *dstBuf = *srcBuf;
+ ++srcBuf;
+ --dstBuf;
+- } // for(col)
+- } // for(row)
++ }
++ }
+ }
+ break;
+
+@@ -768,17 +768,16 @@
+ *dstBuf = *srcBuf;
+ ++srcBuf;
+ dstBuf -= pSurfOut->pitch/4;
+- } // for(col)
+- } // for(row)
++ }
++ }
+ }
+ break;
+- } // switch
++ }
+
+ SDL_UnlockSurface(pSurf);
+ SDL_UnlockSurface(pSurfOut);
+- } // if numClockwiseTurns > 0
++ }
+ else {
+- // simply copy surface to output
+ if(SDL_BlitSurface(pSurf, NULL, pSurfOut, NULL)) {
+ return NULL;
+ }
+diff -ru btanks-0.8.7686.orig/sdlx/wrappers/glSDL.c btanks-0.8.7686/sdlx/wrappers/glSDL.c
+--- btanks-0.8.7686.orig/sdlx/wrappers/glSDL.c 2008-05-29 05:54:00.000000000 -0400
++++ btanks-0.8.7686/sdlx/wrappers/glSDL.c 2009-01-23 02:17:48.000000000 -0500
+@@ -11,8 +11,6 @@
+
+ #ifdef HAVE_OPENGL
+
+-//#define LEAK_TRACKING
+-
+ #define DBG(x) /*error messages, warnings*/
+ #define DBG2(x) /*texture allocation*/
+ #define DBG3(x) /*chopping/tiling*/
+@@ -951,7 +949,6 @@
+ }
+ gl_doublebuf = flags & SDL_DOUBLEBUF;
+ SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, gl_doublebuf);
+- //SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, gl_doublebuf ? 1: 0);
+
+ scale = 1;
+