me
/
guix
Archived
1
0
Fork 0

gnu: openttd: Let the music play.

* gnu/packages/games.scm (openttd)[inputs]: Remove timidity++.
Add fluidsynth and freepats-gm.
[#:phases]<patch-sources>: New phase.
master
Liliana Marie Prikler 2021-11-06 14:06:58 +01:00
parent e597612bf3
commit f044d951b0
No known key found for this signature in database
GPG Key ID: 442A84B8C70E2F87
1 changed files with 10 additions and 1 deletions

View File

@ -4448,6 +4448,15 @@ Transport Tycoon Deluxe.")
(list (string-append "-DCMAKE_INSTALL_BINDIR=" out "/bin")))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-sources
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "src/music/fluidsynth.cpp"
(("default_sf\\[\\] = \\{" all)
(string-append all "
\t/* Guix hardcoded :P */
\t\"" (string-append (assoc-ref inputs "freepats-gm")
"/share/soundfonts/FreePatsGM.sf2") "\",
")))))
(add-before 'check 'install-data
(lambda* (#:key inputs outputs #:allow-other-keys)
(for-each
@ -4457,7 +4466,7 @@ Transport Tycoon Deluxe.")
(list "opengfx" "openmsx" "opensfx")))))))
(inputs
(modify-inputs (package-inputs openttd-engine)
(prepend timidity++)))
(prepend fluidsynth freepats-gm)))
(native-inputs
`(("opengfx" ,openttd-opengfx)
("openmsx" ,openttd-openmsx)