3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

gnu: dosbox-staging: Update to 0.78.0.

* gnu/packages/emulators.scm (dosbox-staging): Update to 0.78.0.
[arguments]: Rewrite using G-expressions.
Add "-Duse_slirp=false" to #:configure-flags.
Add a new 'fix-includes phase.
This commit is contained in:
Tobias Geerinckx-Rice 2021-12-29 00:41:18 +01:00
parent bdc35b925b
commit 0f9bc3a8ad
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -36,6 +36,7 @@
(define-module (gnu packages emulators)
#:use-module (ice-9 match)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix gexp)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix git-download)
@ -394,7 +395,7 @@ older games.")
;; This is not a patch staging area for DOSBox, but an unaffiliated fork.
(package
(name "dosbox-staging")
(version "0.77.1")
(version "0.78.0")
(source
(origin
(method git-fetch)
@ -403,13 +404,23 @@ older games.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "07jwmmm1bhfxavlhl854cj8l5iy5hqx5hpwkkjbcwqg7yh9jfs2x"))))
(base32 "1zwrfc0mdqh3f2xj91iny8awcghdh6ql445ic70g5yzr1i303pgg"))))
(build-system meson-build-system)
(arguments
`(#:configure-flags
;; These both try to git clone subprojects.
(list "-Dunit_tests=disabled" ; gtest
"-Duse_mt32emu=false"))) ; mt32emu
(list #:configure-flags
#~(list
;; These both try to git clone subprojects.
"-Dunit_tests=disabled" ; gtest
"-Duse_mt32emu=false"
;; Not packaged.
"-Duse_slirp=false")
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-includes
(lambda _
(substitute* (find-files "." "\\.(cpp|h)")
(("^(#include <)(SDL[_.])" _ include file)
(string-append include "SDL2/" file))))))))
(native-inputs
(list pkg-config))
(inputs