video.scm
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu> |
3 | ;;; |
4 | ;;; This file is part of GNU Guix. |
5 | ;;; |
6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
7 | ;;; under the terms of the GNU General Public License as published by |
8 | ;;; the Free Software Foundation; either version 3 of the License, or (at |
9 | ;;; your option) any later version. |
10 | ;;; |
11 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
12 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | ;;; GNU General Public License for more details. |
15 | ;;; |
16 | ;;; You should have received a copy of the GNU General Public License |
17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
18 | |
19 | (define-module (more packages video) |
20 | #:use-module (guix packages) |
21 | #:use-module (guix download) |
22 | #:use-module (guix build-system gnu) |
23 | #:use-module (guix build-system glib-or-gtk) |
24 | #:use-module (guix utils) |
25 | #:use-module ((guix licenses) #:prefix license:) |
26 | #:use-module (gnu packages) |
27 | #:use-module (gnu packages algebra) |
28 | #:use-module (gnu packages boost) |
29 | #:use-module (gnu packages compression) |
30 | #:use-module (gnu packages fontutils) |
31 | #:use-module (gnu packages freedesktop) |
32 | #:use-module (gnu packages gl) |
33 | #:use-module (gnu packages glib) |
34 | #:use-module (gnu packages gnome) |
35 | #:use-module (gnu packages gtk) |
36 | #:use-module (gnu packages libreoffice) ; hunspell |
37 | #:use-module (gnu packages linux) |
38 | #:use-module (gnu packages pkg-config) |
39 | #:use-module (gnu packages pulseaudio) |
40 | #:use-module (gnu packages video) |
41 | #:use-module (gnu packages wxwidgets) |
42 | #:use-module (gnu packages xml) |
43 | #:use-module (gnu packages xorg)) |
44 | |
45 | (define-public ffms2 |
46 | (package |
47 | (name "ffms2") |
48 | (version "2.23") |
49 | (home-page "https://github.com/FFMS/ffms2/") |
50 | (source (origin |
51 | (method url-fetch) |
52 | (uri (string-append home-page "archive/" version ".tar.gz")) |
53 | (sha256 |
54 | (base32 |
55 | "1vbkab8vrplxz5xgag8ggzkwp4f7nf285pd0l2a7zy66n6i2m6xh")))) |
56 | (build-system gnu-build-system) |
57 | (arguments |
58 | '(#:configure-flags |
59 | (list "--enable-avresample"))) |
60 | (inputs |
61 | `(("zlib" ,zlib))) |
62 | (propagated-inputs |
63 | `(("ffmpeg" ,ffmpeg))) |
64 | (native-inputs |
65 | `(("pkg-config" ,pkg-config))) |
66 | (synopsis "Cross-platform wrapper around ffmpeg/libav") |
67 | (description |
68 | "FFMpegSource is a wrapper library around ffmpeg/libav that allows |
69 | programmers to access a standard API to open and decompress media files.") |
70 | (license license:gpl2+))); inherits from ffmpeg |
71 | ;; sources are distributed under a different license that the binary. |
72 | ;; see https://github.com/FFMS/ffms2/blob/master/COPYING |
73 | |
74 | (define-public aegisub |
75 | (package |
76 | (name "aegisub-wip") |
77 | (version "3.2.2") |
78 | (source (origin |
79 | (method url-fetch) |
80 | (uri (string-append |
81 | "http://ftp.aegisub.org/pub/archives/releases/source/" |
82 | name "-" version ".tar.xz")) |
83 | (sha256 |
84 | (base32 |
85 | "11b83qazc8h0iidyj1rprnnjdivj1lpphvpa08y53n42bfa36pn5")))) |
86 | (build-system gnu-build-system) |
87 | (arguments |
88 | `(#:configure-flags |
89 | (list "--disable-update-checker" |
90 | "--without-portaudio" |
91 | "--without-openal" |
92 | "--without-oss") |
93 | ;; tests require busted, a lua package we don't have yet |
94 | #:tests? #f |
95 | #:phases |
96 | (modify-phases %standard-phases |
97 | (add-before 'configure 'fix-ldflags |
98 | (lambda _ |
99 | (setenv "LDFLAGS" "-pthread")))))) |
100 | (inputs |
101 | `(("boost" ,boost) |
102 | ("desktop-file-utils" ,desktop-file-utils) |
103 | ("ffms2" ,ffms2) |
104 | ("fftw" ,fftw) |
105 | ("hunspell" ,hunspell) |
106 | ("mesa" ,mesa) |
107 | ("libass" ,libass) |
108 | ("alsa-lib" ,alsa-lib) |
109 | ("pulseaudio" ,pulseaudio) |
110 | ("libx11" ,libx11) |
111 | ("freetype" ,freetype) |
112 | ("wxwidgets-gtk2" ,wxwidgets-gtk2))) |
113 | (native-inputs |
114 | `(("intltool" ,intltool) |
115 | ("pkg-config" ,pkg-config))) |
116 | (home-page "http://www.aegisub.org/") |
117 | (synopsis "Subtitle engine") |
118 | (description |
119 | "Aegisub is a tool for creating and modifying subtitles. Aegisub makes |
120 | it quick and easy to time subtitles to audio, and features many powerful |
121 | tools for styling them, including a built-in real-time video preview.") |
122 | (license (list license:bsd-3 ; the package is licensed under the bsd-3, except |
123 | license:mpl1.1 ; for vendor/universalchardet under the mpl1.1 |
124 | license:expat)))) ; and src/gl that is under a license similar |
125 | ; the the Expat license, with a rewording (Software -> Materials). (called MIT |
126 | ; by upstream). See https://github.com/Aegisub/Aegisub/blob/master/LICENCE |
127 | ; src/MatroskaParser.(c|h) is under bsd-3 with permission from the author |
128 | |
129 | (define-public gssdp |
130 | (package |
131 | (name "gssdp") |
132 | (version "1.0.2") |
133 | (source (origin |
134 | (method url-fetch) |
135 | (uri (string-append "https://download.gnome.org/sources/gssdp/" |
136 | (version-major+minor version) "/gssdp-" |
137 | version ".tar.xz")) |
138 | (sha256 |
139 | (base32 |
140 | "1p1m2m3ndzr2whipqw4vfb6s6ia0g7rnzzc4pnq8b8g1qw4prqd1")))) |
141 | (build-system gnu-build-system) |
142 | (home-page "") |
143 | (inputs |
144 | `(("util-linux" ,util-linux) |
145 | ("glib" ,glib) |
146 | ("libsoup" ,libsoup))) |
147 | (native-inputs |
148 | `(("gobject-introspection" ,gobject-introspection) |
149 | ("pkg-config" ,pkg-config) |
150 | ("vala" ,vala))) |
151 | (synopsis "") |
152 | (description "") |
153 | (license license:lgpl2.0))) |
154 | |
155 | (define-public gupnp |
156 | (package |
157 | (name "gupnp") |
158 | (version "1.0.2") |
159 | (source (origin |
160 | (method url-fetch) |
161 | (uri (string-append "https://download.gnome.org/sources/gupnp/" |
162 | (version-major+minor version) "/gupnp-" |
163 | version ".tar.xz")) |
164 | (sha256 |
165 | (base32 |
166 | "043nqxlj030a3wvd6x4c9z8fjarjjjsl2pjarl0nn70ig6kzswsi")))) |
167 | (build-system gnu-build-system) |
168 | (inputs |
169 | `(("util-linux" ,util-linux) |
170 | ("glib" ,glib) |
171 | ("gssdp" ,gssdp) |
172 | ("libsoup" ,libsoup) |
173 | ("libxml" ,libxml2))) |
174 | (native-inputs |
175 | `(("gobject-introspection" ,gobject-introspection) |
176 | ("pkg-config" ,pkg-config) |
177 | ("vala" ,vala))) |
178 | (home-page "") |
179 | (synopsis "") |
180 | (description "") |
181 | (license license:lgpl2.0))) |
182 | |
183 | (define-public gupnp-av |
184 | (package |
185 | (name "gupnp-av") |
186 | (version "0.12.9") |
187 | (source (origin |
188 | (method url-fetch) |
189 | (uri (string-append "https://download.gnome.org/sources/gupnp-av/" |
190 | (version-major+minor version) "/gupnp-av-" |
191 | version ".tar.xz")) |
192 | (sha256 |
193 | (base32 |
194 | "0iylhn722rlmnzrmwx452a9ag42v8nk9mrcfdjv9f6ka4m4n9ib2")))) |
195 | (build-system gnu-build-system) |
196 | (inputs |
197 | `(("gssdp" ,gssdp) |
198 | ("gupnp" ,gupnp) |
199 | ("glib" ,glib) |
200 | ("libsoup" ,libsoup) |
201 | ("libxml" ,libxml2) |
202 | ("util-linux" ,util-linux))) |
203 | (native-inputs |
204 | `(("gobject-introspection" ,gobject-introspection) |
205 | ("pkg-config" ,pkg-config) |
206 | ("vala" ,vala))) |
207 | (home-page "") |
208 | (synopsis "") |
209 | (description "") |
210 | (license license:lgpl2.0))) |
211 | |
212 | (define-public gupnp-dlna |
213 | (package |
214 | (name "gupnp-dlna") |
215 | (version "0.10.5") |
216 | (source (origin |
217 | (method url-fetch) |
218 | (uri (string-append "https://download.gnome.org/sources/gupnp-dlna/" |
219 | (version-major+minor version) "/gupnp-dlna-" |
220 | version ".tar.xz")) |
221 | (sha256 |
222 | (base32 |
223 | "0spzd2saax7w776p5laixdam6d7smyynr9qszhbmq7f14y13cghj")))) |
224 | (build-system gnu-build-system) |
225 | (inputs |
226 | `(("gssdp" ,gssdp) |
227 | ("gupnp" ,gupnp) |
228 | ("glib" ,glib) |
229 | ("libsoup" ,libsoup) |
230 | ("libxml" ,libxml2) |
231 | ("util-linux" ,util-linux))) |
232 | (native-inputs |
233 | `(("gobject-introspection" ,gobject-introspection) |
234 | ("pkg-config" ,pkg-config) |
235 | ("vala" ,vala))) |
236 | (home-page "") |
237 | (synopsis "") |
238 | (description "") |
239 | (license license:lgpl2.0))) |
240 | |
241 | (define-public gupnp-tools |
242 | (package |
243 | (name "gupnp-tools") |
244 | (version "0.8.13") |
245 | (source (origin |
246 | (method url-fetch) |
247 | (uri (string-append "https://download.gnome.org/sources/gupnp-tools/" |
248 | (version-major+minor version) "/gupnp-tools-" |
249 | version ".tar.xz")) |
250 | (sha256 |
251 | (base32 |
252 | "1vbr4iqi7nl7kq982agd3liw10gx67s95idd0pjy5h1jsnwyqgda")))) |
253 | (build-system glib-or-gtk-build-system) |
254 | (inputs |
255 | `(("gssdp" ,gssdp) |
256 | ("gupnp" ,gupnp) |
257 | ("gupnp-av" ,gupnp-av) |
258 | ("gtk3" ,gtk+) |
259 | ("gtksourceview" ,gtksourceview) |
260 | ("libsoup" ,libsoup) |
261 | ("libxml" ,libxml2) |
262 | ("util-linux" ,util-linux))) |
263 | (native-inputs |
264 | `(("gobject-introspection" ,gobject-introspection) |
265 | ("pkg-config" ,pkg-config) |
266 | ("vala" ,vala))) |
267 | (home-page "") |
268 | (synopsis "") |
269 | (description "") |
270 | (license license:lgpl2.0))) |
271 |