diff options
author | Matteo Bernardini | 2019-07-06 17:53:53 +0200 |
---|---|---|
committer | Matteo Bernardini | 2019-07-06 17:53:53 +0200 |
commit | cfa130d5944650edbdb6e9bc58330f2163ab107d (patch) | |
tree | 2f6b7b7c50ebabfca0658284d16528a133f6a424 /games/supertuxkart | |
parent | 42707bdd02e9f270049de2780aee2d219a0b62ab (diff) | |
download | slackbuilds-cfa130d5944650edbdb6e9bc58330f2163ab107d.tar.gz |
20190706.1 global branch merge.current-20190706.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'games/supertuxkart')
-rw-r--r-- | games/supertuxkart/mesa-18.3.patch | 23 | ||||
-rw-r--r-- | games/supertuxkart/supertuxkart.SlackBuild | 3 |
2 files changed, 26 insertions, 0 deletions
diff --git a/games/supertuxkart/mesa-18.3.patch b/games/supertuxkart/mesa-18.3.patch new file mode 100644 index 0000000000..b144177255 --- /dev/null +++ b/games/supertuxkart/mesa-18.3.patch @@ -0,0 +1,23 @@ +From 3a3953f38c3555e87f3608d0291dbfccf34e9775 Mon Sep 17 00:00:00 2001 +From: Deve <deveee@gmail.com> +Date: Wed, 21 Nov 2018 21:07:55 +0100 +Subject: [PATCH] Fix for system glew + +--- + src/graphics/gl_headers.hpp | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/src/graphics/gl_headers.hpp b/src/graphics/gl_headers.hpp +index fc9867cb59..290805cafe 100644 +--- a/src/graphics/gl_headers.hpp ++++ b/src/graphics/gl_headers.hpp +@@ -25,6 +25,9 @@ + extern "C" { + #if !defined(USE_GLES2) + # include <GL/glew.h> ++// This is a workaround for mesa drivers that now use __gl_glext_h_ instead of ++// __glext_h_ in header file which is not defined in current glew version ++# define __gl_glext_h_ + #endif + } + #include <cinttypes> diff --git a/games/supertuxkart/supertuxkart.SlackBuild b/games/supertuxkart/supertuxkart.SlackBuild index 049a41e9ba..a244f6ceb4 100644 --- a/games/supertuxkart/supertuxkart.SlackBuild +++ b/games/supertuxkart/supertuxkart.SlackBuild @@ -80,6 +80,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# From upstream +patch -p1 < $CWD/mesa-18.3.patch + mkdir -p build cd build cmake \ |