gnu: sdl2-mixer: Update to 2.6.2.
* gnu/packages/sdl.scm (sdl2-mixer): Update to 2.6.2. [arguments]: Don't inherit; update configure flags for 2.6.2. [inputs]: Clear. [propagated-inputs]: Add FLAC, FLUIDSYNTH, LIBMODPLUG, LIBVORBIS, MPG123, and OPUSFILE.master
parent
011e3152b6
commit
ce3fa07b29
|
@ -484,7 +484,7 @@ directory.")
|
||||||
(define-public sdl2-mixer
|
(define-public sdl2-mixer
|
||||||
(package (inherit sdl-mixer)
|
(package (inherit sdl-mixer)
|
||||||
(name "sdl2-mixer")
|
(name "sdl2-mixer")
|
||||||
(version "2.0.4")
|
(version "2.6.2")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
|
@ -497,27 +497,31 @@ directory.")
|
||||||
(delete-file-recursively "external")
|
(delete-file-recursively "external")
|
||||||
#t))
|
#t))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0694vsz5bjkcdgfdra6x9fq8vpzrl8m6q96gh58df7065hw5mkxl"))))
|
(base32 "0wd35a9fcj1bv534k9cr4jdk076dpiqq0ayk6cybmv3d6q8aiplc"))))
|
||||||
(arguments
|
(arguments
|
||||||
(substitute-keyword-arguments (package-arguments sdl-mixer)
|
(list #:tests? #f ;no tests
|
||||||
((#:configure-flags flags)
|
#:configure-flags
|
||||||
`(cons*
|
#~'(;; Prefer system libraries to bundled codecs.
|
||||||
"--disable-music-opus-shared"
|
"--enable-music-flac-libflac"
|
||||||
;; These options were renamed in SDL2 mixer. Keeping the inherited
|
"--enable-music-midi-fluidsynth"
|
||||||
;; variants produces a harmless warning.
|
"--enable-music-mod-modplug"
|
||||||
"--disable-music-mod-modplug-shared"
|
"--enable-music-mp3-mpg123"
|
||||||
"--disable-music-midi-fluidsynth-shared"
|
"--enable-music-ogg-vorbis"
|
||||||
,flags))))
|
"--enable-music-opus"
|
||||||
(inputs
|
;; Link the libraries instead of dlopening them.
|
||||||
(modify-inputs (package-inputs sdl-mixer)
|
"--enable-music-flac-libflac-shared=no"
|
||||||
(delete "libmikmod")
|
"--enable-music-midi-fluidsynth-shared=no"
|
||||||
(prepend opusfile
|
"--enable-music-mod-modplug-shared=no"
|
||||||
;; The default MOD library changed in SDL2 mixer.
|
"--enable-music-mp3-mpg123-shared=no"
|
||||||
libmodplug)))
|
"--enable-music-ogg-vorbis-shared=no"
|
||||||
|
"--enable-music-opus-shared=no")))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("pkgconfig" ,pkg-config))) ; Needed to find the opus library.
|
(list pkg-config))
|
||||||
|
(inputs '())
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(propagated-inputs-with-sdl2 sdl-mixer))
|
(modify-inputs (propagated-inputs-with-sdl2 sdl-mixer)
|
||||||
|
;; In Requires.private of SDL2_mixer.pc.
|
||||||
|
(append flac fluidsynth libmodplug libvorbis mpg123 opusfile)))
|
||||||
(properties '((upstream-name . "SDL2_mixer")))))
|
(properties '((upstream-name . "SDL2_mixer")))))
|
||||||
|
|
||||||
(define-public sdl2-net
|
(define-public sdl2-net
|
||||||
|
|
Reference in New Issue