guix-commits
[Top][All Lists]
Advanced

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

54/63: gnu: vkquake: Fix build with newer Vulkan headers.


From: guix-commits
Subject: 54/63: gnu: vkquake: Fix build with newer Vulkan headers.
Date: Mon, 25 May 2020 15:15:30 -0400 (EDT)

mbakke pushed a commit to branch staging2
in repository guix.

commit 6cb1eb75011f6e27cbe78d91c1dbcb34370ec479
Author: Marius Bakke <address@hidden>
AuthorDate: Fri May 22 20:43:56 2020 +0200

    gnu: vkquake: Fix build with newer Vulkan headers.
    
    * gnu/packages/games.scm (vkquake)[arguments]: Add phase 
'patch-for-new-vulkan'.
---
 gnu/packages/games.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 111e1e0..970cdbe 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -5807,6 +5807,14 @@ some graphical niceities, and numerous bug-fixes and 
other improvements.")
                (string-append "LDFLAGS=-Wl,-rpath=" vulkanlib)
                "-CQuake"))
        #:phases (modify-phases %standard-phases
+                  (add-after 'unpack 'patch-for-new-vulkan
+                    (lambda _
+                      ;; Mimic upstream commit a869a22d9b51c68e for
+                      ;; compatibility with newer vulkan-headers.
+                      (substitute* "Quake/gl_rmisc.c"
+                        (("VK_DYNAMIC_STATE_RANGE_SIZE")
+                         "3"))
+                      #t))
                   (delete 'configure)
                   (add-after 'unpack 'fix-makefile-paths
                     (lambda* (#:key outputs #:allow-other-keys)



reply via email to

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