me
/
guix
Archived
1
0
Fork 0

gnu: quakespasm: Update package style.

* gnu/packages/games.scm (quakespasm)[arguments]: Convert to list of
G-Expressions.
<#:make-flags>: Use (cc-for-target) instead of gcc.
<#:phases>: Simplify ‘fix-makefile-paths’.  Remove trailing #t.

Change-Id: I250a842c78f2f49b451e5df76509fbe6fa1b4576
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
master
James Smith 2024-06-16 14:43:13 -07:00 committed by Liliana Marie Prikler
parent 76d0debc19
commit 617f1e5320
No known key found for this signature in database
GPG Key ID: 442A84B8C70E2F87
1 changed files with 15 additions and 17 deletions

View File

@ -7676,23 +7676,21 @@ abilities and powers.")
(sha256 (sha256
(base32 "0hr58w1d2yw82vm9lkln05z6d4sjlcr6grxhf6sqdqwyfy9nv1mw")))) (base32 "0hr58w1d2yw82vm9lkln05z6d4sjlcr6grxhf6sqdqwyfy9nv1mw"))))
(arguments (arguments
`(#:tests? #f (list #:tests? #f
#:make-flags '("CC=gcc" #:make-flags #~(list (string-append "CC=" #$(cc-for-target))
"MP3LIB=mpg123" "MP3LIB=mpg123"
"USE_CODEC_FLAC=1" "USE_CODEC_FLAC=1"
"USE_CODEC_MIKMOD=1" "USE_CODEC_MIKMOD=1"
"USE_SDL2=1" "USE_SDL2=1"
"-CQuake") "-CQuake")
#:phases (modify-phases %standard-phases #:phases #~(modify-phases %standard-phases
(delete 'configure) (delete 'configure)
(add-after 'unpack 'fix-makefile-paths (add-after 'unpack 'fix-makefile-paths
(lambda* (#:key outputs #:allow-other-keys) (lambda _
(let ((out (assoc-ref outputs "out"))) (mkdir-p (string-append #$output "/bin"))
(mkdir-p (string-append out "/bin")) (substitute* "Quake/Makefile"
(substitute* "Quake/Makefile" (("/usr/local/games")
(("/usr/local/games") (string-append #$output "/bin"))))))))
(string-append out "/bin")))
#t))))))
(build-system gnu-build-system) (build-system gnu-build-system)
(inputs (list libmikmod (inputs (list libmikmod
libvorbis libvorbis