* ioquake3 updated to 1.36. Also applied a hack to get better
coverage data. * Quake 3 wrapper: wrap the dedicated server. svn path=/nixpkgs/trunk/; revision=25487
This commit is contained in:
parent
0eaec55235
commit
3792a1ec37
@ -1,10 +1,10 @@
|
|||||||
{ stdenv, fetchurl, x11, SDL, mesa, openal }:
|
{ stdenv, fetchurl, x11, SDL, mesa, openal }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "ioquake3-1.34-pre-rc3";
|
name = "ioquake3-1.36";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://ioquake3.org/files/ioquake3_1.34-rc3.tar.bz2;
|
url = http://ioquake3.org/files/1.36/ioquake3-1.36.tar.bz2; # calls itself "1.34-rc3"
|
||||||
sha256 = "008vah60z0n9h1qp373xbqvhwfbyywbbhd1np0h0yw66g0qzchzv";
|
sha256 = "008vah60z0n9h1qp373xbqvhwfbyywbbhd1np0h0yw66g0qzchzv";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -16,6 +16,10 @@ stdenv.mkDerivation {
|
|||||||
url = "http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/games-fps/quake3/files/quake3-1.34_rc3-gcc42.patch?rev=1.1";
|
url = "http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/games-fps/quake3/files/quake3-1.34_rc3-gcc42.patch?rev=1.1";
|
||||||
sha256 = "06c9lxfczcby5q29pim231mr2wdkvbv36xp9zbxp9vk0dfs8rv9x";
|
sha256 = "06c9lxfczcby5q29pim231mr2wdkvbv36xp9zbxp9vk0dfs8rv9x";
|
||||||
})
|
})
|
||||||
|
|
||||||
|
# Do an exit() instead of _exit(). This is nice for gcov.
|
||||||
|
# Upstream also seems to do this.
|
||||||
|
./exit.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [x11 SDL mesa openal];
|
buildInputs = [x11 SDL mesa openal];
|
||||||
|
12
pkgs/games/quake3/game/exit.patch
Normal file
12
pkgs/games/quake3/game/exit.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -ru -x '*~' ioquake3_1.34-rc3-orig//code/unix/unix_main.c ioquake3_1.34-rc3//code/unix/unix_main.c
|
||||||
|
--- code/unix/unix_main.c 2006-11-28 23:05:25.000000000 +0100
|
||||||
|
+++ code/unix/unix_main.c 2011-01-10 12:43:51.000000000 +0100
|
||||||
|
@@ -341,7 +341,7 @@
|
||||||
|
void Sys_Exit( int ex ) {
|
||||||
|
Sys_ConsoleInputShutdown();
|
||||||
|
|
||||||
|
-#ifdef NDEBUG // regular behavior
|
||||||
|
+#if 0
|
||||||
|
|
||||||
|
// We can't do this
|
||||||
|
// as long as GL DLL's keep installing with atexit...
|
@ -13,3 +13,6 @@ done
|
|||||||
makeWrapper $game/ioquake3.* $out/bin/quake3 \
|
makeWrapper $game/ioquake3.* $out/bin/quake3 \
|
||||||
--suffix-each LD_LIBRARY_PATH ':' "$mesa/lib $gcc/lib" \
|
--suffix-each LD_LIBRARY_PATH ':' "$mesa/lib $gcc/lib" \
|
||||||
--add-flags "+set fs_basepath $out +set r_allowSoftwareGL 1"
|
--add-flags "+set fs_basepath $out +set r_allowSoftwareGL 1"
|
||||||
|
|
||||||
|
makeWrapper $game/ioq3ded.* $out/bin/quake3-server \
|
||||||
|
--add-flags "+set fs_basepath $out"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user