gnu: sdl-mixer: Fix fluidsynth in dependents.

Fixes <https://bugs.gnu.org/39008>.
Reported by Pierre Neidhardt <mail@ambrevar.xyz>.

* gnu/packages/sdl.scm (sdl-mixer)[arguments]<#:phases>[fix-fluidsynth]: New
phase.
This commit is contained in:
Danny Milosavljevic 2020-01-07 16:50:48 +01:00
parent 058d0251bd
commit fa0c1a21c9
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5

View file

@ -270,7 +270,18 @@ (define-public sdl-mixer
"--disable-music-flac-shared"
"--disable-music-fluidsynth-shared"
"--disable-music-mod-shared"
"--disable-music-ogg-shared")))
"--disable-music-ogg-shared")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-fluidsynth
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "configure"
(("EXTRA_LDFLAGS -lfluidsynth")
(string-append "EXTRA_LDFLAGS "
"-L"
(assoc-ref inputs "fluidsynth")
"/lib -lfluidsynth")))
#t)))))
(inputs
`(("fluidsynth" ,fluidsynth)
("libflac" ,flac)