mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: openclonk: Use gexps and new input style.
* gnu/packages/games.scm (openclonk)[arguments]: Use gexps. [source]: Reindent. [inputs, native-inputs]: Drop labels. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
This commit is contained in:
parent
b2235ef7d6
commit
16ba3aceec
1 changed files with 90 additions and 87 deletions
|
@ -9377,7 +9377,8 @@ (define-public openclonk
|
||||||
(package
|
(package
|
||||||
(name "openclonk")
|
(name "openclonk")
|
||||||
(version "8.1")
|
(version "8.1")
|
||||||
(source (origin
|
(source
|
||||||
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append
|
(uri (string-append
|
||||||
"https://www.openclonk.org/builds/release/" version "/"
|
"https://www.openclonk.org/builds/release/" version "/"
|
||||||
|
@ -9412,29 +9413,32 @@ (define-public openclonk
|
||||||
"#include <sort.h>"))))))
|
"#include <sort.h>"))))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:configure-flags '("-DAudio_TK=OpenAL")
|
(list
|
||||||
|
#:configure-flags
|
||||||
|
#~(list "-DAudio_TK=OpenAL")
|
||||||
#:test-target "tests"
|
#:test-target "tests"
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'prepare-gmock
|
(add-after 'unpack 'prepare-gmock
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(let ((gmock (search-input-directory inputs "/googlemock"))
|
||||||
|
(gtest (search-input-directory inputs "/googletest")))
|
||||||
(mkdir "gmock")
|
(mkdir "gmock")
|
||||||
(copy-recursively (assoc-ref inputs "googlemock") "gmock")
|
(copy-recursively gmock "gmock/googlemock")
|
||||||
|
(copy-recursively gtest "gmock/googletest")
|
||||||
(substitute* "tests/CMakeLists.txt"
|
(substitute* "tests/CMakeLists.txt"
|
||||||
(("/usr/src/gmock")
|
(("/usr/src/gmock")
|
||||||
(string-append (getcwd) "/gmock/googlemock"))
|
(string-append (getcwd) "/gmock/googlemock"))
|
||||||
(("/usr/src/gtest")
|
(("/usr/src/gtest")
|
||||||
(string-append (getcwd) "/gmock/googletest"))
|
(string-append (getcwd) "/gmock/googletest"))
|
||||||
(("PATH_SUFFIXES \"src\" \"gtest\"")
|
(("PATH_SUFFIXES \"src\" \"gtest\"")
|
||||||
"PATH_SUFFIXES \"src\""))
|
"PATH_SUFFIXES \"src\"")))))
|
||||||
#t))
|
|
||||||
(add-after 'prepare-gmock 'lax-freealut-requirement
|
(add-after 'prepare-gmock 'lax-freealut-requirement
|
||||||
;; TODO: We provide freealut 1.1.0, but pkg-config somehow detects
|
;; TODO: We provide freealut 1.1.0, but pkg-config somehow detects
|
||||||
;; it as 1.0.1. Force minimal version.
|
;; it as 1.0.1. Force minimal version.
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "cmake/FindAudio.cmake"
|
(substitute* "cmake/FindAudio.cmake"
|
||||||
(("freealut>=1.1.0") "freealut>=1.0.1"))
|
(("freealut>=1.1.0") "freealut>=1.0.1"))))
|
||||||
#t))
|
|
||||||
(add-after 'lax-freealut-requirement 'fix-directories
|
(add-after 'lax-freealut-requirement 'fix-directories
|
||||||
;; Prefer "$out/share/openclonk" over
|
;; Prefer "$out/share/openclonk" over
|
||||||
;; "$out/share/games/openclonk". Also install "openclonk"
|
;; "$out/share/games/openclonk". Also install "openclonk"
|
||||||
|
@ -9443,31 +9447,30 @@ (define-public openclonk
|
||||||
(substitute* "CMakeLists.txt"
|
(substitute* "CMakeLists.txt"
|
||||||
(("share/games/openclonk") "share/openclonk")
|
(("share/games/openclonk") "share/openclonk")
|
||||||
(("TARGETS openclonk DESTINATION games")
|
(("TARGETS openclonk DESTINATION games")
|
||||||
"TARGETS openclonk DESTINATION bin"))
|
"TARGETS openclonk DESTINATION bin")))))))
|
||||||
#t)))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("googlemock" ,(package-source googletest))
|
(list (package-source googletest)
|
||||||
("googletest" ,googletest)
|
googletest
|
||||||
("pkg-config" ,pkg-config)))
|
pkg-config))
|
||||||
(inputs
|
(inputs
|
||||||
`(("c-template-sort" ,c-template-sort)
|
(list c-template-sort
|
||||||
("freealut" ,freealut)
|
freealut
|
||||||
("freetype" ,freetype)
|
freetype
|
||||||
("glew" ,glew)
|
glew
|
||||||
("libb2" ,libb2)
|
libb2
|
||||||
("libjpeg" ,libjpeg-turbo)
|
libjpeg-turbo
|
||||||
("libogg" ,libogg)
|
libogg
|
||||||
("libpng" ,libpng)
|
libpng
|
||||||
("libvorbis" ,libvorbis)
|
libvorbis
|
||||||
("libxrandr" ,libxrandr)
|
libxrandr
|
||||||
("mesa" ,mesa)
|
mesa
|
||||||
("miniupnpc" ,miniupnpc)
|
miniupnpc
|
||||||
("openal" ,openal)
|
openal
|
||||||
("pcg-cpp" ,pcg-cpp)
|
pcg-cpp
|
||||||
("qtbase" ,qtbase-5)
|
qtbase-5
|
||||||
("readline" ,readline)
|
readline
|
||||||
("sdl" ,sdl2)
|
sdl2
|
||||||
("tinyxml" ,tinyxml)))
|
tinyxml))
|
||||||
(home-page "https://www.openclonk.org/")
|
(home-page "https://www.openclonk.org/")
|
||||||
(synopsis
|
(synopsis
|
||||||
"Multiplayer action game where you control small and nimble humanoids")
|
"Multiplayer action game where you control small and nimble humanoids")
|
||||||
|
|
Loading…
Reference in a new issue