summaryrefslogtreecommitdiff
path: root/games/supertuxkart
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2014-12-20 20:21:12 +0000
committerryoon <ryoon@pkgsrc.org>2014-12-20 20:21:12 +0000
commit7acdbf69506fb480bcea1244fed3fb0a2ad4e177 (patch)
tree6352dc68aade2855318bc24ce8eec9f336cd916d /games/supertuxkart
parent9fb74f1fbc0d7496380b596eb570240950c7037e (diff)
downloadpkgsrc-7acdbf69506fb480bcea1244fed3fb0a2ad4e177.tar.gz
Fix build with MesaLib 10 (under recent NetBSD/amd64 7.99.3).
Diffstat (limited to 'games/supertuxkart')
-rw-r--r--games/supertuxkart/distinfo3
-rw-r--r--games/supertuxkart/patches/patch-lib_irrlicht_source_Irrlicht_COpenGLExtensionHandler.h39
2 files changed, 41 insertions, 1 deletions
diff --git a/games/supertuxkart/distinfo b/games/supertuxkart/distinfo
index 80d319600eb..79d47622b9d 100644
--- a/games/supertuxkart/distinfo
+++ b/games/supertuxkart/distinfo
@@ -1,10 +1,11 @@
-$NetBSD: distinfo,v 1.5 2014/01/01 02:46:49 ryoon Exp $
+$NetBSD: distinfo,v 1.6 2014/12/20 20:21:12 ryoon Exp $
SHA1 (supertuxkart-0.8.1-src.tar.bz2) = ceb414a0ac3dabd524770cd9068e364a90cbee66
RMD160 (supertuxkart-0.8.1-src.tar.bz2) = caf076bedcc162fef67f8154c6217a1846076860
Size (supertuxkart-0.8.1-src.tar.bz2) = 229944480 bytes
SHA1 (patch-CMakeLists.txt) = 7c175b5b43db50c8cb350a2eee49b9d478b40da6
SHA1 (patch-lib_irrlicht_source_Irrlicht_COSOperator.cpp) = 4cd76ed94444e677e770b30ad6a5287b9dbc3b01
+SHA1 (patch-lib_irrlicht_source_Irrlicht_COpenGLExtensionHandler.h) = 0c8477e066f035381bff634d32b8e9b96526659c
SHA1 (patch-lib_irrlicht_source_Irrlicht_Makefile) = 8e69ff0f94fa6438414a449b09b731caf5d65794
SHA1 (patch-lib_irrlicht_source_Irrlicht_os.cpp) = ed0767f73b8f74a8c21ec83c41fd09c70de9872e
SHA1 (patch-src_utils_log.hpp) = 3a3ff1f331da387dcfa0bc621b765904c4afc1d3
diff --git a/games/supertuxkart/patches/patch-lib_irrlicht_source_Irrlicht_COpenGLExtensionHandler.h b/games/supertuxkart/patches/patch-lib_irrlicht_source_Irrlicht_COpenGLExtensionHandler.h
new file mode 100644
index 00000000000..ac4ffc2efd8
--- /dev/null
+++ b/games/supertuxkart/patches/patch-lib_irrlicht_source_Irrlicht_COpenGLExtensionHandler.h
@@ -0,0 +1,39 @@
+$NetBSD: patch-lib_irrlicht_source_Irrlicht_COpenGLExtensionHandler.h,v 1.1 2014/12/20 20:21:12 ryoon Exp $
+
+Fix MesaLib 10 build.
+https://github.com/supertuxkart/stk-code/commit/244d00280c1b082ca164f92337773e9e4e1a3898
+
+--- lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h.orig 2013-11-13 23:55:29.000000000 +0000
++++ lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h
+@@ -21,6 +21,7 @@
+ #endif
+ #include <GL/gl.h>
+ #if defined(_IRR_OPENGL_USE_EXTPOINTER_)
++ typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
+ #include "glext.h"
+ #endif
+ #include "wglext.h"
+@@ -36,6 +37,7 @@
+ #endif
+ #include <OpenGL/gl.h>
+ #if defined(_IRR_OPENGL_USE_EXTPOINTER_)
++ typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
+ #include "glext.h"
+ #endif
+ #elif defined(_IRR_COMPILE_WITH_SDL_DEVICE_) && !defined(_IRR_COMPILE_WITH_X11_DEVICE_)
+@@ -49,6 +51,7 @@
+ #define NO_SDL_GLEXT
+ #include <SDL/SDL_video.h>
+ #include <SDL/SDL_opengl.h>
++ typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
+ #include "glext.h"
+ #else
+ #if defined(_IRR_OPENGL_USE_EXTPOINTER_)
+@@ -61,6 +64,7 @@
+ #include <GL/gl.h>
+ #include <GL/glx.h>
+ #if defined(_IRR_OPENGL_USE_EXTPOINTER_)
++ typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
+ #include "glext.h"
+ #undef GLX_ARB_get_proc_address // avoid problems with local glxext.h
+ #include "glxext.h"