summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2012-05-11 16:46:51 +0000
committerJulian Ospald <hasufell@gentoo.org>2012-05-11 16:46:51 +0000
commit9431186d2483e458376ae165e563ea05962716f4 (patch)
tree14d17566f14b7b5bef33d97cfa37347bda53f6f9 /games-fps
parentNew package: Machine Learning PYthon (mlpy) is a high-performance Python libr... (diff)
downloadgentoo-2-9431186d2483e458376ae165e563ea05962716f4.tar.gz
gentoo-2-9431186d2483e458376ae165e563ea05962716f4.tar.bz2
gentoo-2-9431186d2483e458376ae165e563ea05962716f4.zip
version bump wrt #349349
(Portage version: 2.2.0_alpha103/cvs/Linux x86_64)
Diffstat (limited to 'games-fps')
-rw-r--r--games-fps/warsow/ChangeLog8
-rw-r--r--games-fps/warsow/files/warsow-0.62-build.patch504
-rw-r--r--games-fps/warsow/warsow-0.62.ebuild142
3 files changed, 653 insertions, 1 deletions
diff --git a/games-fps/warsow/ChangeLog b/games-fps/warsow/ChangeLog
index 423d73a04ba0..7c78f1610132 100644
--- a/games-fps/warsow/ChangeLog
+++ b/games-fps/warsow/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-fps/warsow
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/warsow/ChangeLog,v 1.30 2012/05/03 03:23:10 jdhore Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-fps/warsow/ChangeLog,v 1.31 2012/05/11 16:46:51 hasufell Exp $
+
+*warsow-0.62 (11 May 2012)
+
+ 11 May 2012; Julian Ospald <hasufell@gentoo.org> +warsow-0.62.ebuild,
+ +files/warsow-0.62-build.patch:
+ version bump wrt #349349
03 May 2012; Jeff Horelick <jdhore@gentoo.org> warsow-0.5-r1.ebuild:
dev-util/pkgconfig -> virtual/pkgconfig
diff --git a/games-fps/warsow/files/warsow-0.62-build.patch b/games-fps/warsow/files/warsow-0.62-build.patch
new file mode 100644
index 000000000000..8c55d3871d63
--- /dev/null
+++ b/games-fps/warsow/files/warsow-0.62-build.patch
@@ -0,0 +1,504 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Fri May 11 11:57:40 UTC 2012
+Subject: fix build system
+
+source/Makefile:
+a) respect flags/linker
+b) don't take ARCH from env (we set BASE_ARCH in the ebuild)
+c) split LDFLAGS and LDFLAGS_COMMON as per bug
+ http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=347650
+d) don't remove angel-lib (compilation fails, why is this?)
+e) make output verbose
+f) remove start-scripts
+
+source/matchmaker/Makefile:
+respect flags/linker
+
+libsrcs/angelscript/angelSVN/sdk/angelscript/projects/gnuc/makefile:
+a) add -fno-strict-aliasing
+ see https://bugs.gentoo.org/show_bug.cgi?id=285448
+b) correct CXX
+
+--- source/Makefile
++++ source/Makefile
+@@ -48,9 +48,9 @@
+ else
+ CC?=gcc
+ CXX?=g++
+-LD=gcc
+-AR=ar
+-RANLIB=ranlib
++LD=$(CC)
++AR?=ar
++RANLIB=?ranlib
+
+ # this nice line comes from the linux kernel makefile
+ BASE_ARCH:=$(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc/ -e s/sparc64/sparc/ -e s/arm.*/arm/ -e s/sa110/arm/ -e s/alpha/axp/)
+@@ -59,7 +59,7 @@
+ ifeq ($(OS),FreeBSD)
+ ARCH?=freebsd_$(BASE_ARCH)
+ else
+-ARCH?=$(BASE_ARCH)
++ARCH=$(BASE_ARCH)
+ endif
+
+ SHARED_LIBRARY_EXTENSION=so
+@@ -69,7 +69,7 @@
+
+ ifeq ($(DEBUG_BUILD), YES)
+ BINDIR=debug
+-CFLAGS_DEBUG=-O0 -ggdb -D_DEBUG
++CFLAGS_DEBUG=-D_DEBUG
+ else
+ BINDIR=release
+ endif
+@@ -166,9 +166,9 @@
+ LOCALBASE?=/usr/local
+ X11BASE?=/usr/X11R6
+
+-CFLAGS_COMMON=$(CFLAGS) -pipe -I. -I$(LOCALBASE)/include -I$(X11BASE)/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Wall -Wno-unused-function
+-CFLAGS_RELEASE=-O2 -fno-strict-aliasing -ffast-math -funroll-loops -DNDEBUG
+-CFLAGS_DEBUG=-O0 -ggdb -D_DEBUG
++CFLAGS_COMMON=$(CFLAGS) -I. -I$(LOCALBASE)/include -I$(X11BASE)/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Wall -Wno-unused-function
++CFLAGS_RELEASE=-fno-strict-aliasing -DNDEBUG
++CFLAGS_DEBUG=-D_DEBUG
+ ifeq ($(DEBUG_BUILD),YES)
+ CFLAGS_COMMON+=$(CFLAGS_DEBUG)
+ else
+@@ -180,14 +180,14 @@
+ CFLAGS_MODULE=-DPIC -fPIC
+ CFLAGS_TV_SERVER=-DDEDICATED_ONLY -DTV_SERVER_ONLY -DC_ONLY -DTV_MODULE_HARD_LINKED
+
+-LDFLAGS_COMMON=$(LDFLAGS)
++LDFLAGS_COMMON=
+ ifeq ($(OS),FreeBSD)
+ LDFLAGS_COMMON+= -L/usr/local/lib -lm -pthread
+ else
+-LDFLAGS_COMMON+= -L/usr/local/lib -ldl -lm -Wl -O1 --as-needed
++LDFLAGS_COMMON+= -ldl -lm
+ endif
+ ifneq ($(DEBUG_BUILD),YES)
+-LDFLAGS_COMMON+= -s
++LDFLAGS_COMMON+=
+ endif
+
+ ifeq ($(ARCH),x86_64)
+@@ -203,7 +203,7 @@
+
+ # openal
+ ifeq ($(BUILD_SND_OPENAL),YES)
+-OPENAL_CONFIG?=pkg-config openal
++OPENAL_CONFIG?=$(shell pkg-config openal)
+
+ CFLAGS_OPENAL=$(shell $(OPENAL_CONFIG) --cflags)
+ LDFLAGS_OPENAL=-lvorbisfile
+@@ -252,12 +252,9 @@
+ ######################################################################################################
+ # Helper functions
+ ######################################################################################################
+-DO_CC=echo " > Compiling $<" && \
+- $(CC) $(CFLAGS_COMMON) -c $< -o $@
+-DO_CXX=echo " > Compiling (c++) $<" && \
+- $(CXX) $(CFLAGS_COMMON) $(CXXFLAGS_COMMON) -c $< -o $@
+-DO_RES=echo " > Compiling resource $<" && \
+- $(RES) $(RESFLAGS_COMMON) -i $< -o $@
++DO_CC=$(CC) $(CFLAGS_COMMON) -c $< -o $@
++DO_CXX=$(CXX) $(CFLAGS_COMMON) $(CXXFLAGS_COMMON) -c $< -o $@
++DO_RES=$(RES) $(RESFLAGS_COMMON) -i $< -o $@
+
+ DO_CC_CLIENT=$(DO_CC) $(CFLAGS_CLIENT)
+ DO_CC_DED=$(DO_CC) $(CFLAGS_DED)
+@@ -477,16 +474,16 @@
+
+ all: client openal qf ded cgame game ui irc angelwrap tv_server
+
+-client: $(BUILDDIRS) message-client compile-client link-client start-script-client
++client: $(BUILDDIRS) message-client compile-client link-client
+ openal: $(BUILDDIRS) message-openal compile-openal link-openal
+ qf: $(BUILDDIRS) message-qf compile-qf link-qf
+-ded: $(BUILDDIRS) message-ded compile-ded link-ded start-script-ded
++ded: $(BUILDDIRS) message-ded compile-ded link-ded
+ cgame: $(BUILDDIRS) message-cgame compile-cgame link-cgame
+ game: $(BUILDDIRS) message-game compile-game link-game
+ ui: $(BUILDDIRS) message-ui compile-ui link-ui
+ irc: $(BUILDDIRS) message-irc compile-irc link-irc
+ angelwrap: $(BUILDDIRS) message-angelwrap compile-angelwrap link-angelwrap
+-tv_server: $(BUILDDIRS) message-tv_server compile-tv_server link-tv_server start-script-tv_server
++tv_server: $(BUILDDIRS) message-tv_server compile-tv_server link-tv_server
+
+ clean: clean-msg clean-depend clean-client clean-openal clean-qf clean-ded clean-cgame clean-game clean-ui clean-irc clean-angelwrap clean-tv_server
+
+@@ -604,7 +601,6 @@
+ @echo "> *********************************************************"
+ @echo "> * Building angelwrap"
+ @echo "> *********************************************************"
+- -@rm $(ANGELSCRIPT_LIB)
+ $(ANGELSCRIPT_INC)/angelscript.h:
+ @echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
+ @echo "!!!"
+@@ -650,64 +646,53 @@
+ # DED
+ ########
+ $(BINDIR)/$(SERVER_EXE): $(OBJS_DED)
+- @echo " > Linking $@" && \
+- $(LD) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_DED)
++ $(LD) $(LDFLAGS) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_DED)
+
+ #########
+ # CLIENT
+ #########
+ ifeq ($(OS),Darwin)
+ $(BINDIR)/$(CLIENT_EXE): $(OBJS_CLIENT)
+- @echo " > Linking $@" && \
+- $(LD) -o $@ $(OBJS_CLIENT) mac/SDLMain.m $(LDFLAGS_COMMON) $(LDFLAGS_CLIENT)
++ $(LD) $(LDFLAGS) -o $@ $(OBJS_CLIENT) mac/SDLMain.m $(LDFLAGS_COMMON) $(LDFLAGS_CLIENT)
+ else
+ $(BINDIR)/$(CLIENT_EXE): $(OBJS_CLIENT)
+- @echo " > Linking $@" && \
+- $(LD) -o $@ $(OBJS_CLIENT) $(LDFLAGS_COMMON) $(LDFLAGS_CLIENT)
++ $(LD) $(LDFLAGS) -o $@ $(OBJS_CLIENT) $(LDFLAGS_COMMON) $(LDFLAGS_CLIENT)
+ endif
+
+ #########
+ # OPENAL
+ #########
+ $(BINDIR)/libs/snd_openal_$(ARCH).$(SHARED_LIBRARY_EXTENSION): $(OBJS_OPENAL)
+- @echo " > Linking $@" && \
+- $(LD) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_MODULE) $(LDFLAGS_OPENAL) $(DEF_SND_OPENAL)
++ $(LD) $(LDFLAGS) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_MODULE) $(LDFLAGS_OPENAL) $(DEF_SND_OPENAL)
+
+ #########
+ # QF
+ #########
+ $(BINDIR)/libs/snd_qf_$(ARCH).$(SHARED_LIBRARY_EXTENSION): $(OBJS_QF)
+- @echo " > Linking $@" && \
+- $(LD) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_MODULE) $(LDFLAGS_QF) $(DEF_SND_QF)
++ $(LD) $(LDFLAGS) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_MODULE) $(LDFLAGS_QF) $(DEF_SND_QF)
+
+ ########
+ # .SO
+ ########
+ $(BINDIR)/basewsw/cgame_$(ARCH).$(SHARED_LIBRARY_EXTENSION): $(OBJS_CGAME)
+- @echo " > Linking $@" && \
+- $(LD) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_MODULE) $(DEF_CGAME)
++ $(LD) $(LDFLAGS) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_MODULE) $(DEF_CGAME)
+
+ $(BINDIR)/basewsw/game_$(ARCH).$(SHARED_LIBRARY_EXTENSION): $(OBJS_GAME)
+- @echo " > Linking $@" && \
+- $(LD) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_MODULE) $(DEF_GAME)
++ $(LD) $(LDFLAGS) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_MODULE) $(DEF_GAME)
+
+ $(BINDIR)/basewsw/ui_$(ARCH).$(SHARED_LIBRARY_EXTENSION): $(OBJS_UI)
+- @echo " > Linking $@" && \
+- $(LD) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_MODULE) $(DEF_UI)
++ $(LD) $(LDFLAGS) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_MODULE) $(DEF_UI)
+
+ $(BINDIR)/libs/irc_$(ARCH).$(SHARED_LIBRARY_EXTENSION): $(OBJS_IRC)
+- @echo " > Linking $@" && \
+- $(LD) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_MODULE) $(DEF_IRC)
++ $(LD) $(LDFLAGS) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_MODULE) $(DEF_IRC)
+
+ $(BINDIR)/libs/angelwrap_$(ARCH).$(SHARED_LIBRARY_EXTENSION): $(OBJS_ANGELWRAP)
+- @echo " > Linking $@" && \
+- $(CXX) -o $@ $^ $(LDFLAGS_ANGELWRAP) $(LDFLAGS_COMMON) $(LDFLAGS_MODULE) $(DEF_ANGELWRAP)
++ $(CXX) $(LDFLAGS) -o $@ $^ $(LDFLAGS_ANGELWRAP) $(LDFLAGS_COMMON) $(LDFLAGS_MODULE) $(DEF_ANGELWRAP)
+ ########
+ # TV
+ ########
+ $(BINDIR)/$(TV_SERVER_EXE): $(OBJS_TV_SERVER)
+- @echo " > Linking $@" && \
+- $(LD) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_TV_SERVER)
++ $(LD) $(LDFLAGS) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_TV_SERVER)
+
+ ######################################################################################################
+ # Meta Rules
+@@ -719,49 +704,48 @@
+ # CLIENT
+ ########
+ $(BUILDDIR)/client/%.o: qcommon/%.c
+- @$(DO_CC_CLIENT)
++ $(DO_CC_CLIENT)
+
+ $(BUILDDIR)/client/%.o: server/%.c
+- @$(DO_CC_CLIENT)
++ $(DO_CC_CLIENT)
+
+ $(BUILDDIR)/client/%.o: client/%.c
+- @$(DO_CC_CLIENT)
++ $(DO_CC_CLIENT)
+
+ $(BUILDDIR)/client/%.o: ref_gl/%.c
+- @$(DO_CC_CLIENT)
++ $(DO_CC_CLIENT)
+
+ $(BUILDDIR)/client/%.o: null/%.c
+- @$(DO_CC_CLIENT)
++ $(DO_CC_CLIENT)
+
+ $(BUILDDIR)/client/%.o: matchmaker/%.c
+- @$(DO_CC_CLIENT)
++ $(DO_CC_CLIENT)
+
+ ifeq ($(USE_MINGW),YES)
+ $(BUILDDIR)/client/%.o: win32/%.c
+- @$(DO_CC_CLIENT)
++ $(DO_CC_CLIENT)
+
+ $(BUILDDIR)/client/%.o: win32/%.rc
+- @$(DO_RES_CLIENT)
++ $(DO_RES_CLIENT)
+ else
+ ifeq ($(OS),Darwin)
+ $(BUILDDIR)/client/%.o: mac/%.c
+- @$(DO_CC_CLIENT)
++ $(DO_CC_CLIENT)
+ $(BUILDDIR)/client/%.o: unix/%.c
+- @$(DO_CC_CLIENT)
++ $(DO_CC_CLIENT)
+ else
+ $(BUILDDIR)/client/%.o: unix/%.c
+- @$(DO_CC_CLIENT)
++ $(DO_CC_CLIENT)
+ endif
+ endif
+
+ $(BUILDDIR)/client/%.o: game/%.c
+- @$(DO_CC_CLIENT)
++ $(DO_CC_CLIENT)
+
+ $(BUILDDIR)/client/%.o: gameshared/%.c
+- @$(DO_CC_DED)
++ $(DO_CC_DED)
+
+ $(BINDIR)/warsow: unix/start_script.sh
+- @echo " > Installing client start script" && \
+ cp $< $@ && \
+ chmod a+x $@
+
+@@ -769,60 +753,59 @@
+ # OPENAL
+ ########
+ $(BUILDDIR)/openal/%.o: snd_openal/%.c
+- @$(DO_CC_MODULE) $(CFLAGS_OPENAL)
++ $(DO_CC_MODULE) $(CFLAGS_OPENAL)
+
+ $(BUILDDIR)/openal/%.o: gameshared/%.c
+- @$(DO_CC_MODULE)
++ $(DO_CC_MODULE)
+
+ ########
+ # QF
+ ########
+ $(BUILDDIR)/qf/%.o: snd_qf/%.c
+- @$(DO_CC_MODULE) $(CFLAGS_QF)
++ $(DO_CC_MODULE) $(CFLAGS_QF)
+
+ ifeq ($(USE_MINGW),YES)
+ $(BUILDDIR)/qf/win_snd.o: win32/win_snd.c
+- @$(DO_CC_MODULE) $(CFLAGS_DSOUND)
++ $(DO_CC_MODULE) $(CFLAGS_DSOUND)
+ else
+ $(BUILDDIR)/qf/unix_snd.o: unix/unix_snd.c
+- @$(DO_CC_MODULE) $(CFLAGS_SDL)
++ $(DO_CC_MODULE) $(CFLAGS_SDL)
+ endif
+
+ $(BUILDDIR)/qf/%.o: gameshared/%.c
+- @$(DO_CC_MODULE)
++ $(DO_CC_MODULE)
+
+
+ ########
+ # DED
+ ########
+ $(BUILDDIR)/ded/%.o: qcommon/%.c
+- @$(DO_CC_DED)
++ $(DO_CC_DED)
+
+ $(BUILDDIR)/ded/%.o: server/%.c
+- @$(DO_CC_DED)
++ $(DO_CC_DED)
+
+ ifeq ($(USE_MINGW),YES)
+ $(BUILDDIR)/ded/%.o: win32/%.c
+- @$(DO_CC_DED)
++ $(DO_CC_DED)
+ else
+ $(BUILDDIR)/ded/%.o: unix/%.c
+- @$(DO_CC_DED)
++ $(DO_CC_DED)
+ endif
+
+ $(BUILDDIR)/ded/%.o: null/%.c
+- @$(DO_CC_DED)
++ $(DO_CC_DED)
+
+ $(BUILDDIR)/ded/%.o: game/%.c
+- @$(DO_CC_DED)
++ $(DO_CC_DED)
+
+ $(BUILDDIR)/ded/%.o: gameshared/%.c
+- @$(DO_CC_DED)
++ $(DO_CC_DED)
+
+ $(BUILDDIR)/ded/%.o: matchmaker/%.c
+- @$(DO_CC_DED)
++ $(DO_CC_DED)
+
+ $(BINDIR)/wsw_server: unix/start_script.sh
+- @echo " > Installing dedicated server start script" && \
+ cp $< $@ && \
+ chmod a+x $@
+
+@@ -830,91 +813,90 @@
+ # CGAME
+ ########
+ $(BUILDDIR)/cgame/%.o: cgame/%.c
+- @$(DO_CC_MODULE)
++ $(DO_CC_MODULE)
+
+ $(BUILDDIR)/cgame/%.o: gameshared/%.c
+- @$(DO_CC_MODULE)
++ $(DO_CC_MODULE)
+
+ ########
+ # GAME
+ ########
+ $(BUILDDIR)/game/%.o: game/%.c
+- @$(DO_CC_MODULE)
++ $(DO_CC_MODULE)
+
+ $(BUILDDIR)/game/%.o: game/ai/%.c
+- @$(DO_CC_MODULE)
++ $(DO_CC_MODULE)
+
+ $(BUILDDIR)/game/%.o: gameshared/%.c
+- @$(DO_CC_MODULE)
++ $(DO_CC_MODULE)
+
+ ########
+ # UI
+ ########
+ $(BUILDDIR)/ui/%.o: gameshared/%.c
+- @$(DO_CC_MODULE)
++ $(DO_CC_MODULE)
+
+ $(BUILDDIR)/ui/%.o: ui.old/%.c
+- @$(DO_CC_MODULE)
++ $(DO_CC_MODULE)
+
+ $(BUILDDIR)/ui/%.o: ui.old/%.cpp
+- @$(DO_CXX_MODULE)
++ $(DO_CXX_MODULE)
+
+ $(BUILDDIR)/ui/%.o: matchmaker/%.c
+- @$(DO_CC_MODULE)
++ $(DO_CC_MODULE)
+
+ ########
+ # IRC
+ ########
+ $(BUILDDIR)/irc/%.o: gameshared/%.c
+- @$(DO_CC_MODULE)
++ $(DO_CC_MODULE)
+
+ $(BUILDDIR)/irc/%.o: irc/%.c
+- @$(DO_CC_MODULE)
++ $(DO_CC_MODULE)
+
+ ########
+ # ANGELWRAP
+ ########
+ $(BUILDDIR)/angelwrap/%.o: gameshared/%.c
+- @$(DO_CC_MODULE) $(CFLAGS_ANGELWRAP)
++ $(DO_CC_MODULE) $(CFLAGS_ANGELWRAP)
+
+ $(BUILDDIR)/angelwrap/%.o: angelwrap/%.c
+- @$(DO_CC_MODULE) $(CFLAGS_ANGELWRAP)
++ $(DO_CC_MODULE) $(CFLAGS_ANGELWRAP)
+
+ $(BUILDDIR)/angelwrap/%.o: angelwrap/%.cpp
+- @$(DO_CXX_MODULE) $(CFLAGS_ANGELWRAP)
++ $(DO_CXX_MODULE) $(CFLAGS_ANGELWRAP)
+
+
+ ########
+ # TV SERVER
+ ########
+ $(BUILDDIR)/tv_server/%.o: qcommon/%.c
+- @$(DO_CC_TV_SERVER)
++ $(DO_CC_TV_SERVER)
+
+ $(BUILDDIR)/tv_server/%.o: client/%.c
+- @$(DO_CC_TV_SERVER)
++ $(DO_CC_TV_SERVER)
+
+ $(BUILDDIR)/tv_server/%.o: tv_server/tv_module/%.c
+- @$(DO_CC_TV_SERVER)
++ $(DO_CC_TV_SERVER)
+
+ $(BUILDDIR)/tv_server/%.o: tv_server/%.c
+- @$(DO_CC_TV_SERVER)
++ $(DO_CC_TV_SERVER)
+
+ ifeq ($(USE_MINGW),YES)
+ $(BUILDDIR)/tv_server/%.o: win32/%.c
+- @$(DO_CC_TV_SERVER)
++ $(DO_CC_TV_SERVER)
+ else
+ $(BUILDDIR)/tv_server/%.o: unix/%.c
+- @$(DO_CC_TV_SERVER)
++ $(DO_CC_TV_SERVER)
+ endif
+
+ $(BUILDDIR)/tv_server/%.o: null/%.c
+- @$(DO_CC_TV_SERVER)
++ $(DO_CC_TV_SERVER)
+
+ $(BUILDDIR)/tv_server/%.o: gameshared/%.c
+- @$(DO_CC_TV_SERVER)
++ $(DO_CC_TV_SERVER)
+
+ $(BINDIR)/wswtv_server: unix/start_script.sh
+- @echo " > Installing TV server start script" && \
+ cp $< $@ && \
+ chmod a+x $@
+
+--- source/matchmaker/Makefile
++++ source/matchmaker/Makefile
+@@ -9,7 +9,7 @@
+ DEBUG_BUILD?=YES
+
+ CC?=gcc
+-LD=gcc
++LD=$(CC)
+ RM?=rm
+
+ BUILDDIR=build$(ARCH)
+@@ -26,9 +26,9 @@
+ CFLAGS_MM=$(CFLAGS) -pipe -I. -I$(LOCALBASE)/include -I$(X11BASE)/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Wall
+
+ ifeq ($(DEBUG_BUILD),YES)
+-CFLAGS_MM += -O0 -ggdb -D_DEBUG
++CFLAGS_MM += -D_DEBUG
+ else
+-CFLAGS_MM += -O2 -fno-strict-aliasing -ffast-math -funroll-loops -DNDEBUG
++CFLAGS_MM += -fno-strict-aliasing -DNDEBUG
+ endif
+
+ CFLAGS_MM+=-DDEDICATED_ONLY -DMATCHMAKER -DC_ONLY
+--- libsrcs/angelscript/angelSVN/sdk/angelscript/projects/gnuc/makefile
++++ libsrcs/angelscript/angelSVN/sdk/angelscript/projects/gnuc/makefile
+@@ -12,10 +12,10 @@
+ INCDIR = ../../include
+ OBJDIR = obj
+
+-CXX ?= gcc
++CXX ?= g++
+ AR ?= ar
+ RANLIB ?= ranlib
+-CXXFLAGS_AS = $(CXXFLAGS) -g -Wall -fPIC
++CXXFLAGS_AS = $(CXXFLAGS) -Wall -fPIC -fno-strict-aliasing
+ DELETER = rm -f
+ COPIER = cp
+
diff --git a/games-fps/warsow/warsow-0.62.ebuild b/games-fps/warsow/warsow-0.62.ebuild
new file mode 100644
index 000000000000..286c6fa91d95
--- /dev/null
+++ b/games-fps/warsow/warsow-0.62.ebuild
@@ -0,0 +1,142 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/warsow/warsow-0.62.ebuild,v 1.1 2012/05/11 16:46:51 hasufell Exp $
+
+EAPI=2
+inherit eutils toolchain-funcs versionator games
+
+MY_P=${PN}_${PV}
+BASE_P=${PN}_0.61
+DESCRIPTION="Multiplayer FPS based on the QFusion engine (evolved from Quake 2)"
+HOMEPAGE="http://www.warsow.net/"
+SRC_URI="http://www.zcdn.org/dl/${BASE_P}_unified.zip
+ http://www.zcdn.org/dl/${MY_P}_update.zip
+ http://www.zcdn.org/dl/${MY_P}_sdk.zip
+ mirror://gentoo/${PN}.png"
+
+LICENSE="GPL-2 warsow"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+angelscript debug dedicated irc openal opengl"
+
+UIRDEPEND="virtual/jpeg
+ media-libs/libvorbis
+ media-libs/libsdl
+ virtual/opengl
+ x11-libs/libXinerama
+ x11-libs/libXxf86dga
+ x11-libs/libXxf86vm
+ openal? ( media-libs/openal )"
+RDEPEND="net-misc/curl
+ opengl? ( ${UIRDEPEND} )
+ !opengl? ( !dedicated? ( ${UIRDEPEND} ) )"
+UIDEPEND="x11-proto/xineramaproto
+ x11-proto/xf86dgaproto
+ x11-proto/xf86vidmodeproto
+ openal? ( virtual/pkgconfig )"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ x11-misc/makedepend
+ opengl? ( ${UIDEPEND} )
+ !opengl? ( !dedicated? ( ${UIDEPEND} ) )"
+
+S=${WORKDIR}/source
+
+src_unpack() {
+ unpack ${BASE_P}_unified.zip ${MY_P}_sdk.zip
+ cd ${BASE_P}_unified || die
+ unpack ${MY_P}_update.zip
+}
+
+src_prepare() {
+ sed -i \
+ -e "/fs_basepath =/ s:\.:${GAMES_DATADIR}/${PN}:" \
+ qcommon/files.c \
+ || die "sed files.c failed"
+
+ sed -i \
+ -e "s:jpeg_mem_src:_&:" \
+ ref_gl/r_image.c || die
+
+ cd "${WORKDIR}"
+ rm -rf docs/old
+ epatch \
+ "${FILESDIR}"/${P}-build.patch \
+ "${FILESDIR}"/${PN}-0.5-pic.patch
+}
+
+src_compile() {
+ yesno() { use ${1} && echo YES || echo NO ; }
+
+ local client="NO" irc="NO" openal="NO"
+ if use opengl || ! use dedicated ; then
+ client="YES"
+ use irc && irc="YES"
+ use openal && openal="YES"
+ fi
+
+ if use angelscript ; then
+ tc-export AR RANLIB
+ emake \
+ -C ../libsrcs/angelscript/angelSVN/sdk/angelscript/projects/gnuc \
+ || die "emake angelscript failed"
+ fi
+
+ local arch
+ if use amd64 ; then
+ arch=x86_64
+ elif use x86 ; then
+ arch=i386
+ fi
+
+ emake \
+ BASE_ARCH=${arch} \
+ BINDIR=bin \
+ BUILD_CLIENT=${client} \
+ BUILD_SERVER=$(yesno dedicated) \
+ BUILD_TV_SERVER=$(yesno dedicated) \
+ BUILD_ANGELWRAP=$(yesno angelscript) \
+ BUILD_IRC=${irc} \
+ BUILD_SND_OPENAL=${openal} \
+ BUILD_SND_QF=${client} \
+ DEBUG_BUILD=$(yesno debug) \
+ || die "emake failed"
+}
+
+src_install() {
+ cd bin
+
+ if use opengl || ! use dedicated ; then
+ newgamesbin ${PN}.* ${PN} || die "newgamesbin ${PN} failed"
+ doicon "${DISTDIR}"/${PN}.png
+ make_desktop_entry ${PN} Warsow
+ fi
+
+ if use dedicated ; then
+ newgamesbin wsw_server.* ${PN}-ded || die "newgamesbin ${PN}-ded failed"
+ newgamesbin wswtv_server.* ${PN}-tv || die "newgamesbin ${PN}-tv failed"
+ fi
+
+ exeinto "$(games_get_libdir)"/${PN}
+ doexe */*.so || die "doexe failed"
+
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r "${WORKDIR}/${BASE_P}_unified"/basewsw || die "doins failed"
+
+ local so
+ for so in basewsw/*.so ; do
+ dosym "$(games_get_libdir)"/${PN}/${so##*/} \
+ "${GAMES_DATADIR}"/${PN}/${so} || die "dosym ${so} failed"
+ done
+
+ if [[ -e libs ]] ; then
+ dodir "${GAMES_DATADIR}"/${PN}/libs
+ for so in libs/*.so ; do
+ dosym "$(games_get_libdir)"/${PN}/${so##*/} \
+ "${GAMES_DATADIR}"/${PN}/${so} || die "dosym ${so} failed"
+ done
+ fi
+
+ dodoc "${WORKDIR}"/docs/*
+ prepgamesdirs
+}