gnu: gst-plugins-bad: Build with system usrsctp.

* gnu/packages/gstreamer.scm (gst-plugins-bad)[source](modules, snippet): New
fields.
[arguments]: Add #:configure-flags.
[inputs]: Add USRSCTP.
This commit is contained in:
Marius Bakke 2021-10-04 23:50:51 +02:00
parent fa72aa8f4d
commit 3cf6f92f09
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -685,10 +685,16 @@ (define-public gst-plugins-bad
(patches (search-patches "gst-plugins-bad-fix-overflow.patch")) (patches (search-patches "gst-plugins-bad-fix-overflow.patch"))
(sha256 (sha256
(base32 (base32
"06ildd4rl6cynirv3p00d2ddf5is9svj4i7mkahldzhq24pq5mca")))) "06ildd4rl6cynirv3p00d2ddf5is9svj4i7mkahldzhq24pq5mca"))
(modules '((guix build utils)))
(snippet
'(begin
;; Delete bundled copy of usrsctp.
(delete-file-recursively "ext/sctp/usrsctp")))))
(build-system meson-build-system) (build-system meson-build-system)
(arguments (arguments
`(#:phases `(#:configure-flags '("-Dsctp-internal-usrsctp=disabled")
#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
,@%common-gstreamer-phases ,@%common-gstreamer-phases
,@(if (string-prefix? "arm" (or (%current-target-system) ,@(if (string-prefix? "arm" (or (%current-target-system)
@ -773,6 +779,7 @@ (define-public gst-plugins-bad
("soundtouch" ,soundtouch) ("soundtouch" ,soundtouch)
;; GStreamer is not yet compatible with srt > 1.4.1. ;; GStreamer is not yet compatible with srt > 1.4.1.
("srt" ,srt-1.4.1) ("srt" ,srt-1.4.1)
("usrsctp" ,usrsctp)
("x265" ,x265) ("x265" ,x265)
("webrtc-audio-processing" ,webrtc-audio-processing) ("webrtc-audio-processing" ,webrtc-audio-processing)
("wayland" ,wayland))) ("wayland" ,wayland)))