aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.si>2020-01-05 11:45:51 +0100
committerDanny Milosavljevic <dannym@scratchpost.org>2020-01-05 13:11:28 +0100
commitced47faaa7ab6f79a317b5ac41402f6ab2066731 (patch)
treea6acb4fc0366f7626160fb0559db6619479a20cd /gnu
parent6fbf92ee7834c3ed5879f4665981b033f92733c5 (diff)
downloadpatches-ced47faaa7ab6f79a317b5ac41402f6ab2066731.tar
patches-ced47faaa7ab6f79a317b5ac41402f6ab2066731.tar.gz
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>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/sdl.scm8
1 files changed, 6 insertions, 2 deletions
diff --git a/gnu/packages/sdl.scm b/gnu/packages/sdl.scm
index 80f3da9327..80725561fb 100644
--- a/gnu/packages/sdl.scm
+++ b/gnu/packages/sdl.scm
@@ -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))))