summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2012-10-11 15:39:30 +0000
committerJulian Ospald <hasufell@gentoo.org>2012-10-11 15:39:30 +0000
commit2fa16945217a2de67989012c92d817fa6b505408 (patch)
tree41ae928097baf6c7201cfbddbea4d4c174225daf
parentMissed the blocker bug (#437612) marking unstable for amd64 (diff)
downloadhistorical-2fa16945217a2de67989012c92d817fa6b505408.tar.gz
historical-2fa16945217a2de67989012c92d817fa6b505408.tar.bz2
historical-2fa16945217a2de67989012c92d817fa6b505408.zip
version bump
Package-Manager: portage-2.2.0_alpha136/cvs/Linux x86_64
-rw-r--r--games-fps/warsow/ChangeLog8
-rw-r--r--games-fps/warsow/Manifest20
-rw-r--r--games-fps/warsow/files/warsow-1.01-build.patch563
-rw-r--r--games-fps/warsow/warsow-1.01.ebuild168
4 files changed, 757 insertions, 2 deletions
diff --git a/games-fps/warsow/ChangeLog b/games-fps/warsow/ChangeLog
index a04d2af4e85f..2a061881f5ba 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.39 2012/10/03 10:29:21 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-fps/warsow/ChangeLog,v 1.40 2012/10/11 15:39:24 hasufell Exp $
+
+*warsow-1.01 (11 Oct 2012)
+
+ 11 Oct 2012; Julian Ospald <hasufell@gentoo.org> +warsow-1.01.ebuild,
+ +files/warsow-1.01-build.patch:
+ version bump
03 Oct 2012; Agostino Sarubbo <ago@gentoo.org> warsow-1.0.ebuild:
Stable for amd64, wrt bug #436808
diff --git a/games-fps/warsow/Manifest b/games-fps/warsow/Manifest
index ebb19c9c67fa..0c152a466ad7 100644
--- a/games-fps/warsow/Manifest
+++ b/games-fps/warsow/Manifest
@@ -1,18 +1,36 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
AUX warsow-0.5-build.patch 2995 SHA256 cbd7ddbfa45e12644f33a910dc453ff3b7d60a5e9e1dc14b71fb818e8bbd0e8c SHA512 8c2a518632a1e8150913cb05e405b7d0e5d0c4d8e926582821036a76efdba4b60d839ab740a47df045796e31f0f85ebb1220cdcdd1ac1ab5c3c9d38f7b5c4cca WHIRLPOOL 603f65ff408fc70e09871de7bc5bbeaec999e43e53a1f21df98c9ecbc432b991a8ba21c99bee4c10dd1fec7eb1707a223b75bb4fb276408b9f20188a1c625894
AUX warsow-0.5-openal.patch 304 SHA256 6eb943201d4c5d6b8a902cda4efc75ea6ce6c8849d5ea10b39e12650c810d4df SHA512 5c4fcbfe0efa7e98ce0da8205f1cb2bb6c14093015e470c5fe330cd0daceaa3b723067ea67d392dd179579cbb34c6ba11e9f732e6ebdd7ad27d64465aea2ba21 WHIRLPOOL b2123d5afc8e24c6db63cf06e47c85c08d27733bfa8e50cf134374bbe5d75ffc3f7d45d563905c7c2a3424b7c63b044783654be1ba6d49d00f0b4cf06d639b9b
AUX warsow-0.5-pic.patch 377 SHA256 300c220fb833424be66da460ad4ac1ef6c61cde0dc5b76e1e8e0b75f5ece3782 SHA512 1f712dbf83c3bca6a2f0424f2250133a23903da86c9045d0917ef5a18b311f6485af6cd5afc1bbcc8b47ff0e0f880154fc17f978c2e7400b6edb4b2ba33b2e18 WHIRLPOOL 536ddb836e09c15d0a3e5645066042164a556d608022c9892a82cd56552a489d6d424909878fe89ddf035a1a604d9ba4a73eabe563c6de51f44ccec1f9b7d854
AUX warsow-0.62-build.patch 13349 SHA256 82ad996d1d925ffc849737c2e4bc028bf4c95e4e86a445fae3b66c59269764d5 SHA512 794defe657558386a23c63d47e86aa4fb54f7ce709f7de532519071fb3e99146d4ac36d58194692fee6febfb91eb6ebbaae036b74d40d3c17473e8e367e66c4a WHIRLPOOL d294b51a270b4f7e3ebe42e85cf8f2dff763f49363d37eff2ea703a8bf9eba5e4c6bf0ba4d620faee4ae94b113b4ebcfb7ab11a046e5fffaa695c0e9132fe41f
AUX warsow-1.0-build.patch 16346 SHA256 626f23dc9c99eec2d1e1760e9247eb81079569ea139c165cb3ec908235e3aee7 SHA512 50131166cbd4ea39e9d77936d47ee9ca602f78f37f4f0351c188528deaebee1312b757ec4703b20a104cd23dbb5b68a948af774d67da07d1dac671c752bee4cf WHIRLPOOL 866797b10d0513269e72d2e71cda2d4860c8ca90322a426232dbcbd00cde68350a56ac484dacf350de11263ef329c5632dab5f8d0d8b08795191d6ac671ebe51
+AUX warsow-1.01-build.patch 16217 SHA256 cf358c1b56042f5075dc2570977f27675869832385d0a7d636ab33d1276bf783 SHA512 b36f9d95bedde6f1e7c8e12a871ebed64baad7a8e3d98cab18f4acc32bae8b02e07ef74ac3620f7d582000ec9b30b1fa1a8e58ee6302b32446361e1a29679fbc WHIRLPOOL beb08653043038e9acea217aeae2057ceb3e8e0a134f54a0faefa212b988a234284e1b4280fc2decc18364c61a02ae2dc391df969489e166fafc429d8edb5fb7
DIST warsow.png 1692 SHA256 086968e72271b248ef32609ed1818ff9f5c355297b1eee3cbee9e41f4e18a954 SHA512 76476fd6f624b4043405fbddeaa0fa46338b96bf46a9b64434940d9a84738a20c25243ef1316048159698b6a70b3e0f26218da3332203a93944312e77ba22c8f WHIRLPOOL 94b7c77641d5a8f581de4eb0e4e91b71f25347248a6aa6c1160e8fefda92951daa3fbbf04aee4920fc9b53fb07872d3fb7d870d4207d13844e07afa51c93e85b
DIST warsow_0.5_sdk.zip 34213675 SHA256 35cc937b4b38659df803d84f6b3fd6e9d5a5480ecadb4b642d991b99e3401f05
DIST warsow_0.5_unified.zip 256768515 SHA256 66ac784277def8d90a8368d44e7ca72cd1d3a50b63cee4ad7c3e102cf16f5100
DIST warsow_0.61_unified.zip 473053649 SHA256 fbabfd3e531ce5371fb5e8cd5113ed7606d5c89e6c52ec083bf178aa1bd9abac SHA512 9784f8f4908496339b562a23f79d1f39b362fcd4eb28c786f7cc67ca63ba3f9501fcbfc6535b4f19b9822c9ba3d774aebc1b31ee8151b8a20e5b524415f05312 WHIRLPOOL 387c0489975c7b15d9cb0e54f39810cdaef52c248864c80879c65fe64eb6e74c73738b33d82a9762fe6db8f02058a5f62f610e1d647ea2d198caa33f96986749
DIST warsow_0.62_sdk.zip 36600605 SHA256 e1a86c355307539b8f427a76fc54e7279f39567a9eb570accd8ad74f4bf96159 SHA512 e9efc91aaf0c945a9d2b68201a4a496916b7833bff4e2f23af74ed916ee63f046786caa47a77a8c248add9cf639ee5317f576af02199789789e123af2273cf1d WHIRLPOOL 644ed0b8af9205d16a320949f5466670bd317a2d5f6a15e410ae571291330a548d884afa98c1ec307f68fe3388925a298d8b0075d8d6cf65781bba3d317e9598
DIST warsow_0.62_update.zip 11553787 SHA256 d16309bfc39929a47efe71d5dd28a790c16a7de07232f68fc9672407bebda278 SHA512 568d8523103c23679128dfd2cb8ecd5b47a5b14e26b33e837268e10d8e4fe04b8cb5addd51031f2d90938a0b35f82adbfcf910146a7c40d32ae8e912a7e78a8c WHIRLPOOL e4881c58533b1810bdf45af9610c8f076f0511f22b940727db840aef14be53b259b9751d5aa7e6e6064ccd2ab2441f440cd6fd143751ed91eedd56fdaa1c0c6e
+DIST warsow_1.01_sdk.tar.gz 56537475 SHA256 a9c7766f96290e58e0707fbbed412162af7a4711eae988744e61861cf7db5a91 SHA512 e1f6526176535c61e9d270672a340d11d7861ca398e0af0c13049b162615dfaf71799d73079d9179e90411ef2e3fce013b15a2e2d9a5098a461571a87b8ef468 WHIRLPOOL 040020995f1319ef69d7ba54788396f3e4ed0a272f6d244688702fd4e4d05ce1c586255f02d54998e27116b2ec20a40f61382fed28fc09af0dc5d216ade00456
+DIST warsow_1.01_update.tar.gz 14557600 SHA256 f09696c4a4a13a9e3da0a0499bbe471a8c552be8524574c78a9946f7776e6586 SHA512 c80a18c00db9a9bce137cfef74fef79f8cc4e4c534cdfecf737a6caef682e0532aa8d6a6455600ed9549cb46720abba41f17b81d02e75a51f0cfb8a4129df7c1 WHIRLPOOL 8a23ea53d1b4fe5be80c5327529d7c3dd4094adbaf72f53de1fe1c2e917a4c14f8771417dfc8bc96c56a20dd6a87d82c5822607d30433e32de7abace8eb01057
DIST warsow_1.0_sdk.tar.gz 56525636 SHA256 2e394b5c50ad206723a59636ab93448f69d8602e710ab334451badf746870e22 SHA512 dee6591fb5ed7150e3e18db20b18366777dbacd4a465074eb3c978a04b7df5140e8a7817a5248542af06d2a6eb972ad986690f16e57ac08f753cccb2470d7bfe WHIRLPOOL e30772b49f37dede19d54e129cc1ca05bf9f01c9a10f372c9c420ceba25514c6a928c12ba61e140efc5ea8d46cbd6db403ca03aee215964173662127b9dbfd59
DIST warsow_1.0_unified.tar.gz 518459004 SHA256 f933d251de4c92b6107d4db1eef5326baf4873d32a6e2f1c3daae14bc92e85ec SHA512 78706093fb4b8684893d9b497fd10f1ce3ef096b68bbf7d36ed2bc775fa649738f0153a723b2788ef6a54d30826ec96bc36899d2e5c230bf09022b98cc105aad WHIRLPOOL efdffd7f358c704a6c08eb1d8c91543db3b76805edba775f88570debfa1b4a9ac64772958831fff7d0be4d72f2d29abbb7610d115e92cdb0fd897a8e31b1059c
EBUILD warsow-0.5-r1.ebuild 3307 SHA256 c255ca80016a3ebed54d30ed965307b938b77a675f4ef47ab59ad5629a778302 SHA512 adf3e2a7f934a3d6d4589087f25c7db748d9bfea35f92bfff6018973354aa9c9271797565f8afd6e72c34c98928a3977dd4e72c5d726d48e824990fda180f402 WHIRLPOOL ae508adccd0eeef5e28c0147cf4d820e80058fa6192963a565ef741763994861c4ae99af6bc10ea791cc78e49926e05375ba1e701c4a9ee0fab1e3c2d1f48f57
EBUILD warsow-0.62.ebuild 3455 SHA256 e15b191b283a2c9ccd36b83d250119564ac326922f1d5700a3112223ba314a6c SHA512 9b9eb9bc00aef219722733eb249e796436c8d9c5812c4ab1591c495279086a803c452f68665149d1948d1e96194e434f856e396e72d8078006fddfd909d27755 WHIRLPOOL f3c166b4d89b28e8e9406ae8326762c1365bce779cb7574d18889d8292ee21ccc99fd737fc85be96f72196f76e348f045cbfb52ddd5b3d2e04453f15546300ff
EBUILD warsow-1.0.ebuild 3377 SHA256 c6235538393baa6224306f90b1880bfe8a25d0814154d6e2ce971593c1a8ecab SHA512 9cbe8f7c67241cccb88cae192f26951d59df1714fbe445b6b99024d82ee7873d32c6b0332e65b8a7fab675d3b8d9831eed87a4c14a751e5ac0e6386773ca3531 WHIRLPOOL 9dc624d5a268970186a77535e35a31736788c8198288dc20da57cdbbfb28aaddcc71820cb2edaec7f95842c8b19ad7ec6a0911d556a978dce8f57c5f430a432f
-MISC ChangeLog 5539 SHA256 0ceaa5a8a2d801f919767c384a412b8af8ea99f0403077b4394ce407a85cd160 SHA512 1c3edf474b31831ce11251f63ed66b3aec80724beb329ba3c98f0a5b10d4358c8369422c2337999d3d2f5bd9943603b1ff10f270ff1d8107b458e19e78084944 WHIRLPOOL f83964ebcc054ee386afbf74dbbc5dae25c39b20450d13c7ca4a24ab65c25864a5aeaa4e2ec7b378355d5d176c5edbae417491df252df3b2966d398252e7667d
+EBUILD warsow-1.01.ebuild 3550 SHA256 6fa8cecb4cd12c908075c05a951e06ad21013c1794d23dbbc8999ed8b94b9f69 SHA512 082f16974612d47cfbadeb20d1adbf42f04916b9b60cba8046180496db0add22d584ef3245ffc0a7a60db32bc8aacd81afa5d2b398253911ad7b1c72b7f8edf3 WHIRLPOOL 1146e88422b984e64fed7b66b7b81627ff40f7eb1df49cb68e515fb093d477ffd68c6377442b61b47b00e8636d35bdc3a53573cda9bb367e080be48812e6fbe2
+MISC ChangeLog 5694 SHA256 708b1f69e1f86d1c2deb842efc52f2064639bdf8d843954c50bb2628357cebac SHA512 c5f41739f5f50b60f5a20331cdd1041f6ed5238f1518eeff7b03c1b6a8393f6d3818e2ce98f5341e684b0c7130eff9112a6c82c29a1effa4ff33476e07674727 WHIRLPOOL 7ae0ea980c772acb86cbc782c597a5e296d98c31d6c9f16df69d24b51a651cf857c41b6c6d306125df7600213778f3188087638b0475443ec7e5c50e839f89d4
MISC metadata.xml 347 SHA256 016dbabb997c28f241f054760d9b81b1c43f5161de6d53936a2ebeb78bccdbea SHA512 34e3d6eae3b4665eac573b096d83a2841aee4488cc1a237e54e6e12c0c7ad8caefbbde6b563d1421c9d68cf7fb2b6c2446dfeddb1390971a7630b5efa494cb77 WHIRLPOOL 9d4cbde23eacc798cb4f1ac0c504963d349619229a5c2e926d8fc1348b1fefc53e999cc21e0be0cdca58affd1bfd4a275ae633709af78ca3dc808431fa365db3
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iQEcBAEBCAAGBQJQdugxAAoJEFpvPKfnPDWzZScH/2tW9PZtN/YQbQMzuQFs7BZN
+7zY7pSHiMq99ipxZ9uqxi8QCp7LZtliivLpeDhjO1pI71yLMZBZrUtuZjKKen1Eq
+mESRTC9SF65bDBSkHLDy8Ix+mgxARtQf0khJTba2kQIHhcruPzCPa/uTe9EhNmoE
+hxCuZd0ZDQfvXFzssoculLDwz5O5IJbUHdoOvWamCIjbFlVuRcdRNItB2j5BkQti
+wRq1xV1Yta+QY+le0Xb3tmshnuhsGBj24VKW47t2nUGkr9Vqfaag9ZVDvhXKTlMd
+t9/bE9QPY12qnjxVl87RbvxAhiV5b/cBljSatJE/WJ6ZBRAPK2dDu141pmDPkbk=
+=C40V
+-----END PGP SIGNATURE-----
diff --git a/games-fps/warsow/files/warsow-1.01-build.patch b/games-fps/warsow/files/warsow-1.01-build.patch
new file mode 100644
index 000000000000..6b5b5b5dc461
--- /dev/null
+++ b/games-fps/warsow/files/warsow-1.01-build.patch
@@ -0,0 +1,563 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Thu Oct 11 15:00:18 UTC 2012
+Subject: build system
+
+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
+g) address parallel make issues
+
+--- source/Makefile
++++ source/Makefile
+@@ -50,10 +50,10 @@
+ else
+ CC?=gcc
+ CXX?=g++
+-LD=gcc
+-LXX?=g++
+-AR=ar
+-RANLIB=ranlib
++LD=$(CC)
++LXX=$(CXX)
++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/)
+@@ -62,7 +62,7 @@
+ ifeq ($(OS),FreeBSD)
+ ARCH?=freebsd_$(BASE_ARCH)
+ else
+-ARCH?=$(BASE_ARCH)
++ARCH=$(BASE_ARCH)
+ endif
+
+ SHARED_LIBRARY_EXTENSION=so
+@@ -72,7 +72,7 @@
+
+ ifeq ($(DEBUG_BUILD), YES)
+ BINDIR=debug
+-CFLAGS_DEBUG=-O0 -ggdb -D_DEBUG
++CFLAGS_DEBUG=-D_DEBUG
+ else
+ BINDIR=release
+ endif
+@@ -116,14 +116,14 @@
+ LIBROCKET_DIR=../libsrcs/libRocket/libRocket
+ LIBROCKET_MAKEFILE=Makefile.warsow
+ LIBROCKET_INC=$(LIBROCKET_DIR)/Include
+-LIBROCKET_LIB=$(LIBROCKET_DIR)/lib/libRocketWSW.a
++LIBROCKET_LIB=$(LIBROCKET_DIR)/bin/libRocketWSW.a
+
+ CFLAGS_ROCKET=-DSTATIC_LIB -I$(LIBROCKET_INC) -I$(ANGELSCRIPT_INC)
+ # add the base of ui to inclusions
+ CFLAGS_ROCKET+=-Iui
+
+ # static link to custombuilt lib
+-LDFLAGS_ROCKET=-L$(LIBROCKET_DIR)/lib -lRocketWSW -lfreetype
++LDFLAGS_ROCKET=-L$(LIBROCKET_DIR)/bin -lRocketWSW -lfreetype
+ # dynamic link to 'official' build
+ # LDFLAGS_ROCKET=-L$(LIBROCKET_DIR)/Build -lRocketCore -lRocketControls -lfreetype
+
+@@ -196,8 +196,8 @@
+ X11BASE?=/usr/X11R6
+
+ CFLAGS_COMMON=$(CFLAGS) -pipe -I. -I$(LOCALBASE)/include -I$(X11BASE)/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Wall -Wno-unused-function -fvisibility=hidden
+-CFLAGS_RELEASE=-O2 -fno-strict-aliasing -ffast-math -funroll-loops -DNDEBUG -msse2
+-CFLAGS_DEBUG=-O0 -ggdb -D_DEBUG
++CFLAGS_RELEASE=-fno-strict-aliasing -ffast-math -funroll-loops -DNDEBUG
++CFLAGS_DEBUG=-D_DEBUG
+ ifeq ($(DEBUG_BUILD),YES)
+ CFLAGS_COMMON+=$(CFLAGS_DEBUG)
+ else
+@@ -209,18 +209,18 @@
+ CFLAGS_MODULE=-DPIC -fPIC
+ CFLAGS_TV_SERVER=-DDEDICATED_ONLY -DTV_SERVER_ONLY -DC_ONLY -DTV_MODULE_HARD_LINKED
+
+-LDFLAGS_COMMON=$(LDFLAGS)
+-LXXFLAGS_COMMON=$(LDFLAGS) -lstdc++ -lsupc++
++LDFLAGS_COMMON=
++LXXFLAGS_COMMON=-lstdc++ -lsupc++
+
+ ifeq ($(OS),FreeBSD)
+ LDFLAGS_COMMON+= -L/usr/local/lib -lm -pthread
+ else
+-LDFLAGS_COMMON+= -L/usr/local/lib -ldl -lm -O1 -Wl,--as-needed
++LDFLAGS_COMMON+= -ldl -lm
+ endif
+
+ ifneq ($(DEBUG_BUILD),YES)
+-LDFLAGS_COMMON+= -s
+-LXXFLAGS_COMMON+= -s
++LDFLAGS_COMMON+=
++LXXFLAGS_COMMON+=
+ endif
+
+ ifeq ($(ARCH),x86_64)
+@@ -298,12 +298,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)
+@@ -505,17 +502,17 @@
+
+ all: client openal qf ded cgame game ui irc cin 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
+ cin: $(BUILDDIRS) message-cin compile-cin link-cin
+ 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-librocket clean-irc clean-cin clean-angelwrap clean-tv_server
+
+@@ -611,13 +608,14 @@
+ @echo "> *********************************************************"
+ compile-ui: $(OBJS_UI_ROCKET) $(LIBROCKET_LIB)
+ link-ui: $(BINDIR)/basewsw $(BINDIR)/basewsw/ui_$(ARCH).$(SHARED_LIBRARY_EXTENSION)
++$(BINDIR)/basewsw/ui_$(ARCH).$(SHARED_LIBRARY_EXTENSION): $(LIBROCKET_LIB)
+ clean-ui:
+ @echo " > Removing ui objects" && \
+ $(RM) $(OBJS_UI_ROCKET)
+
+ $(LIBROCKET_LIB):
+ @echo "> * Building Rocket library"
+- @CXX=$(CXX) AR=$(AR) RANLIB=$(RANLIB) CXXFLAGS="$(CFLAGS)" DEBUG_BUILD=$(DEBUG_BUILD) USE_MINGW=$(USE_MINGW) $(MAKE) -C $(LIBROCKET_DIR) -f $(LIBROCKET_MAKEFILE) DEBUG_BUILD=$(DEBUG_BUILD)
++ @CXX=$(CXX) AR=$(AR) RANLIB=$(RANLIB) CXXFLAGS="$(CXXFLAGS)" DEBUG_BUILD=$(DEBUG_BUILD) USE_MINGW=$(USE_MINGW) $(MAKE) -C $(LIBROCKET_DIR) -f $(LIBROCKET_MAKEFILE) DEBUG_BUILD=$(DEBUG_BUILD)
+ @echo "> * Done building RocketCore library."
+ @echo "> *********************************************************"
+ @echo "> * Continuing ui building..."
+@@ -656,7 +654,6 @@
+ @echo "> *********************************************************"
+ @echo "> * Building angelwrap"
+ @echo "> *********************************************************"
+- -@rm $(ANGELSCRIPT_LIB)
+ $(ANGELSCRIPT_INC)/angelscript.h:
+ @echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
+ @echo "!!!"
+@@ -668,7 +665,7 @@
+
+ $(ANGELSCRIPT_LIB): $(ANGELSCRIPT_INC)/angelscript.h
+ @echo "> * Building Angelscript library first"
+- @CXX=$(CXX) AR=$(AR) RANLIB=$(RANLIB) CXXFLAGS="$(CFLAGS)" $(MAKE) -C $(ANGELSCRIPT_PROJECT_DIR)
++ @CXX=$(CXX) AR=$(AR) RANLIB=$(RANLIB) CXXFLAGS="$(CXXFLAGS)" $(MAKE) -C $(ANGELSCRIPT_PROJECT_DIR)
+ @echo "> * Done building angelscript library."
+ @echo "> *********************************************************"
+ @echo "> * Continuing angelwrap building..."
+@@ -702,69 +699,57 @@
+ # 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)
++ $(LD) $(LDFLAGS) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_MODULE) $(LDFLAGS_OPENAL)
+
+ #########
+ # QF
+ #########
+ $(BINDIR)/libs/snd_qf_$(ARCH).$(SHARED_LIBRARY_EXTENSION): $(OBJS_QF)
+- @echo " > Linking $@" && \
+- $(LD) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_MODULE) $(LDFLAGS_QF)
++ $(LD) $(LDFLAGS) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_MODULE) $(LDFLAGS_QF)
+
+ ########
+ # .SO
+ ########
+ $(BINDIR)/basewsw/cgame_$(ARCH).$(SHARED_LIBRARY_EXTENSION): $(OBJS_CGAME)
+- @echo " > Linking $@" && \
+- $(LD) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_MODULE)
++ $(LD) $(LDFLAGS) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_MODULE)
+
+ $(BINDIR)/basewsw/game_$(ARCH).$(SHARED_LIBRARY_EXTENSION): $(OBJS_GAME)
+- @echo " > Linking $@" && \
+- $(LD) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_MODULE)
++ $(LD) $(LDFLAGS) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_MODULE)
+
+ $(BINDIR)/basewsw/ui_$(ARCH).$(SHARED_LIBRARY_EXTENSION): $(OBJS_UI_ROCKET)
+- @echo " > Linking $@" && \
+- $(LXX) -o $@ $^ $(LXXFLAGS_COMMON) $(LDFLAGS_MODULE) $(LDFLAGS_ROCKET)
++ $(LXX) $(LDFLAGS) -o $@ $^ $(LXXFLAGS_COMMON) $(LDFLAGS_MODULE) $(LDFLAGS_ROCKET)
+
+ $(BINDIR)/libs/irc_$(ARCH).$(SHARED_LIBRARY_EXTENSION): $(OBJS_IRC)
+- @echo " > Linking $@" && \
+- $(LD) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_MODULE) $(LDFLAGS_IRC)
++ $(LD) $(LDFLAGS) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_MODULE) $(LDFLAGS_IRC)
+
+ $(BINDIR)/libs/cin_$(ARCH).$(SHARED_LIBRARY_EXTENSION): $(OBJS_CIN)
+- @echo " > Linking $@" && \
+- $(LD) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_MODULE) $(LDFLAGS_CIN)
++ $(LD) $(LDFLAGS) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_MODULE) $(LDFLAGS_CIN)
+
+ $(BINDIR)/libs/angelwrap_$(ARCH).$(SHARED_LIBRARY_EXTENSION): $(OBJS_ANGELWRAP)
+- @echo " > Linking $@" && \
+- $(LXX) -o $@ $^ $(LXXFLAGS_COMMON) $(LDFLAGS_MODULE) $(LDFLAGS_ANGELWRAP)
++ $(LXX) $(LDFLAGS) -o $@ $^ $(LXXFLAGS_COMMON) $(LDFLAGS_MODULE) $(LDFLAGS_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
+@@ -776,49 +761,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 $@
+
+@@ -826,60 +810,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 $@
+
+@@ -887,117 +870,116 @@
+ # 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)
+
+ $(BUILDDIR)/game/%.o: matchmaker/%.c
+- @$(DO_CC_MODULE)
++ $(DO_CC_MODULE)
+
+ ########
+ # UI.ROCKET
+ ########
+ $(BUILDDIR)/ui/%.o: gameshared/%.c
+- @$(DO_CC_MODULE)
++ $(DO_CC_MODULE)
+
+ $(BUILDDIR)/ui/%.o: ui/%.cpp
+- @$(DO_CXX_MODULE) $(CFLAGS_ROCKET)
++ $(DO_CXX_MODULE) $(CFLAGS_ROCKET)
+
+ $(BUILDDIR)/ui/%.o: ui/kernel/%.cpp
+- @$(DO_CXX_MODULE) $(CFLAGS_ROCKET)
++ $(DO_CXX_MODULE) $(CFLAGS_ROCKET)
+
+ $(BUILDDIR)/ui/%.o: ui/as/%.cpp
+- @$(DO_CXX_MODULE) $(CFLAGS_ROCKET)
++ $(DO_CXX_MODULE) $(CFLAGS_ROCKET)
+
+ $(BUILDDIR)/ui/%.o: ui/datasources/%.cpp
+- @$(DO_CXX_MODULE) $(CFLAGS_ROCKET)
++ $(DO_CXX_MODULE) $(CFLAGS_ROCKET)
+
+ $(BUILDDIR)/ui/%.o: ui/widgets/%.cpp
+- @$(DO_CXX_MODULE) $(CFLAGS_ROCKET)
++ $(DO_CXX_MODULE) $(CFLAGS_ROCKET)
+
+ $(BUILDDIR)/ui/%.o: ui/decorators/%.cpp
+- @$(DO_CXX_MODULE) $(CFLAGS_ROCKET)
++ $(DO_CXX_MODULE) $(CFLAGS_ROCKET)
+
+ #$(BUILDDIR)/ui.as/%.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)
+
+ ########
+ # CIN
+ ########
+ $(BUILDDIR)/cin/%.o: gameshared/%.c
+- @$(DO_CC_MODULE)
++ $(DO_CC_MODULE)
+
+ $(BUILDDIR)/cin/%.o: cin/%.c
+- @$(DO_CC_MODULE) $(CFLAGS_CIN)
++ $(DO_CC_MODULE) $(CFLAGS_CIN)
+
+ ########
+ # 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)
+
+ $(BUILDDIR)/angelwrap/%.o : angelwrap/addon/%.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 $@
+
+--- libsrcs/libRocket/libRocket/Makefile.warsow
++++ libsrcs/libRocket/libRocket/Makefile.warsow
+@@ -13,9 +13,9 @@
+ endif
+
+ ifeq ($(DEBUG_BUILD),YES)
+- CXXFLAGS += -g -DROCKET_DEBUG
++ CXXFLAGS += -DROCKET_DEBUG
+ else
+- CXXFLAGS += -O2
++ CXXFLAGS +=
+ endif
+
+ BUILDDIR=Build/obj
+--- libsrcs/angelscript/angelSVN/sdk/angelscript/projects/gnuc/makefile
++++ libsrcs/angelscript/angelSVN/sdk/angelscript/projects/gnuc/makefile
+@@ -47,7 +47,7 @@
+ CXX ?= gcc
+ # On i686 architecture you may need to add -march=i686 if you get
+ # an undefined symbol for __sync_sub_and_fetch_4 in as_atomic.cpp.
+- CXXFLAGS += -g -Wall -fPIC -fno-strict-aliasing
++ CXXFLAGS += -Wall -fPIC -fno-strict-aliasing
+ endif
+
+ AR ?= ar
diff --git a/games-fps/warsow/warsow-1.01.ebuild b/games-fps/warsow/warsow-1.01.ebuild
new file mode 100644
index 000000000000..e2e755b93acf
--- /dev/null
+++ b/games-fps/warsow/warsow-1.01.ebuild
@@ -0,0 +1,168 @@
+# 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-1.01.ebuild,v 1.1 2012/10/11 15:39:24 hasufell Exp $
+
+EAPI=4
+inherit eutils check-reqs gnome2-utils games
+
+MY_P=${PN}_${PV}
+DESCRIPTION="Multiplayer FPS based on the QFusion engine (evolved from Quake 2)"
+HOMEPAGE="http://www.warsow.net/"
+SRC_URI="http://funpark.warsow-esport.net/~${PN}/1.0/${PN}_1.0_unified.tar.gz
+ http://funpark.warsow-esport.net/~${PN}/${PV}/${MY_P}_sdk.tar.gz
+ http://funpark.warsow-esport.net/~${PN}/${PV}/${MY_P}_update.tar.gz
+ mirror://gentoo/${PN}.png"
+
+LICENSE="GPL-2 warsow"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+angelscript debug dedicated irc openal server"
+
+RDEPEND="media-libs/freetype
+ net-misc/curl
+ sys-libs/zlib
+ !dedicated? (
+ media-libs/libpng:0
+ media-libs/libsdl
+ media-libs/libtheora
+ media-libs/libvorbis
+ x11-libs/libX11
+ x11-libs/libXinerama
+ x11-libs/libXrandr
+ x11-libs/libXxf86dga
+ x11-libs/libXxf86vm
+ virtual/jpeg
+ virtual/opengl
+ openal? ( media-libs/openal )
+ )"
+DEPEND="${RDEPEND}
+ x11-misc/makedepend
+ !dedicated? (
+ x11-proto/xineramaproto
+ x11-proto/xf86dgaproto
+ x11-proto/xf86vidmodeproto
+ )
+ openal? ( virtual/pkgconfig )"
+
+S=${WORKDIR}/${MY_P}_sdk/source
+S_U=${WORKDIR}/${PN}_1.0
+S_UPDATE=${WORKDIR}/${MY_P}_update
+
+CHECKREQS_DISK_BUILD="1G"
+CHECKREQS_DISK_USR="500M"
+
+src_prepare() {
+ sed -i \
+ -e "/fs_basepath =/ s:\.:${GAMES_DATADIR}/${PN}:" \
+ qcommon/files.c \
+ || die "sed files.c failed"
+
+ sed -i \
+ -e "s:q_jpeg_mem_src:_&:" \
+ ref_gl/r_image.c || die "sed r_image.c failed"
+
+ rm -r "${S_U}"/docs/old* || die
+
+ cd "${WORKDIR}"/${MY_P}_sdk || die
+ epatch "${FILESDIR}"/${P}-build.patch \
+ "${FILESDIR}"/${PN}-0.5-pic.patch
+ epatch_user
+}
+
+src_compile() {
+ yesno() { use ${1} && echo YES || echo NO ; }
+
+ use angelscript &&
+ emake -C ../libsrcs/angelscript/angelSVN/sdk/angelscript/projects/gnuc
+
+ local arch
+ if use amd64 ; then
+ arch=x86_64
+ elif use x86 ; then
+ arch=i386
+ fi
+
+ local myconf
+ if use dedicated ; then
+ myconf=(
+ BUILD_CLIENT=NO
+ BUILD_IRC=NO
+ BUILD_SND_OPENAL=NO
+ BUILD_SND_QF=NO
+ BUILD_CIN=NO
+ BUILD_SERVER=YES
+ BUILD_TV_SERVER=YES
+ )
+ else
+ myconf=(
+ BUILD_CLIENT=YES
+ BUILD_IRC=$(yesno irc)
+ BUILD_SND_OPENAL=$(yesno openal)
+ BUILD_SND_QF=YES
+ BUILD_CIN=YES
+ BUILD_SERVER=$(yesno server)
+ BUILD_TV_SERVER=$(yesno server)
+ )
+ fi
+
+ emake \
+ BASE_ARCH=${arch} \
+ BINDIR=bin \
+ BUILD_ANGELWRAP=$(yesno angelscript) \
+ DEBUG_BUILD=$(yesno debug) \
+ ${myconf[@]}
+}
+
+src_install() {
+ cd bin
+
+ if ! use dedicated ; then
+ newgamesbin ${PN}.* ${PN}
+ doicon -s 48 "${DISTDIR}"/${PN}.png
+ make_desktop_entry ${PN} Warsow
+ fi
+
+ if use dedicated || use server ; then
+ newgamesbin wsw_server.* ${PN}-ded
+ newgamesbin wswtv_server.* ${PN}-tv
+ fi
+
+ exeinto "$(games_get_libdir)"/${PN}
+ doexe */*.so
+
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r "${S_U}"/basewsw
+ doins -r "${S_UPDATE}"/basewsw
+
+ local so
+ for so in basewsw/*.so ; do
+ dosym "$(games_get_libdir)"/${PN}/${so##*/} \
+ "${GAMES_DATADIR}"/${PN}/${so}
+ 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}
+ done
+ fi
+
+ dodoc "${S_U}"/docs/*
+ dodoc "${S_UPDATE}"/docs/*
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}