summaryrefslogtreecommitdiff
path: root/games/linux-ut/files/patch-bin::ut
diff options
context:
space:
mode:
authorSean Farley <scf@FreeBSD.org>2009-06-14 19:03:54 +0000
committerSean Farley <scf@FreeBSD.org>2009-06-14 19:03:54 +0000
commit33886a414c2d5eec23b58b3e8818475efce15a58 (patch)
treebe04461e1b930e64e0f1de36ab87f0952b5ad9b1 /games/linux-ut/files/patch-bin::ut
parentFix install with custom PREFIX. (diff)
- Use libSDL v1.2 from ports instead of the provided v1.1. The Nvidia
driver will not function with it when the Linux base is Fedora 8. - Detect the Nvidia driver and set Sync on VBlank (__GL_SYNC_TO_VBLANK) to provide a consistent speed within the game, otherwise, the game will increase speed dramatically when approaching walls. - Disable the use of DGA mouse support in libSDL to allow some mice to function within the game. - Preload the Linux libX11 library to prevent the following error: XDM authorization key matches an existing client - Remove an empty directory (Logs) that is never used. Approved by: itetcu
Notes
Notes: svn path=/head/; revision=235818
Diffstat (limited to 'games/linux-ut/files/patch-bin::ut')
-rw-r--r--games/linux-ut/files/patch-bin::ut34
1 files changed, 34 insertions, 0 deletions
diff --git a/games/linux-ut/files/patch-bin::ut b/games/linux-ut/files/patch-bin::ut
new file mode 100644
index 000000000000..e3f37b95c8ea
--- /dev/null
+++ b/games/linux-ut/files/patch-bin::ut
@@ -0,0 +1,34 @@
+--- bin/ut.orig 2005-03-01 03:04:02.000000000 -0600
++++ bin/ut 2009-06-13 10:03:01.000000000 -0500
+@@ -68,6 +66,21 @@
+ cd $GAME_DIR
+ cd $SUBDIR
+
++# The Nvidia driver needs this to prevent the speed from being too fast when
++# facing things such as walls.
++sysctl hw.nvidia.version > /dev/null 2>&1
++if [ ${?} -eq 0 ]
++then
++ export __GL_SYNC_TO_VBLANK=${__GL_SYNC_TO_VBLANK:-"1"}
++fi
++
++# The mouse will not work using a newer libSDL without this.
++export SDL_VIDEO_X11_DGAMOUSE=${SDL_VIDEO_X11_DGAMOUSE:-"0"}
++
++# This is needed to prevent the following error:
++# XDM authorization key matches an existing client
++export LD_PRELOAD=/usr/lib/libX11.so.6
++
+ LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$PWD
+ export LD_LIBRARY_PATH
+
+@@ -75,6 +88,9 @@
+ ./$GAME_BINARY "$CMD_ARGS" "$@"
+ EXITCODE="$?"
+
++# Remove the preload before running any other command.
++unset LD_PRELOAD
++
+ # reset kb layout
+ setxkbmap
+