mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 22:16:32 +01:00
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>
This commit is contained in:
parent
6fbf92ee78
commit
ced47faaa7
1 changed files with 6 additions and 2 deletions
|
@ -420,15 +420,19 @@ (define-public sdl2-mixer
|
||||||
(substitute-keyword-arguments (package-arguments sdl-mixer)
|
(substitute-keyword-arguments (package-arguments sdl-mixer)
|
||||||
((#:configure-flags flags)
|
((#:configure-flags flags)
|
||||||
`(cons*
|
`(cons*
|
||||||
|
"--disable-music-opus-shared"
|
||||||
;; These options were renamed in SDL2 mixer. Keeping the inherited
|
;; These options were renamed in SDL2 mixer. Keeping the inherited
|
||||||
;; variants produces a harmless warning.
|
;; variants produces a harmless warning.
|
||||||
"--disable-music-mod-modplug-shared"
|
"--disable-music-mod-modplug-shared"
|
||||||
"--disable-music-midi-fluidsynth-shared"
|
"--disable-music-midi-fluidsynth-shared"
|
||||||
,flags))))
|
,flags))))
|
||||||
(inputs
|
(inputs
|
||||||
;; The default MOD library changed in SDL2 mixer.
|
`(("opusfile" ,opusfile)
|
||||||
`(("libmodplug" ,libmodplug)
|
;; The default MOD library changed in SDL2 mixer.
|
||||||
|
("libmodplug" ,libmodplug)
|
||||||
,@(alist-delete "libmikmod" (package-inputs sdl-mixer))))
|
,@(alist-delete "libmikmod" (package-inputs sdl-mixer))))
|
||||||
|
(native-inputs
|
||||||
|
`(("pkgconfig" ,pkg-config))) ; Needed to find the opus library.
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(propagated-inputs-with-sdl2 sdl-mixer))))
|
(propagated-inputs-with-sdl2 sdl-mixer))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue