gnu: supertuxkart: Fix building with mesa@18.3.

* gnu/packages/games.scm (supertuxkart)[arguments]: Add custom phase to
add newer '#define' to source.
This commit is contained in:
Efraim Flashner 2018-12-25 10:29:41 +02:00
parent bbc94a08f3
commit 215a51e441
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 7 additions and 0 deletions

View File

@ -2053,6 +2053,13 @@ This game is based on the GPL version of the famous game TuxRacer.")
"-DCMAKE_C_FLAGS=-fpermissive")
#:phases
(modify-phases %standard-phases
;; see https://github.com/supertuxkart/stk-code/issues/3557
(add-after 'unpack 'patch-for-mesa-18.3
(lambda _
(substitute* "src/graphics/gl_headers.hpp"
(("#if !defined\\(USE_GLES2\\)")
"#if !defined(USE_GLES2)\n# define __gl_glext_h_"))
#t))
(add-after 'unpack 'unbundle
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "CMakeLists.txt"