pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
games/xracer: Call glutInit before glutCreateWindow
games/xracer currently builds, but does not run.
Someone on IRC mentioned that running games/xracer fails with:
> freeglut ERROR: Function <glutCreateWindow> called without first
> calling 'glutInit'.
This patch adds 'glutInit (&argc, argv);' before
'program_initialization ();' so that the package is able to run again.
(TODO: Debian appears to have patches for restoring mouse pointer grab
and building with newer GCC versions, but their patches seem invasive.)
diff --git a/games/xracer/distinfo b/games/xracer/distinfo
index 95374b1e8590..890dbc2d012c 100644
--- a/games/xracer/distinfo
+++ b/games/xracer/distinfo
@@ -25,6 +25,7 @@ SHA1 (patch-include_xracer-craft.h) = b53a6f89f29263451ea111a44a5b84eb91721c1f
SHA1 (patch-include_xracer-player.h) = 6a7f33c926d74c1d2ee9dc21d91acbf269b57f6c
SHA1 (patch-src_game.c) = cb5a73dde445eec2aa924e61be4f1fd0c3e9135e
SHA1 (patch-src_jpeg.c) = 8549eccb261e3169381ff6c101895ed2815d6c78
+SHA1 (patch-src_main.c) = 0248e0ba159d42b52e778e705032b1435b9eb50d
SHA1 (patch-src_math.c) = c358f346184092e1e68f21ec8ba82e253093fb97
SHA1 (patch-src_mpeg_store.c) = 13cf0c3625be119c68825961282beb50a3aa4a70
SHA1 (patch-src_player.c) = e2a8305257f38073b03fbd39a95c1a35542506af
diff --git a/games/xracer/patches/patch-src_main.c b/games/xracer/patches/patch-src_main.c
new file mode 100644
index 000000000000..0e7afcf7fe43
--- /dev/null
+++ b/games/xracer/patches/patch-src_main.c
@@ -0,0 +1,16 @@
+$NetBSD$
+
+freeglut ERROR:
+Function <glutCreateWindow> called without first calling 'glutInit'.
+
+--- src/main.c.orig 2000-03-19 23:48:47.000000000 +0000
++++ src/main.c
+@@ -256,6 +256,8 @@
+ }
+ #endif
+
++ glutInit (&argc, argv);
++
+ /* Perform program-level initialization. */
+ program_initialization ();
+
Home |
Main Index |
Thread Index |
Old Index