gnu: ffmpeg@4: Build against SDL2 2.0 so 'ffplay' gets built.

Fixes <https://issues.guix.gnu.org/58090>.
Reported by Zhu Zihao <all_but_last@163.com>.

* gnu/packages/sdl.scm (sdl2-2.0): New variable.
* gnu/packages/video.scm (ffmpeg-4)[inputs]: New field.
This commit is contained in:
Ludovic Courtès 2022-10-02 23:15:55 +02:00
parent 4bd75d79e5
commit 782c7455e1
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5
2 changed files with 16 additions and 0 deletions

View file

@ -155,6 +155,20 @@ (define-public sdl2
wayland-protocols)))
(license license:bsd-3)))
(define-public sdl2-2.0
(package
(inherit sdl2)
(name "sdl2")
(version "2.0.14")
(source (origin
(method url-fetch)
(uri
(string-append "https://libsdl.org/release/SDL2-"
version ".tar.gz"))
(sha256
(base32
"1g1jahknv5r4yhh1xq5sf0md20ybdw1zh1i15lry26sq39bmn8fq"))))))
(define-public libmikmod
(package
(name "libmikmod")

View file

@ -1772,6 +1772,8 @@ (define-public ffmpeg-4
(sha256
(base32
"14xadxm1yaamp216nq09xwasxg5g133v86dbb33mdg5di1zrlhdg"))))
(inputs (modify-inputs (package-inputs ffmpeg-5)
(replace "sdl2" sdl2-2.0)))
(arguments
(substitute-keyword-arguments (package-arguments ffmpeg-5)
((#:configure-flags flags ''())