Commit | Line | Data |
---|---|---|
22885fb8 | 1 | ;;; GNU Guix --- Functional package management for GNU |
71a4b2ab | 2 | ;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr> |
ce4a347f | 3 | ;;; Copyright © 2014 John Darrington <jmd@gnu.org> |
b3585d9b | 4 | ;;; Copyright © 2015, 2016 Sou Bunnbu <iyzsong@gmail.com> |
0392030d | 5 | ;;; Copyright © 2015, 2018 Mark H Weaver <mhw@netris.org> |
0d3ecf77 | 6 | ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il> |
399c5faf | 7 | ;;; Copyright © 2016, 2018 Leo Famulari <leo@famulari.name> |
51895712 | 8 | ;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net> |
d22d7468 | 9 | ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr> |
2a9d89af | 10 | ;;; Copyright © 2019 Marius Bakke <mbakke@fastmail.com> |
22885fb8 AE |
11 | ;;; |
12 | ;;; This file is part of GNU Guix. | |
13 | ;;; | |
14 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
15 | ;;; under the terms of the GNU General Public License as published by | |
16 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
17 | ;;; your option) any later version. | |
18 | ;;; | |
19 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
20 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
21 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
22 | ;;; GNU General Public License for more details. | |
23 | ;;; | |
24 | ;;; You should have received a copy of the GNU General Public License | |
25 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
26 | ||
27 | (define-module (gnu packages gstreamer) | |
5cde47ec | 28 | #:use-module ((guix licenses) #:prefix license:) |
22885fb8 AE |
29 | #:use-module (guix packages) |
30 | #:use-module (guix download) | |
31 | #:use-module (guix build-system gnu) | |
201cfb81 | 32 | #:use-module (guix utils) |
f506ed92 | 33 | #:use-module (gnu packages) |
40f6f76e | 34 | #:use-module (gnu packages audio) |
22885fb8 | 35 | #:use-module (gnu packages bison) |
e9a0b5e7 | 36 | #:use-module (gnu packages cdrom) |
db12dac0 | 37 | #:use-module (gnu packages curl) |
1fcf67f4 | 38 | #:use-module (gnu packages compression) |
22885fb8 | 39 | #:use-module (gnu packages flex) |
db12dac0 SB |
40 | #:use-module (gnu packages freedesktop) |
41 | #:use-module (gnu packages gl) | |
22885fb8 | 42 | #:use-module (gnu packages glib) |
40f6f76e | 43 | #:use-module (gnu packages gnome) |
db12dac0 SB |
44 | #:use-module (gnu packages gnupg) |
45 | #:use-module (gnu packages graphics) | |
1fcf67f4 | 46 | #:use-module (gnu packages gtk) |
a4d89136 | 47 | #:use-module (gnu packages image) |
db12dac0 | 48 | #:use-module (gnu packages libusb) |
1fcf67f4 | 49 | #:use-module (gnu packages linux) |
40f6f76e | 50 | #:use-module (gnu packages mp3) |
51895712 | 51 | #:use-module (gnu packages ncurses) |
22885fb8 | 52 | #:use-module (gnu packages perl) |
a4d89136 | 53 | #:use-module (gnu packages pulseaudio) |
db12dac0 SB |
54 | #:use-module (gnu packages qt) |
55 | #:use-module (gnu packages rdf) | |
04a20db2 | 56 | #:use-module (gnu packages video) |
1fcf67f4 JD |
57 | #:use-module (gnu packages xorg) |
58 | #:use-module (gnu packages xiph) | |
22885fb8 | 59 | #:use-module (gnu packages pkg-config) |
f506ed92 | 60 | #:use-module (gnu packages python) |
db12dac0 SB |
61 | #:use-module (gnu packages ssh) |
62 | #:use-module (gnu packages telephony) | |
63 | #:use-module (gnu packages tls) | |
64 | #:use-module (gnu packages version-control) | |
09b87aff | 65 | #:use-module (gnu packages assembly) |
f506ed92 | 66 | #:use-module (gnu packages xml)) |
22885fb8 | 67 | |
195857b0 SB |
68 | (define-public orc |
69 | (package | |
70 | (name "orc") | |
46c39e1e | 71 | (version "0.4.29") |
195857b0 SB |
72 | (source (origin |
73 | (method url-fetch) | |
5cc3096c | 74 | (uri (string-append "https://gstreamer.freedesktop.org/data/src/" |
195857b0 SB |
75 | "orc/orc-" version ".tar.xz")) |
76 | (sha256 | |
77 | (base32 | |
46c39e1e | 78 | "1cisbbn69p9c8vikn0nin14q0zscby5m8cyvzxyw2pjb2kwh32ag")))) |
195857b0 | 79 | (build-system gnu-build-system) |
462b5676 EF |
80 | (arguments |
81 | `(#:phases | |
82 | (modify-phases %standard-phases | |
83 | (add-before 'check 'disable-faulty-test | |
84 | (lambda _ | |
85 | ;; XXX Disable the 'test-limits' and 'exec_opcodes_sys' | |
86 | ;; tests, which fail on some machines. See: | |
87 | ;; https://bugzilla.gnome.org/show_bug.cgi?id=735273 | |
88 | (substitute* '("testsuite/test-limits.c" | |
89 | "testsuite/exec_opcodes_sys.c") | |
90 | (("if \\(error\\) return 1;") | |
0392030d MW |
91 | "if (error) return 77;")) |
92 | #t))))) | |
57e7d748 | 93 | (home-page "https://gstreamer.freedesktop.org/modules/orc.html") |
195857b0 SB |
94 | (synopsis "Oil runtime compiler") |
95 | (description | |
96 | "Orc is a just-in-time compiler implemented as a library and set of | |
97 | associated tools for compiling and executing simple programs that operate on | |
98 | arrays of data.") | |
99 | ;; The source code implementing the Marsenne Twister algorithm is licensed | |
100 | ;; under the 3-clause BSD license, the rest is under 2-clause BSD license. | |
5cde47ec | 101 | (license (list license:bsd-2 license:bsd-3)))) |
195857b0 | 102 | |
22885fb8 AE |
103 | (define-public gstreamer |
104 | (package | |
105 | (name "gstreamer") | |
c9c63edb | 106 | (version "1.16.0") |
22885fb8 AE |
107 | (source |
108 | (origin | |
109 | (method url-fetch) | |
a124bbd2 | 110 | (uri (string-append |
5cc3096c | 111 | "https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-" |
a124bbd2 | 112 | version ".tar.xz")) |
55d1d9eb | 113 | (patches (search-patches "gstreamer-buffer-reset-offset.patch")) |
22885fb8 AE |
114 | (sha256 |
115 | (base32 | |
c9c63edb | 116 | "003wy1p1in85p9sr5jsyhbnwqaiwz069flwkhyx7qhxy31qjz3hf")))) |
22885fb8 | 117 | (build-system gnu-build-system) |
2fb016b8 SB |
118 | (outputs '("out" "doc")) |
119 | (arguments | |
31e021f8 | 120 | `(#:configure-flags |
2fb016b8 SB |
121 | (list (string-append "--with-html-dir=" |
122 | (assoc-ref %outputs "doc") | |
55d1d9eb | 123 | "/share/gtk-doc/html")))) |
e244dc6d | 124 | (propagated-inputs `(("glib" ,glib))) ; required by gstreamer-1.0.pc. |
c4c4cc05 | 125 | (native-inputs |
22885fb8 AE |
126 | `(("bison" ,bison) |
127 | ("flex" ,flex) | |
426adbe8 | 128 | ("glib" ,glib "bin") |
0f998a14 | 129 | ("gobject-introspection" ,gobject-introspection) |
22885fb8 AE |
130 | ("perl" ,perl) |
131 | ("pkg-config" ,pkg-config) | |
144f9f25 | 132 | ("python-wrapper" ,python-wrapper))) |
96693d1d SB |
133 | (native-search-paths |
134 | (list (search-path-specification | |
135 | (variable "GST_PLUGIN_SYSTEM_PATH") | |
136 | (files '("lib/gstreamer-1.0"))))) | |
5cc3096c | 137 | (home-page "https://gstreamer.freedesktop.org/") |
93bfe3e2 | 138 | (synopsis "Multimedia library") |
22885fb8 AE |
139 | (description |
140 | "GStreamer is a library for constructing graphs of media-handling | |
141 | components. The applications it supports range from simple Ogg/Vorbis | |
e881752c AK |
142 | playback, audio/video streaming to complex audio mixing and video |
143 | non-linear editing. | |
22885fb8 AE |
144 | |
145 | Applications can take advantage of advances in codec and filter technology | |
146 | transparently. Developers can add new codecs and filters by writing a | |
147 | simple plugin with a clean, generic interface. | |
148 | ||
149 | This package provides the core library and elements.") | |
5cde47ec | 150 | (license license:lgpl2.0+))) |
477c91ce AE |
151 | |
152 | (define-public gst-plugins-base | |
153 | (package | |
154 | (name "gst-plugins-base") | |
c9c63edb | 155 | (version "1.16.0") |
477c91ce AE |
156 | (source |
157 | (origin | |
158 | (method url-fetch) | |
8cf39f7f | 159 | (uri (string-append "https://gstreamer.freedesktop.org/src/" name "/" |
a124bbd2 | 160 | name "-" version ".tar.xz")) |
477c91ce AE |
161 | (sha256 |
162 | (base32 | |
c9c63edb | 163 | "1bmmdwbyy89ayb85xc48y217f6wdmpz96f30zm6v53z2a5xsm4s0")))) |
477c91ce | 164 | (build-system gnu-build-system) |
e9a82129 | 165 | (outputs '("out" "doc")) |
34ff76fd | 166 | (propagated-inputs |
a53f4311 MB |
167 | `(("glib" ,glib) ;required by gstreamer-sdp-1.0.pc |
168 | ("gstreamer" ,gstreamer) ;required by gstreamer-plugins-base-1.0.pc | |
169 | ("orc" ,orc))) ;required by gstreamer-audio-1.0.pc | |
477c91ce | 170 | (inputs |
e9a0b5e7 | 171 | `(("cdparanoia" ,cdparanoia) |
1fcf67f4 JD |
172 | ("pango" ,pango) |
173 | ("libogg" ,libogg) | |
174 | ("libtheora" ,libtheora) | |
175 | ("libvorbis" ,libvorbis) | |
176 | ("libx11" ,libx11) | |
177 | ("zlib" ,zlib) | |
178 | ("libXext" ,libxext) | |
179 | ("libxv" ,libxv) | |
399c5faf LF |
180 | ("alsa-lib" ,alsa-lib) |
181 | ;; XXX Don't build with opus on 32-bit systems: | |
182 | ;; <https://bugs.gnu.org/32360> | |
183 | ,@(if (target-64bit?) | |
184 | `(("opus" ,opus)) | |
185 | '()))) | |
c4c4cc05 JD |
186 | (native-inputs |
187 | `(("pkg-config" ,pkg-config) | |
a53f4311 | 188 | ("glib:bin" ,glib "bin") |
4ec48644 | 189 | ("gobject-introspection" ,gobject-introspection) |
c4c4cc05 | 190 | ("python-wrapper" ,python-wrapper))) |
477c91ce | 191 | (arguments |
7bc36f8d SB |
192 | `(#:parallel-tests? #f ; 'pipelines/tcp' fails in parallel |
193 | #:configure-flags | |
e9a82129 SB |
194 | (list (string-append "--with-html-dir=" |
195 | (assoc-ref %outputs "doc") | |
196 | "/share/gtk-doc/html")) | |
197 | #:phases | |
cda6aaf0 EF |
198 | (modify-phases %standard-phases |
199 | (add-before 'configure 'patch | |
200 | (lambda _ | |
201 | (substitute* "tests/check/libs/pbutils.c" | |
de0e591a EF |
202 | (("/bin/sh") (which "sh"))) |
203 | #t))))) | |
70e863e5 | 204 | (home-page "https://gstreamer.freedesktop.org/") |
477c91ce | 205 | (synopsis |
1fcf67f4 JD |
206 | "Plugins for the GStreamer multimedia library") |
207 | (description "This package provides an essential exemplary set of plug-ins | |
208 | for the GStreamer multimedia library.") | |
5cde47ec | 209 | (license license:lgpl2.0+))) |
477c91ce | 210 | |
1fcf67f4 JD |
211 | (define-public gst-plugins-good |
212 | (package | |
213 | (name "gst-plugins-good") | |
c9c63edb | 214 | (version "1.16.0") |
1fcf67f4 JD |
215 | (source |
216 | (origin | |
217 | (method url-fetch) | |
e881752c | 218 | (uri (string-append |
48caecb7 SB |
219 | "https://gstreamer.freedesktop.org/src/" name "/" |
220 | name "-" version ".tar.xz")) | |
1fcf67f4 JD |
221 | (sha256 |
222 | (base32 | |
c9c63edb | 223 | "1zdhif1mhf0ihkjpjyrh65g2iz2cawkjjb3h5w8h9ml06grxwjk5")))) |
1fcf67f4 JD |
224 | (build-system gnu-build-system) |
225 | (inputs | |
40f6f76e | 226 | `(("aalib" ,aalib) |
a4d89136 | 227 | ("cairo" ,cairo) |
a4d89136 | 228 | ("flac" ,flac) |
40f6f76e SB |
229 | ("gdk-pixbuf" ,gdk-pixbuf) |
230 | ("gst-plugins-base" ,gst-plugins-base) | |
b3aba78b | 231 | ("gtk+" ,gtk+) |
0dc2e348 | 232 | ("jack" ,jack-1) |
02d5ed4a | 233 | ("lame" ,lame) |
40f6f76e SB |
234 | ("libavc1394" ,libavc1394) |
235 | ("libcaca" ,libcaca) | |
236 | ("libdv" ,libdv) | |
237 | ("libiec61883" ,libiec61883) | |
a4d89136 | 238 | ("libjpeg" ,libjpeg) |
40f6f76e SB |
239 | ("libpng" ,libpng) |
240 | ("libshout" ,libshout) | |
241 | ("libsoup" ,libsoup) | |
242 | ("libvpx" ,libvpx) | |
02d5ed4a | 243 | ("mpg123" ,mpg123) |
40f6f76e | 244 | ("orc" ,orc) |
a4d89136 | 245 | ("pulseaudio" ,pulseaudio) |
40f6f76e SB |
246 | ("speex" ,speex) |
247 | ("taglib" ,taglib) | |
02d5ed4a | 248 | ("twolame" ,twolame) |
40f6f76e | 249 | ("wavpack" ,wavpack))) |
1fcf67f4 | 250 | (native-inputs |
40f6f76e SB |
251 | `(("glib:bin" ,glib "bin") |
252 | ("pkg-config" ,pkg-config) | |
253 | ("python-wrapper" ,python-wrapper))) | |
0ba652b2 | 254 | (arguments |
c9c63edb | 255 | `(#:phases |
0ba652b2 MW |
256 | (modify-phases %standard-phases |
257 | (add-after | |
d1ceedf8 | 258 | 'unpack 'disable-failing-tests |
0ba652b2 | 259 | (lambda _ |
d1ceedf8 | 260 | ;; Disable tests that fail non-deterministically. |
0d3ecf77 EF |
261 | ;; This test fails on aarch64 on 1.12.x. |
262 | (substitute* "tests/check/elements/alpha.c" | |
263 | (("tcase_add_test \\(tc_chain, test_chromakeying\\);" all) | |
0ba652b2 MW |
264 | (string-append "/* " all " */"))) |
265 | #t))))) | |
d1ceedf8 | 266 | (home-page "https://gstreamer.freedesktop.org/") |
1fcf67f4 JD |
267 | (synopsis |
268 | "Plugins for the GStreamer multimedia library") | |
269 | (description "GStreamer Good Plug-ins is a set of plug-ins for the | |
270 | GStreamer multimedia library. This set contains those plug-ins which the | |
271 | developers consider to have good quality code and correct functionality.") | |
5cde47ec | 272 | (license license:lgpl2.0+))) |
4e9b38eb | 273 | |
db12dac0 SB |
274 | (define-public gst-plugins-bad |
275 | (package | |
276 | (name "gst-plugins-bad") | |
c9c63edb | 277 | (version "1.16.0") |
db12dac0 SB |
278 | (source (origin |
279 | (method url-fetch) | |
280 | (uri (string-append "https://gstreamer.freedesktop.org/src/" | |
281 | name "/" name "-" version ".tar.xz")) | |
282 | (sha256 | |
283 | (base32 | |
c9c63edb | 284 | "019b0yqjrcg6jmfd4cc336h1bz5p4wxl58yz1c4sdb96avirs4r2")))) |
db12dac0 SB |
285 | (outputs '("out" "doc")) |
286 | (build-system gnu-build-system) | |
287 | (arguments | |
a53f4311 | 288 | '(#:tests? #f ; XXX: 13 of 53 tests fail |
db12dac0 SB |
289 | #:configure-flags |
290 | (list (string-append "--with-html-dir=" | |
291 | (assoc-ref %outputs "doc") | |
4cb77941 | 292 | "/share/gtk-doc/html")))) |
db12dac0 SB |
293 | (propagated-inputs |
294 | `(("gst-plugins-base" ,gst-plugins-base))) | |
295 | (native-inputs | |
296 | `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc. | |
297 | ("gobject-introspection" ,gobject-introspection) | |
298 | ("pkg-config" ,pkg-config) | |
299 | ("python" ,python))) | |
300 | (inputs | |
301 | ;; XXX: The following dependencies are missing: | |
302 | ;; vo-amrwbenc, vo-aacenc, bs2b, chromaprint, directfb, daala, libdts, | |
303 | ;; faac, flite, libgsm, libde265, libmms, libmimic, mjpegtools, | |
304 | ;; mpeg2enc, libofa, opencv, openh264, openni2, libtimemmgr, wildmidi, | |
e3cb00d2 | 305 | ;; openspc, gme, sbc, schroedinger, zbar, librtmp, spandsp |
db12dac0 SB |
306 | `(("bluez" ,bluez) |
307 | ("curl" ,curl) | |
308 | ("faad2" ,faad2) | |
309 | ("fluidsynth" ,fluidsynth) | |
310 | ("gtk+" ,gtk+) | |
311 | ("ladspa" ,ladspa) | |
312 | ("libass" ,libass) | |
313 | ("libdvdnav" ,libdvdnav) | |
314 | ("libdvdread" ,libdvdread) | |
315 | ("libgcrypt" ,libgcrypt) | |
316 | ("libgudev" ,libgudev) | |
317 | ("libkate" ,libkate) | |
318 | ("libmodplug" ,libmodplug) | |
319 | ("librsvg" ,librsvg) | |
320 | ("libsndfile" ,libsndfile) | |
321 | ("libsrtp" ,libsrtp) | |
322 | ("libssh2" ,libssh2) | |
323 | ("libusb" ,libusb) | |
324 | ("libvdpau" ,libvdpau) | |
325 | ("libwebp" ,libwebp) | |
326 | ("libxml2" ,libxml2) | |
327 | ("lrdf" ,lrdf) | |
328 | ("mesa" ,mesa) | |
db12dac0 SB |
329 | ("neon" ,neon) |
330 | ("openal" ,openal) | |
331 | ("openexr" ,openexr) | |
332 | ("openjpeg" ,openjpeg) | |
333 | ("openssl" ,openssl) | |
334 | ("opus" ,opus) | |
335 | ("orc" ,orc) | |
6779b932 EF |
336 | ;("qtbase" ,qtbase) |
337 | ;("qtdeclarative" ,qtdeclarative) | |
338 | ;("qtx11extras" ,qtx11extras) | |
db12dac0 | 339 | ("soundtouch" ,soundtouch) |
e3cb00d2 | 340 | ("x265" ,x265) |
94b179c6 | 341 | ("wayland" ,wayland))) |
0cee33ac | 342 | (home-page "https://gstreamer.freedesktop.org/") |
db12dac0 SB |
343 | (synopsis "Plugins for the GStreamer multimedia library") |
344 | (description | |
345 | "GStreamer Bad Plug-ins is a set of plug-ins whose quality aren't up to | |
346 | par compared to the rest.") | |
5cde47ec | 347 | (license license:lgpl2.0+))) |
db12dac0 | 348 | |
92f1b4a5 MW |
349 | (define-public gst-plugins-ugly |
350 | (package | |
351 | (name "gst-plugins-ugly") | |
c9c63edb | 352 | (version "1.16.0") |
92f1b4a5 MW |
353 | (source |
354 | (origin | |
355 | (method url-fetch) | |
5cc3096c | 356 | (uri (string-append "https://gstreamer.freedesktop.org/src/" |
92f1b4a5 MW |
357 | name "/" name "-" version ".tar.xz")) |
358 | (sha256 | |
359 | (base32 | |
c9c63edb | 360 | "1hm46c1fy9vl1wfwipsj41zp79cm7in1fpmjw24j5hriy32n82g3")))) |
92f1b4a5 MW |
361 | (build-system gnu-build-system) |
362 | (inputs | |
363 | `(("gst-plugins-base" ,gst-plugins-base) | |
364 | ("liba52" ,liba52) | |
92f1b4a5 | 365 | ("libcdio" ,libcdio) |
92f1b4a5 MW |
366 | ("libmpeg2" ,libmpeg2) |
367 | ("libdvdread" ,libdvdread) | |
368 | ("libx264" ,libx264) | |
369 | ;; TODO: | |
370 | ;; * opencore-amr (for the AMR-NB decoder and encoder and the | |
371 | ;; AMR-WB decoder) <http://sourceforge.net/projects/opencore-amr/> | |
372 | ("orc" ,orc))) | |
373 | (native-inputs | |
374 | `(("glib:bin" ,glib "bin") | |
375 | ("pkg-config" ,pkg-config) | |
376 | ("python-wrapper" ,python-wrapper))) | |
40dad30c | 377 | (home-page "https://gstreamer.freedesktop.org/") |
e881752c | 378 | (synopsis "GStreamer plugins from the \"ugly\" set") |
92f1b4a5 MW |
379 | (description "GStreamer Ugly Plug-ins. This set contains those plug-ins |
380 | which the developers consider to have good quality code but that might pose | |
381 | distribution problems in some jurisdictions, e.g. due to patent threats.") | |
5cde47ec | 382 | (license license:lgpl2.0+))) |
92f1b4a5 | 383 | |
1b922590 SB |
384 | (define-public gst-libav |
385 | (package | |
386 | (name "gst-libav") | |
c9c63edb | 387 | (version "1.16.0") |
1b922590 SB |
388 | (source (origin |
389 | (method url-fetch) | |
390 | (uri (string-append | |
5cc3096c | 391 | "https://gstreamer.freedesktop.org/src/" name "/" |
1b922590 SB |
392 | name "-" version ".tar.xz")) |
393 | (sha256 | |
394 | (base32 | |
c9c63edb | 395 | "16ixqpfrr7plaaz14n3vagr2q5xbfkv7gpmcsyndrkx98f813b6z")) |
4b7e861b MB |
396 | (modules '((guix build utils))) |
397 | (snippet | |
398 | '(begin | |
399 | ;; Drop bundled ffmpeg. | |
400 | (delete-file-recursively "gst-libs/ext/libav") | |
401 | #t)))) | |
1b922590 SB |
402 | (build-system gnu-build-system) |
403 | (arguments | |
4b7e861b | 404 | '(#:configure-flags '("--with-system-libav"))) |
1b922590 SB |
405 | (native-inputs |
406 | `(("pkg-config" ,pkg-config) | |
04a20db2 | 407 | ("python" ,python))) |
1b922590 SB |
408 | (inputs |
409 | `(("gst-plugins-base" ,gst-plugins-base) | |
c9c63edb | 410 | ("ffmpeg" ,ffmpeg) |
1b922590 SB |
411 | ("orc" ,orc) |
412 | ("zlib" ,zlib))) | |
57e7d748 | 413 | (home-page "https://gstreamer.freedesktop.org/") |
1b922590 SB |
414 | (synopsis "Plugins for the GStreamer multimedia library") |
415 | (description | |
416 | "This GStreamer plugin supports a large number of audio and video | |
417 | compression formats through the use of the libav library.") | |
5cde47ec | 418 | (license license:gpl2+))) |
201cfb81 SB |
419 | |
420 | (define-public python-gst | |
421 | (package | |
422 | (name "python-gst") | |
c9c63edb | 423 | (version "1.16.0") |
201cfb81 SB |
424 | (source (origin |
425 | (method url-fetch) | |
426 | (uri (string-append | |
427 | "https://gstreamer.freedesktop.org/src/gst-python/" | |
428 | "gst-python-" version ".tar.xz")) | |
429 | (sha256 | |
430 | (base32 | |
c9c63edb | 431 | "0f1d9rvy2qxlymmfzyknnfr5rz1vx69jv17gp7wnamc5s6p7mp2m")))) |
201cfb81 SB |
432 | (build-system gnu-build-system) |
433 | (arguments | |
434 | ;; XXX: Factorize python-sitedir with python-build-system. | |
435 | `(#:imported-modules (,@%gnu-build-system-modules | |
436 | (guix build python-build-system)) | |
437 | #:configure-flags | |
438 | (let* ((python (assoc-ref %build-inputs "python")) | |
439 | (python-version ((@@ (guix build python-build-system) | |
440 | get-python-version) | |
441 | python)) | |
442 | (python-sitedir (string-append | |
443 | "lib/python" python-version "/site-packages"))) | |
444 | (list (string-append | |
445 | "--with-pygi-overrides-dir=" %output "/" python-sitedir | |
446 | "/gi/overrides"))))) | |
447 | (native-inputs | |
448 | `(("pkg-config" ,pkg-config) | |
449 | ("python" ,python))) | |
450 | (propagated-inputs | |
451 | `(("gst-plugins-base" ,gst-plugins-base) | |
452 | ("python-pygobject" ,python-pygobject))) | |
d2b5dec5 | 453 | (home-page "https://gstreamer.freedesktop.org/") |
201cfb81 SB |
454 | (synopsis "GStreamer GObject Introspection overrides for Python") |
455 | (description | |
456 | "This package contains GObject Introspection overrides for Python that can | |
457 | be used by Python applications using GStreamer.") | |
5cde47ec | 458 | (license license:lgpl2.1+) |
201cfb81 SB |
459 | (properties `((python2-variant . ,(delay python2-gst)))))) |
460 | ||
461 | (define-public python2-gst | |
462 | (package (inherit python-gst) | |
463 | (name "python2-gst") | |
464 | (native-inputs | |
465 | `(("pkg-config" ,pkg-config) | |
466 | ("python" ,python-2))) | |
467 | (propagated-inputs | |
468 | `(("gst-plugins-base" ,gst-plugins-base) | |
469 | ("python-pygobject" ,python2-pygobject))))) | |
51895712 RW |
470 | |
471 | (define-public gst123 | |
472 | (package | |
473 | (name "gst123") | |
474 | (version "0.3.5") | |
475 | (source (origin | |
476 | (method url-fetch) | |
477 | (uri (string-append "http://space.twc.de/~stefan/gst123/gst123-" | |
478 | version ".tar.bz2")) | |
479 | (sha256 | |
480 | (base32 | |
481 | "0zaa117n4wkya9p903vkj8hj58lmdb66pxsdx5wwcv7nffbp5d67")))) | |
482 | (build-system gnu-build-system) | |
483 | (inputs | |
484 | `(("gtk+" ,gtk+-2) | |
485 | ("ncurses" ,ncurses) | |
486 | ("gstreamer" ,gstreamer) | |
487 | ("gst-plugins-base" ,gst-plugins-base))) | |
488 | (native-inputs | |
489 | `(("pkg-config" ,pkg-config))) | |
490 | (home-page "http://space.twc.de/~stefan/gst123.php") | |
491 | (synopsis "Flexible command line media player based on gstreamer") | |
492 | (description "The program gst123 is designed to be a more flexible command | |
493 | line player in the spirit of ogg123 and mpg123, based on the gstreamer media | |
494 | framework. It plays all file formats gstreamer supports, so if you have a | |
495 | music collection which contains different file formats, like flac, ogg and | |
496 | mp3, you can use gst123 to play all your music files.") | |
497 | (license license:lgpl2.0+))) |