From 3792a1ec3770e04ab32abbe31a9bce49f3e02b46 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 10 Jan 2011 12:24:48 +0000 Subject: * 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 --- pkgs/games/quake3/game/default.nix | 10 +++++++--- pkgs/games/quake3/game/exit.patch | 12 ++++++++++++ pkgs/games/quake3/wrapper/builder.sh | 3 +++ 3 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 pkgs/games/quake3/game/exit.patch (limited to 'pkgs/games') diff --git a/pkgs/games/quake3/game/default.nix b/pkgs/games/quake3/game/default.nix index 292748c4546a..3b82ebb83a8d 100644 --- a/pkgs/games/quake3/game/default.nix +++ b/pkgs/games/quake3/game/default.nix @@ -1,10 +1,10 @@ -{stdenv, fetchurl, x11, SDL, mesa, openal}: +{ stdenv, fetchurl, x11, SDL, mesa, openal }: stdenv.mkDerivation { - name = "ioquake3-1.34-pre-rc3"; + name = "ioquake3-1.36"; 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"; }; @@ -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"; 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]; diff --git a/pkgs/games/quake3/game/exit.patch b/pkgs/games/quake3/game/exit.patch new file mode 100644 index 000000000000..82785167a782 --- /dev/null +++ b/pkgs/games/quake3/game/exit.patch @@ -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... diff --git a/pkgs/games/quake3/wrapper/builder.sh b/pkgs/games/quake3/wrapper/builder.sh index f070973681ef..57d6bc6a5ba2 100644 --- a/pkgs/games/quake3/wrapper/builder.sh +++ b/pkgs/games/quake3/wrapper/builder.sh @@ -13,3 +13,6 @@ done makeWrapper $game/ioquake3.* $out/bin/quake3 \ --suffix-each LD_LIBRARY_PATH ':' "$mesa/lib $gcc/lib" \ --add-flags "+set fs_basepath $out +set r_allowSoftwareGL 1" + +makeWrapper $game/ioq3ded.* $out/bin/quake3-server \ + --add-flags "+set fs_basepath $out" -- cgit 1.4.1