1 |
commit: 4163ce9644bca8007f049d1c49331a41fb5965f4 |
2 |
Author: Marcel Unbehaun <marcel <AT> frostworx <DOT> de> |
3 |
AuthorDate: Sat Mar 3 13:09:37 2012 +0000 |
4 |
Commit: Marcel Unbehaun <frostworks <AT> gmx <DOT> de> |
5 |
CommitDate: Sat Mar 3 13:09:37 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=4163ce96 |
7 |
|
8 |
[games-fps/urbanterror] updated to urbanterror-4.1.1807.251210-r1.ebuild |
9 |
|
10 |
--- |
11 |
.../urbanterror/files/urbanterror-minizip.patch | 88 ++++++++++++++++ |
12 |
.../urbanterror/urbanterror-4.1.1783.240410.ebuild | 109 -------------------- |
13 |
.../urbanterror/urbanterror-4.1.1788.210710.ebuild | 103 ------------------ |
14 |
...build => urbanterror-4.1.1807.251210-r1.ebuild} | 17 ++- |
15 |
games-fps/urbanterror/urbanterror-4.1.ebuild | 98 ------------------ |
16 |
5 files changed, 99 insertions(+), 316 deletions(-) |
17 |
|
18 |
diff --git a/games-fps/urbanterror/files/urbanterror-minizip.patch b/games-fps/urbanterror/files/urbanterror-minizip.patch |
19 |
new file mode 100644 |
20 |
index 0000000..d241fe6 |
21 |
--- /dev/null |
22 |
+++ b/games-fps/urbanterror/files/urbanterror-minizip.patch |
23 |
@@ -0,0 +1,88 @@ |
24 |
+diff -Naur ioquake3-o/code/qcommon/files.c ioquake3/code/qcommon/files.c |
25 |
+--- ioquake3-o/code/qcommon/files.c 2012-03-03 13:50:33.000000000 +0100 |
26 |
++++ ioquake3/code/qcommon/files.c 2012-03-03 13:54:20.239874028 +0100 |
27 |
+@@ -31,7 +31,7 @@ |
28 |
+ |
29 |
+ #include "q_shared.h" |
30 |
+ #include "qcommon.h" |
31 |
+-#include "unzip.h" |
32 |
++#include <minizip/unzip.h> |
33 |
+ |
34 |
+ extern cvar_t *com_quiet; |
35 |
+ |
36 |
+diff -Naur ioquake3-o/Makefile ioquake3/Makefile |
37 |
+--- ioquake3-o/Makefile 2012-03-03 13:50:33.000000000 +0100 |
38 |
++++ ioquake3/Makefile 2012-03-03 13:52:51.139874638 +0100 |
39 |
+@@ -385,9 +385,9 @@ |
40 |
+ endif |
41 |
+ endif |
42 |
+ |
43 |
+- ifeq ($(USE_CODEC_VORBIS),1) |
44 |
++# ifeq ($(USE_CODEC_VORBIS),1) |
45 |
+ CLIENT_LIBS += -lvorbisfile -lvorbis -logg |
46 |
+- endif |
47 |
++# endif |
48 |
+ |
49 |
+ ifeq ($(USE_MUMBLE),1) |
50 |
+ CLIENT_LIBS += -lrt |
51 |
+@@ -1001,7 +1001,7 @@ |
52 |
+ else |
53 |
+ LIBS += -lz |
54 |
+ endif |
55 |
+- |
56 |
++LIBS += -lz -lminizip |
57 |
+ ifdef DEFAULT_BASEDIR |
58 |
+ BASE_CFLAGS += -DDEFAULT_BASEDIR=\\\"$(DEFAULT_BASEDIR)\\\" |
59 |
+ endif |
60 |
+@@ -1498,8 +1498,6 @@ |
61 |
+ $(B)/client/q_math.o \ |
62 |
+ $(B)/client/q_shared.o \ |
63 |
+ \ |
64 |
+- $(B)/client/unzip.o \ |
65 |
+- $(B)/client/ioapi.o \ |
66 |
+ $(B)/client/puff.o \ |
67 |
+ $(B)/client/vm.o \ |
68 |
+ $(B)/client/vm_interpreted.o \ |
69 |
+@@ -1666,16 +1664,6 @@ |
70 |
+ endif |
71 |
+ endif |
72 |
+ |
73 |
+-ifeq ($(USE_INTERNAL_ZLIB),1) |
74 |
+-Q3OBJ += \ |
75 |
+- $(B)/client/adler32.o \ |
76 |
+- $(B)/client/crc32.o \ |
77 |
+- $(B)/client/inffast.o \ |
78 |
+- $(B)/client/inflate.o \ |
79 |
+- $(B)/client/inftrees.o \ |
80 |
+- $(B)/client/zutil.o |
81 |
+-endif |
82 |
+- |
83 |
+ ifeq ($(HAVE_VM_COMPILED),true) |
84 |
+ ifeq ($(ARCH),i386) |
85 |
+ Q3OBJ += $(B)/client/vm_x86.o |
86 |
+@@ -1790,8 +1778,6 @@ |
87 |
+ $(B)/ded/q_math.o \ |
88 |
+ $(B)/ded/q_shared.o \ |
89 |
+ \ |
90 |
+- $(B)/ded/unzip.o \ |
91 |
+- $(B)/ded/ioapi.o \ |
92 |
+ $(B)/ded/vm.o \ |
93 |
+ $(B)/ded/vm_interpreted.o \ |
94 |
+ \ |
95 |
+@@ -1844,16 +1830,6 @@ |
96 |
+ $(B)/ded/matha.o |
97 |
+ endif |
98 |
+ |
99 |
+-ifeq ($(USE_INTERNAL_ZLIB),1) |
100 |
+-Q3DOBJ += \ |
101 |
+- $(B)/ded/adler32.o \ |
102 |
+- $(B)/ded/crc32.o \ |
103 |
+- $(B)/ded/inffast.o \ |
104 |
+- $(B)/ded/inflate.o \ |
105 |
+- $(B)/ded/inftrees.o \ |
106 |
+- $(B)/ded/zutil.o |
107 |
+-endif |
108 |
+- |
109 |
+ ifeq ($(HAVE_VM_COMPILED),true) |
110 |
+ ifeq ($(ARCH),i386) |
111 |
+ Q3DOBJ += $(B)/ded/vm_x86.o |
112 |
|
113 |
diff --git a/games-fps/urbanterror/urbanterror-4.1.1783.240410.ebuild b/games-fps/urbanterror/urbanterror-4.1.1783.240410.ebuild |
114 |
deleted file mode 100644 |
115 |
index 5e93352..0000000 |
116 |
--- a/games-fps/urbanterror/urbanterror-4.1.1783.240410.ebuild |
117 |
+++ /dev/null |
118 |
@@ -1,109 +0,0 @@ |
119 |
-# Copyright 1999-2011 Gentoo Foundation |
120 |
-# Distributed under the terms of the GNU General Public License v2 |
121 |
-# $Header: $ |
122 |
- |
123 |
-EAPI=2 |
124 |
- |
125 |
-inherit eutils games toolchain-funcs versionator |
126 |
- |
127 |
-DESCRIPTION="Hollywood tactical shooter based on the ioquake3 engine" |
128 |
-HOMEPAGE="http://www.urbanterror.net/ |
129 |
- http://www.www0.org/w/Optimized_executable;_builds_of_ioq3_engine_for_urt" |
130 |
-MY_VER=$(get_version_component_range 1)$(get_version_component_range 2) |
131 |
-SRC_URI="http://www0.org/urt/ioq3-$(get_version_component_range 3)-urt-git-$(get_version_component_range 4).tar.7z |
132 |
- ftp://ftp.snt.utwente.nl/pub/games/${PN}/old/UrbanTerror_${MY_VER}_FULL.zip |
133 |
- http://upload.wikimedia.org/wikipedia/en/5/56/Urbanterror.svg -> ${PN}.svg" |
134 |
- |
135 |
-LICENSE="GPL-2" |
136 |
-SLOT="0" |
137 |
-KEYWORDS="~amd64 ~x86" |
138 |
-IUSE="+client +curl openal server speex vorbis" |
139 |
- |
140 |
-COMMON_DEPEND=" |
141 |
- client? ( |
142 |
- media-libs/libsdl[X,opengl] |
143 |
- openal? ( media-libs/openal ) |
144 |
- vorbis? ( media-libs/libogg media-libs/libvorbis ) |
145 |
- ) |
146 |
- curl? ( net-misc/curl ) |
147 |
- speex? ( media-libs/speex ) " |
148 |
-DEPEND="${COMMON_DEPEND} |
149 |
- app-arch/p7zip |
150 |
- app-arch/unzip |
151 |
- dev-util/pkgconfig |
152 |
- media-libs/netpbm" |
153 |
-RDEPEND="${COMMON_DEPEND}" |
154 |
- |
155 |
-S=${WORKDIR}/ioq3-urt-git/ioq3-urt |
156 |
- |
157 |
-src_unpack() { |
158 |
- unpack ${A} |
159 |
- unpack ./ioq3-urt-git.tar |
160 |
-} |
161 |
- |
162 |
-src_prepare() { |
163 |
- einfo "remove bundled include files" |
164 |
- rm -rf code/{SDL12,libs/win{32,64}} || die |
165 |
- #rm -rf code/{AL,SDL12,jpeg-6b,libcurl,libs/win{32,64},zlib} || die |
166 |
- |
167 |
- #oq3-urt-git/ioq3-urt/Makefile |
168 |
- sed -i -e 's:include <SDL_opengl.h>:include <SDL/SDL_opengl.h>:' code/renderer/qgl.h || die |
169 |
- |
170 |
- # fix case sensitivity and remove shipped binaries |
171 |
- local my_utdir=${WORKDIR}/UrbanTerror |
172 |
- mv "${my_utdir}/q3ut4/demos/tutorial.dm_68" "${my_utdir}/q3ut4/demos/TUTORIAL.dm_68" || die |
173 |
- rm -f "${my_utdir}"/io{UrbanTerror,UrTded,}.{exe,i386,x86_64} || die |
174 |
-} |
175 |
- |
176 |
-src_compile() { |
177 |
- buildit() { use $1 && echo 1 || echo 0 ; } |
178 |
- |
179 |
- emake \ |
180 |
- $(use amd64 && echo ARCH=x86_64 || echo ARCH=i386) \ |
181 |
- BUILD_SERVER=$(buildit server) \ |
182 |
- BUILD_CLIENT=$(buildit client) \ |
183 |
- BUILD_CLIENT_SMP=$(buildit client) \ |
184 |
- CC="$(tc-getCC)" \ |
185 |
- DEFAULT_BASEDIR="${GAMES_DATADIR}/${PN}" \ |
186 |
- USE_CODEC_VORBIS=$(buildit vorbis) \ |
187 |
- USE_OPENAL=$(buildit openal) \ |
188 |
- USE_CURL=$(buildit curl) \ |
189 |
- USE_VOIP=$(buildit speex) \ |
190 |
- USE_INTERNAL_SPEEX=0 \ |
191 |
- USE_INTERNAL_ZLIB=0 \ |
192 |
- USE_LOCAL_HEADERS=0 \ |
193 |
- release || die |
194 |
- #BASE_CFLAGS="${CFLAGS} -DUSE_ICON -DPRODUCT_VERSION=\\\"$(VERSION)\\\"" \ |
195 |
-} |
196 |
- |
197 |
-src_install() { |
198 |
- local my_arch=x86 |
199 |
- use amd64 && my_arch=x86_64 |
200 |
- |
201 |
- if use client || use server ; then # just kidding |
202 |
- insinto /usr/share/pixmaps |
203 |
- doins "${DISTDIR}"/${PN}.svg || die |
204 |
- fi |
205 |
- |
206 |
- if use client ; then |
207 |
- newgamesbin build/release-linux-${my_arch}/ioquake3-smp.${my_arch} ${PN} || die |
208 |
- make_desktop_entry ${PN} "UrbanTerror" ${PN} |
209 |
- fi |
210 |
- |
211 |
- if use server ; then |
212 |
- newgamesbin build/release-linux-${my_arch}/ioquake3-smp.${my_arch} ${PN}-dedicated || die |
213 |
- make_desktop_entry ${PN}-dedicated "UrbanTerror dedicated" ${PN} |
214 |
- |
215 |
- insinto "${GAMES_DATADIR}"/${PN}/q3ut4 |
216 |
- doins dedicated.cfg || die |
217 |
- fi |
218 |
- |
219 |
- dodoc ChangeLog NOTTODO README TODO {md4,voip}-readme.txt || die |
220 |
- |
221 |
- cd "${WORKDIR}"/UrbanTerror/q3ut4 || die |
222 |
- |
223 |
- insinto "${GAMES_DATADIR}"/${PN}/q3ut4 |
224 |
- doins -r *.pk3 autoexec.cfg demos/ description.txt mapcycle.txt screenshots/ || die |
225 |
- |
226 |
- prepgamesdirs |
227 |
-} |
228 |
|
229 |
diff --git a/games-fps/urbanterror/urbanterror-4.1.1788.210710.ebuild b/games-fps/urbanterror/urbanterror-4.1.1788.210710.ebuild |
230 |
deleted file mode 100644 |
231 |
index 56a2033..0000000 |
232 |
--- a/games-fps/urbanterror/urbanterror-4.1.1788.210710.ebuild |
233 |
+++ /dev/null |
234 |
@@ -1,103 +0,0 @@ |
235 |
-# Copyright 1999-2010 Gentoo Foundation |
236 |
-# Distributed under the terms of the GNU General Public License v2 |
237 |
-# $Header: $ |
238 |
- |
239 |
-EAPI=2 |
240 |
- |
241 |
-inherit eutils games toolchain-funcs versionator |
242 |
- |
243 |
-DESCRIPTION="Hollywood tactical shooter based on the ioquake3 engine" |
244 |
-HOMEPAGE="http://www.urbanterror.net/ |
245 |
- http://www.www0.org/w/Optimized_executable;_builds_of_ioq3_engine_for_urt" |
246 |
-MY_VER=$(get_version_component_range 1)$(get_version_component_range 2) |
247 |
-SRC_URI="http://www0.org/urt/ioq3-$(get_version_component_range 3)-urt-git-$(get_version_component_range 4).tar.lzma |
248 |
- ftp://ftp.snt.utwente.nl/pub/games/${PN}/old/UrbanTerror_${MY_VER}_FULL.zip |
249 |
- http://upload.wikimedia.org/wikipedia/en/5/56/Urbanterror.svg -> ${PN}.svg" |
250 |
- |
251 |
-LICENSE="GPL-2" |
252 |
-SLOT="0" |
253 |
-KEYWORDS="~amd64 ~x86" |
254 |
-IUSE="+client +curl openal server speex vanilla vorbis" |
255 |
- |
256 |
-COMMON_DEPEND=" |
257 |
- client? ( |
258 |
- media-libs/libsdl[X,opengl] |
259 |
- openal? ( media-libs/openal ) |
260 |
- vorbis? ( media-libs/libogg media-libs/libvorbis ) |
261 |
- ) |
262 |
- curl? ( net-misc/curl ) |
263 |
- speex? ( media-libs/speex ) " |
264 |
-DEPEND="${COMMON_DEPEND} |
265 |
- app-arch/p7zip |
266 |
- app-arch/unzip |
267 |
- dev-util/pkgconfig |
268 |
- media-libs/netpbm" |
269 |
-RDEPEND="${COMMON_DEPEND}" |
270 |
- |
271 |
-S=${WORKDIR}/ioq3-urt-git/ioq3-urt |
272 |
- |
273 |
-src_prepare() { |
274 |
- use vanilla || epatch "${FILESDIR}"/${P}-server-name.patch |
275 |
- |
276 |
- rm -rf code/{SDL12,libs/win{32,64}} || die |
277 |
- |
278 |
- sed -i -e 's:include <SDL_opengl.h>:include <SDL/SDL_opengl.h>:' code/renderer/qgl.h || die |
279 |
- |
280 |
- # fix case sensitivity and remove shipped binaries |
281 |
- local my_utdir=${WORKDIR}/UrbanTerror |
282 |
- mv "${my_utdir}/q3ut4/demos/tutorial.dm_68" "${my_utdir}/q3ut4/demos/TUTORIAL.dm_68" || die |
283 |
- rm -f "${my_utdir}"/io{UrbanTerror,UrTded,}.{exe,i386,x86_64} || die |
284 |
-} |
285 |
- |
286 |
-src_compile() { |
287 |
- buildit() { use $1 && echo 1 || echo 0 ; } |
288 |
- |
289 |
- emake \ |
290 |
- $(use amd64 && echo ARCH=x86_64 || echo ARCH=i386) \ |
291 |
- BUILD_SERVER=$(buildit server) \ |
292 |
- BUILD_CLIENT=$(buildit client) \ |
293 |
- BUILD_CLIENT_SMP=$(buildit client) \ |
294 |
- CC="$(tc-getCC)" \ |
295 |
- DEFAULT_BASEDIR="${GAMES_DATADIR}/${PN}" \ |
296 |
- USE_CODEC_VORBIS=$(buildit vorbis) \ |
297 |
- USE_OPENAL=$(buildit openal) \ |
298 |
- USE_CURL=$(buildit curl) \ |
299 |
- USE_VOIP=$(buildit speex) \ |
300 |
- USE_INTERNAL_SPEEX=0 \ |
301 |
- USE_INTERNAL_ZLIB=0 \ |
302 |
- USE_LOCAL_HEADERS=0 \ |
303 |
- release || die |
304 |
- #BASE_CFLAGS="${CFLAGS} -DUSE_ICON -DPRODUCT_VERSION=\\\"$(VERSION)\\\"" \ |
305 |
-} |
306 |
- |
307 |
-src_install() { |
308 |
- local my_arch=x86 |
309 |
- use amd64 && my_arch=x86_64 |
310 |
- |
311 |
- if use client || use server ; then # just kidding |
312 |
- insinto /usr/share/pixmaps |
313 |
- doins "${DISTDIR}"/${PN}.svg || die |
314 |
- fi |
315 |
- |
316 |
- insinto "${GAMES_DATADIR}"/${PN}/q3ut4 |
317 |
- doins -r q3ut4/{glsl,textures} || die |
318 |
- |
319 |
- if use client ; then |
320 |
- newgamesbin build/release-linux-${my_arch}/ioquake3-smp.${my_arch} ${PN} || die |
321 |
- make_desktop_entry ${PN} "UrbanTerror" ${PN} |
322 |
- fi |
323 |
- |
324 |
- if use server ; then |
325 |
- newgamesbin build/release-linux-${my_arch}/ioquake3-smp.${my_arch} ${PN}-dedicated || die |
326 |
- make_desktop_entry ${PN}-dedicated "UrbanTerror dedicated" ${PN} |
327 |
- doins dedicated.cfg || die |
328 |
- fi |
329 |
- |
330 |
- dodoc ChangeLog NOTTODO README TODO {md4,voip}-readme.txt || die |
331 |
- |
332 |
- cd "${WORKDIR}"/UrbanTerror/q3ut4 || die |
333 |
- |
334 |
- doins -r *.pk3 autoexec.cfg demos/ description.txt mapcycle.txt screenshots/ || die |
335 |
- |
336 |
- prepgamesdirs |
337 |
-} |
338 |
|
339 |
diff --git a/games-fps/urbanterror/urbanterror-4.1.1807.251210.ebuild b/games-fps/urbanterror/urbanterror-4.1.1807.251210-r1.ebuild |
340 |
similarity index 88% |
341 |
rename from games-fps/urbanterror/urbanterror-4.1.1807.251210.ebuild |
342 |
rename to games-fps/urbanterror/urbanterror-4.1.1807.251210-r1.ebuild |
343 |
index 3456fe6..30c2ed1 100644 |
344 |
--- a/games-fps/urbanterror/urbanterror-4.1.1807.251210.ebuild |
345 |
+++ b/games-fps/urbanterror/urbanterror-4.1.1807.251210-r1.ebuild |
346 |
@@ -7,12 +7,11 @@ EAPI=2 |
347 |
inherit eutils flag-o-matic games toolchain-funcs versionator |
348 |
|
349 |
DESCRIPTION="Hollywood tactical shooter based on the ioquake3 engine" |
350 |
-HOMEPAGE="http://www.urbanterror.net/ |
351 |
- http://www.www0.org/w/Optimized_executable;_builds_of_ioq3_engine_for_urt" |
352 |
+HOMEPAGE="http://www.urbanterror.info/home/" |
353 |
MY_VER=$(get_version_component_range 1)$(get_version_component_range 2) |
354 |
MY_PATCH=$(get_version_component_range 3)-urt-$(get_version_component_range 4)-git-nobumpy |
355 |
SRC_URI="http://xmw.de/mirror/urbanterror/ioquake3-1807.tar.bz2 |
356 |
- http://www0.org/urt/ioq3-${MY_PATCH}.tar.lzma |
357 |
+ http://urban-zone.org/downloads/clients/mitsu/nobumpy/linux/ioq3-${MY_PATCH}.tar.lzma |
358 |
ftp://ftp.snt.utwente.nl/pub/games/${PN}/old/UrbanTerror_${MY_VER}_FULL.zip |
359 |
http://upload.wikimedia.org/wikipedia/en/5/56/Urbanterror.svg -> ${PN}.svg" |
360 |
|
361 |
@@ -30,7 +29,8 @@ COMMON_DEPEND=" |
362 |
vorbis? ( media-libs/libogg media-libs/libvorbis ) |
363 |
) |
364 |
curl? ( net-misc/curl ) |
365 |
- speex? ( media-libs/speex ) " |
366 |
+ speex? ( media-libs/speex ) |
367 |
+ sys-libs/zlib[minizip] " |
368 |
DEPEND="${COMMON_DEPEND} |
369 |
app-arch/p7zip |
370 |
app-arch/unzip |
371 |
@@ -41,9 +41,14 @@ RDEPEND="${COMMON_DEPEND}" |
372 |
S=${WORKDIR}/ioquake3 |
373 |
|
374 |
src_prepare() { |
375 |
+ epatch "${FILESDIR}"/${PN}-minizip.patch |
376 |
epatch "${WORKDIR}"/ioq3-${MY_PATCH}.patch |
377 |
use vanilla || epatch "${FILESDIR}"/${P}-server-name.patch |
378 |
- |
379 |
+ rm -rf code/zlib || die |
380 |
+ rm code/qcommon/unzip.c || die |
381 |
+ rm code/qcommon/unzip.h || die |
382 |
+ rm code/qcommon/ioapi.c || die |
383 |
+ rm code/qcommon/ioapi.h || die |
384 |
rm -rf code/{FTGL,FT2,SDL12,libs/win{32,64}} || die |
385 |
|
386 |
sed -e '/SDL_CFLAGS=/s:--cflags sdl:--cflags freetype2 sdl:' \ |
387 |
@@ -81,7 +86,7 @@ src_compile() { |
388 |
} |
389 |
|
390 |
src_install() { |
391 |
- local my_arch=x86 |
392 |
+ local my_arch=i386 |
393 |
use amd64 && my_arch=x86_64 |
394 |
|
395 |
if use client || use server ; then # just kidding |
396 |
|
397 |
diff --git a/games-fps/urbanterror/urbanterror-4.1.ebuild b/games-fps/urbanterror/urbanterror-4.1.ebuild |
398 |
deleted file mode 100644 |
399 |
index 6bd733d..0000000 |
400 |
--- a/games-fps/urbanterror/urbanterror-4.1.ebuild |
401 |
+++ /dev/null |
402 |
@@ -1,98 +0,0 @@ |
403 |
-# Copyright 1999-2008 Gentoo Foundation |
404 |
-# Distributed under the terms of the GNU General Public License v2 |
405 |
-# $Header: $ |
406 |
- |
407 |
-EAPI="2" |
408 |
- |
409 |
-inherit games toolchain-funcs |
410 |
- |
411 |
-DESCRIPTION="Hollywood tactical shooter based on the ioquake3 engine" |
412 |
-HOMEPAGE="http://www.urbanterror.net/" |
413 |
-SRC_URI="ftp://ftp.snt.utwente.nl/pub/games/${PN}/iourbanterror/source/complete/ioUrbanTerrorSource_2007_12_20.zip |
414 |
- ftp://ftp.snt.utwente.nl/pub/games/${PN}/UrbanTerror_${PV/./}_FULL.zip |
415 |
- http://files.uaaportal.com/gamefiles/current-version/UrbanTerror_${PV/./}_FULL.zip |
416 |
- http://upload.wikimedia.org/wikipedia/en/5/56/Urbanterror.svg" |
417 |
- |
418 |
-LICENSE="freedist" |
419 |
-SLOT="0" |
420 |
-KEYWORDS="~amd64 ~x86" |
421 |
- |
422 |
-IUSE="dedicated openal vorbis" |
423 |
- |
424 |
-RDEPEND="net-misc/curl |
425 |
- vorbis? ( media-libs/libogg media-libs/libvorbis ) |
426 |
- openal? ( media-libs/openal ) |
427 |
- !dedicated? ( media-libs/libsdl[X,opengl] ) |
428 |
- dedicated? ( media-libs/libsdl ) |
429 |
-" |
430 |
-DEPEND="${RDEPEND}" |
431 |
- |
432 |
-S=${WORKDIR} |
433 |
- |
434 |
-src_configure() { |
435 |
- : |
436 |
-} |
437 |
- |
438 |
-src_compile() { |
439 |
- buildit() { use $1 && echo 1 || echo 0 ; } |
440 |
- |
441 |
- if ! use dedicated ; then |
442 |
- cd "${S}"/ioUrbanTerrorClientSource |
443 |
- sed -i \ |
444 |
- -e '16s/-Werror //' \ |
445 |
- code/tools/asm/Makefile || die "sed failed" |
446 |
- emake \ |
447 |
- $(use amd64 && echo ARCH=x86_64) \ |
448 |
- BUILD_CLIENT_SMP=1 \ |
449 |
- BUILD_GAME_SO=0 \ |
450 |
- BUILD_GAME_QVM=0 \ |
451 |
- CC="$(tc-getCC)" \ |
452 |
- DEFAULT_BASEDIR="${GAMES_DATADIR}/${PN}" \ |
453 |
- USE_CODEC_VORBIS=$(buildit vorbis) \ |
454 |
- USE_OPENAL=$(buildit openal) \ |
455 |
- USE_CURL=1 \ |
456 |
- USE_LOCAL_HEADERS=0 \ |
457 |
- || die "emake client failed" |
458 |
- fi |
459 |
- # allways build server |
460 |
- cd "${S}"/ioUrbanTerrorServerSource |
461 |
- emake \ |
462 |
- $(use amd64 && echo ARCH=x86_64) \ |
463 |
- BUILD_GAME_SO=0 \ |
464 |
- BUILD_GAME_QVM=0 \ |
465 |
- CC="$(tc-getCC)" \ |
466 |
- DEFAULT_BASEDIR="${GAMES_DATADIR}/${PN}" \ |
467 |
- USE_CODEC_VORBIS=$(buildit vorbis) \ |
468 |
- USE_OPENAL=$(buildit openal) \ |
469 |
- USE_CURL=1 \ |
470 |
- USE_LOCAL_HEADERS=0 \ |
471 |
- || die "emake server failed" |
472 |
-} |
473 |
- |
474 |
-src_install() { |
475 |
- use amd64 && ARCH=x86_64 |
476 |
- use x86 && ARCH=x86 |
477 |
- |
478 |
- if ! use dedicated ; then |
479 |
- newgamesbin \ |
480 |
- ioUrbanTerrorClientSource/build/release-linux-${ARCH}/ioUrbanTerror-smp.${ARCH} \ |
481 |
- ${PN} |
482 |
- make_desktop_entry ${PN} "UrbanTerror" Urbanterror.svg |
483 |
- fi |
484 |
- newgamesbin \ |
485 |
- ioUrbanTerrorServerSource/build/release-linux-${ARCH}/ioUrTded.${ARCH} \ |
486 |
- ${PN}-server |
487 |
- make_desktop_entry ${PN}-server "UrbanTerror Server" Urbanterror.svg |
488 |
- |
489 |
- doicon "${DISTDIR}"/Urbanterror.svg |
490 |
- cd "${S}"/UrbanTerror/q3ut4 |
491 |
- dodoc readme41.txt || die "dodoc failed" |
492 |
- |
493 |
- # fix case sensitivity |
494 |
- mv demos/tutorial.dm_68 demos/TUTORIAL.dm_68 || die "mv failed" |
495 |
- |
496 |
- insinto "${GAMES_DATADIR}"/${PN}/q3ut4 |
497 |
- doins -r *.pk3 autoexec.cfg demos/ description.txt mapcycle.txt screenshots server.cfg || die "doins failed" |
498 |
- |
499 |
- prepgamesdirs |
500 |
-} |