me
/
guix
Archived
1
0
Fork 0

gnu: sdl2-mixer: Enable opus support.

* gnu/packages/sdl.scm (sdl2-mixer)[inputs]: Add opusfile.
[native-inputs]: Add pkg-config.
[arguments]<#:configure-flags>: Add "--disable-music-opus-shared".

Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
master
Timotej Lazar 2020-01-05 11:45:51 +01:00 committed by Danny Milosavljevic
parent 6fbf92ee78
commit ced47faaa7
No known key found for this signature in database
GPG Key ID: E71A35542C30BAA5
1 changed files with 6 additions and 2 deletions

View File

@ -420,15 +420,19 @@ directory.")
(substitute-keyword-arguments (package-arguments sdl-mixer)
((#:configure-flags flags)
`(cons*
"--disable-music-opus-shared"
;; These options were renamed in SDL2 mixer. Keeping the inherited
;; variants produces a harmless warning.
"--disable-music-mod-modplug-shared"
"--disable-music-midi-fluidsynth-shared"
,flags))))
(inputs
;; The default MOD library changed in SDL2 mixer.
`(("libmodplug" ,libmodplug)
`(("opusfile" ,opusfile)
;; The default MOD library changed in SDL2 mixer.
("libmodplug" ,libmodplug)
,@(alist-delete "libmikmod" (package-inputs sdl-mixer))))
(native-inputs
`(("pkgconfig" ,pkg-config))) ; Needed to find the opus library.
(propagated-inputs
(propagated-inputs-with-sdl2 sdl-mixer))))