gnu: vkquake: Fix build with newer Vulkan headers.
* gnu/packages/games.scm (vkquake)[arguments]: Add phase 'patch-for-new-vulkan'.master
parent
5a746104e3
commit
51f3b34913
|
@ -5807,6 +5807,14 @@ some graphical niceities, and numerous bug-fixes and other improvements.")
|
||||||
(string-append "LDFLAGS=-Wl,-rpath=" vulkanlib)
|
(string-append "LDFLAGS=-Wl,-rpath=" vulkanlib)
|
||||||
"-CQuake"))
|
"-CQuake"))
|
||||||
#:phases (modify-phases %standard-phases
|
#: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)
|
(delete 'configure)
|
||||||
(add-after 'unpack 'fix-makefile-paths
|
(add-after 'unpack 'fix-makefile-paths
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
|
Reference in New Issue