@@ -4481,6 +4481,15 @@ (define-public openttd
(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
@@ -4489,7 +4498,8 @@ (define-public openttd
(assoc-ref outputs "out")))
(list "opengfx" "openmsx" "opensfx")))))))
(inputs
- `(("timidity++" ,timidity++)
+ `(("fluidsynth" ,fluidsynth)
+ ("freepats-gm" ,freepats-gm)
,@(package-inputs openttd-engine)))
(native-inputs
`(("opengfx" ,openttd-opengfx)