guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: gnu: supertuxkart: Fix building with address@hidden


From: guix-commits
Subject: 02/02: gnu: supertuxkart: Fix building with address@hidden
Date: Tue, 25 Dec 2018 04:11:50 -0500 (EST)

efraim pushed a commit to branch staging
in repository guix.

commit 215a51e4412f6e0051ce2f3abced8d26125d99ca
Author: Efraim Flashner <address@hidden>
Date:   Tue Dec 25 10:29:41 2018 +0200

    gnu: supertuxkart: Fix building with address@hidden
    
    * gnu/packages/games.scm (supertuxkart)[arguments]: Add custom phase to
    add newer '#define' to source.
---
 gnu/packages/games.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 4ab0af2..7896c9c 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -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"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]