Commit | Line | Data |
---|---|---|
6a06172b | 1 | ;;; GNU Guix --- Functional package management for GNU |
707d3e24 | 2 | ;;; Copyright © 2013, 2014 Andreas Enge <andreas@enge.fr> |
1f5ec939 | 3 | ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org> |
15e82fb2 | 4 | ;;; Copyright © 2013 David Thompson <dthompson2@worcester.edu> |
a7f904fd | 5 | ;;; Copyright © 2014 Sree Harsha Totakura <sreeharsha@totakura.in> |
c9a010db | 6 | ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org> |
6a06172b AE |
7 | ;;; |
8 | ;;; This file is part of GNU Guix. | |
9 | ;;; | |
10 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
11 | ;;; under the terms of the GNU General Public License as published by | |
12 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
13 | ;;; your option) any later version. | |
14 | ;;; | |
15 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
16 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 | ;;; GNU General Public License for more details. | |
19 | ;;; | |
20 | ;;; You should have received a copy of the GNU General Public License | |
21 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
22 | ||
54ff0b7d | 23 | (define-module (gnu packages xiph) |
dc2e4b0e AE |
24 | #:use-module (gnu packages) |
25 | #:use-module (gnu packages bison) | |
26 | #:use-module (gnu packages compression) | |
1f73d3b4 | 27 | #:use-module (gnu packages curl) |
707d3e24 | 28 | #:use-module (gnu packages doxygen) |
e55354b8 | 29 | #:use-module (gnu packages image) |
76e38f0d | 30 | #:use-module (gnu packages pkg-config) |
dc2e4b0e | 31 | #:use-module (gnu packages python) |
ba04571a | 32 | #:use-module (gnu packages linux) |
5ccca004 | 33 | #:use-module (gnu packages pulseaudio) |
dc2e4b0e AE |
34 | #:use-module ((guix licenses) |
35 | #:renamer (symbol-prefix-proc 'license:)) | |
6a06172b AE |
36 | #:use-module (guix packages) |
37 | #:use-module (guix download) | |
cfc8261c LC |
38 | #:use-module (guix build-system gnu) |
39 | #:export (libogg | |
40 | libvorbis | |
15e82fb2 | 41 | libtheora |
cfc8261c LC |
42 | speex |
43 | ao | |
44 | flac | |
45 | libkate | |
a7f904fd SHT |
46 | vorbis-tools |
47 | opus)) | |
6a06172b | 48 | |
cfc8261c | 49 | (define libogg |
6a06172b AE |
50 | (package |
51 | (name "libogg") | |
52 | (version "1.3.0") | |
53 | (source (origin | |
54 | (method url-fetch) | |
55 | (uri (string-append "http://downloads.xiph.org/releases/ogg/libogg-" | |
56 | version ".tar.xz")) | |
57 | (sha256 | |
58 | (base32 | |
59 | "0jy79ffkl34vycnwfsj4svqsdg1lwy2l1rr49y8r4d44kh12a5r3")))) | |
60 | (build-system gnu-build-system) | |
61 | (synopsis "libogg, a library for manipulating the ogg multimedia format") | |
62 | (description | |
63 | "The libogg library allows to manipulate the ogg multimedia container | |
64 | format, which encapsulates raw compressed data and allows the interleaving of | |
65 | audio and video data. In addition to encapsulation and interleaving of | |
66 | multiple data streams, ogg provides packet framing, error detection, and | |
67 | periodic timestamps for seeking.") | |
dc2e4b0e AE |
68 | (license (license:bsd-style "file://COPYING" |
69 | "See COPYING in the distribution.")) | |
6a06172b AE |
70 | (home-page "http://xiph.org/ogg/"))) |
71 | ||
cfc8261c | 72 | (define libvorbis |
6a06172b AE |
73 | (package |
74 | (name "libvorbis") | |
2af4937e | 75 | (version "1.3.4") |
6a06172b AE |
76 | (source (origin |
77 | (method url-fetch) | |
78 | (uri (string-append "http://downloads.xiph.org/releases/vorbis/libvorbis-" | |
79 | version ".tar.xz")) | |
80 | (sha256 | |
81 | (base32 | |
2af4937e | 82 | "0wpk87jnhngcl3nc5i39flkycx1sjzilx8jjx4zc4p8r55ylj19g")))) |
6a06172b | 83 | (build-system gnu-build-system) |
bad312e3 | 84 | (propagated-inputs `(("libogg" ,libogg))) |
f0cfe3c4 EB |
85 | (arguments `(#:configure-flags '("LDFLAGS=-lm") |
86 | #:parallel-tests? #f)) | |
6a06172b AE |
87 | (synopsis "libvorbis, a library implementing the vorbis audio format") |
88 | (description | |
89 | "The libvorbis library implements the ogg vorbis audio format, | |
90 | a fully open, non-proprietary, patent-and-royalty-free, general-purpose | |
91 | compressed audio format for mid to high quality (8kHz-48.0kHz, 16+ bit, | |
92 | polyphonic) audio and music at fixed and variable bitrates from 16 to | |
93 | 128 kbps/channel.") | |
dc2e4b0e AE |
94 | (license (license:bsd-style "file://COPYING" |
95 | "See COPYING in the distribution.")) | |
6a06172b AE |
96 | (home-page "http://xiph.org/vorbis/"))) |
97 | ||
15e82fb2 DT |
98 | (define libtheora |
99 | (package | |
100 | (name "libtheora") | |
101 | (version "1.1.1") | |
102 | (source (origin | |
103 | (method url-fetch) | |
104 | (uri (string-append "http://downloads.xiph.org/releases/theora/libtheora-" | |
105 | version ".tar.xz")) | |
106 | (sha256 | |
107 | (base32 | |
46acd054 MW |
108 | "0q8wark9ribij57dciym5vdikg2464p8q2mgqvfb78ksjh4s8vgk")) |
109 | (patches (list (search-patch "libtheora-config-guess.patch"))))) | |
15e82fb2 DT |
110 | (build-system gnu-build-system) |
111 | (inputs `(("libvorbis" ,libvorbis))) | |
112 | ;; The .pc files refer to libogg. | |
113 | (propagated-inputs `(("libogg" ,libogg))) | |
114 | (synopsis "Library implementing the Theora video format") | |
115 | (description | |
116 | "The libtheora library implements the ogg theora video format, | |
117 | a fully open, non-proprietary, patent-and-royalty-free, general-purpose | |
118 | compressed video format.") | |
119 | (license license:bsd-3) | |
120 | (home-page "http://xiph.org/theora/"))) | |
121 | ||
cfc8261c | 122 | (define speex |
1f5ec939 NK |
123 | (package |
124 | (name "speex") | |
125 | (version "1.2rc1") | |
126 | (source | |
127 | (origin | |
128 | (method url-fetch) | |
129 | (uri (string-append "http://downloads.xiph.org/releases/speex/speex-" | |
130 | version ".tar.gz")) | |
131 | (sha256 | |
132 | (base32 | |
133 | "19mpkhbz3s08snvndn0h1dk2j139max6b0rr86nnsjmxazf30brl")))) | |
134 | (build-system gnu-build-system) | |
135 | (inputs `(("libogg" ,libogg))) | |
136 | (home-page "https://gnu.org/software/speex") | |
f50d2669 | 137 | (synopsis "Library for patent-free audio compression format") |
1f5ec939 | 138 | (description |
79c311b8 LC |
139 | "GNU Speex is a patent-free audio compression codec specially designed |
140 | for speech. It is well-adapted to internet applications, such as VoIP. It | |
a22dc0c4 LC |
141 | features compression of different bands in the same bitstream, intensity |
142 | stereo encoding, and voice activity detection.") | |
1f5ec939 | 143 | ;; 'src/getopt.c' is under LGPLv2+ |
dc2e4b0e AE |
144 | (license (license:bsd-style "file://COPYING" |
145 | "See COPYING in the distribution.")))) | |
1f5ec939 | 146 | |
cfc8261c | 147 | (define ao |
76e38f0d AE |
148 | (package |
149 | (name "ao") | |
150 | (version "1.1.0") | |
151 | (source | |
152 | (origin | |
153 | (method url-fetch) | |
154 | (uri (string-append "http://downloads.xiph.org/releases/ao/libao-" | |
155 | version ".tar.gz")) | |
156 | (sha256 | |
157 | (base32 | |
158 | "1m0v2y6bhr4iwsgdkc7b3y0qgpvpv1ifbxsy8n8ahsvjn6wmppi9")))) | |
159 | (build-system gnu-build-system) | |
160 | ;; FIXME: Add further backends, see the summary printed after configure. | |
5ccca004 LC |
161 | ;; XXX: Should back-ends be pushed to different outputs? For instance, |
162 | ;; "out" would include only the ALSA back-end, while "pulse" would | |
54ff0b7d | 163 | ;; contain 'lib/ao/plugins-4/libpulse.*'. |
ba04571a | 164 | (inputs `(("pkg-config" ,pkg-config) |
5ccca004 LC |
165 | ("alsa-lib" ,alsa-lib) |
166 | ("pulseaudio" ,pulseaudio))) | |
ba04571a | 167 | (synopsis "Cross platform audio library") |
76e38f0d AE |
168 | (description |
169 | "Libao is a cross-platform audio library that allows programs to | |
170 | output audio using a simple API on a wide variety of platforms. | |
171 | It currently supports: | |
172 | Null output (handy for testing without a sound device), | |
173 | WAV files, | |
174 | AU files, | |
175 | RAW files, | |
176 | OSS (Open Sound System, used on Linux and FreeBSD), | |
177 | ALSA (Advanced Linux Sound Architecture), | |
178 | aRts (Analog RealTime Synth, used by KDE), | |
179 | PulseAudio (next generation GNOME sound server), | |
180 | esd (EsounD or Enlightened Sound Daemon), | |
181 | Mac OS X, | |
182 | Windows (98 and later), | |
183 | AIX, | |
184 | Sun/NetBSD/OpenBSD, | |
185 | IRIX, | |
186 | NAS (Network Audio Server), | |
187 | RoarAudio (Modern, multi-OS, networked Sound System), | |
188 | OpenBSD's sndio.") | |
dc2e4b0e | 189 | (license license:gpl2+) |
76e38f0d AE |
190 | (home-page "http://www.xiph.org/ao/"))) |
191 | ||
cfc8261c | 192 | (define flac |
9ae7865e AE |
193 | (package |
194 | (name "flac") | |
399fdcf7 | 195 | (version "1.3.0") |
9ae7865e AE |
196 | (source (origin |
197 | (method url-fetch) | |
198 | (uri (string-append "http://downloads.xiph.org/releases/flac/flac-" | |
399fdcf7 | 199 | version ".tar.xz")) |
9ae7865e AE |
200 | (sha256 |
201 | (base32 | |
399fdcf7 | 202 | "1p0hh190kqvpkbk1bbajd81jfbmkyl4fn2i7pggk2zppq6m68bgs")))) |
9ae7865e AE |
203 | (build-system gnu-build-system) |
204 | (arguments | |
c9a010db MW |
205 | `(#:parallel-tests? #f |
206 | ;; By default, man pages are put in PREFIX/man, | |
207 | ;; but we want them in PREFIX/share/man. | |
208 | #:configure-flags (list (string-append "--mandir=" | |
209 | (assoc-ref %outputs "out") | |
210 | "/share/man")))) | |
9ae7865e | 211 | ;; FIXME: configure also looks for xmms, input could be added once it exists |
01eafd38 | 212 | (inputs `(("libogg" ,libogg))) |
9ae7865e AE |
213 | (synopsis "flac free lossless audio codec") |
214 | (description | |
215 | "FLAC stands for Free Lossless Audio Codec, an audio format that is lossless, | |
216 | meaning that audio is compressed in FLAC without any loss in quality.") | |
dc2e4b0e AE |
217 | (license (license:bsd-style "file://COPYING" |
218 | "See COPYING in the distribution.")) ; and LGPL and GPL | |
9ae7865e AE |
219 | (home-page "http://xiph.org/flac/"))) |
220 | ||
cfc8261c | 221 | (define libkate |
dc2e4b0e AE |
222 | (package |
223 | (name "libkate") | |
224 | (version "0.4.1") | |
225 | (source (origin | |
226 | (method url-fetch) | |
227 | (uri (string-append "http://libkate.googlecode.com/files/libkate-" | |
228 | version ".tar.gz")) | |
229 | (sha256 | |
230 | (base32 | |
231 | "0s3vr2nxfxlf1k75iqpp4l78yf4gil3f0v778kvlngbchvaq23n4")))) | |
232 | (build-system gnu-build-system) | |
707d3e24 AE |
233 | (native-inputs `(("doxygen" ,doxygen) |
234 | ("pkg-config" ,pkg-config))) | |
235 | ;; FIXME: Add optional input liboggz | |
dc2e4b0e AE |
236 | (inputs `(("bison" ,bison) |
237 | ("libogg" ,libogg) | |
238 | ("libpng" ,libpng) | |
707d3e24 | 239 | ("python" ,python-wrapper) |
dc2e4b0e AE |
240 | ("zlib" ,zlib))) |
241 | (synopsis "kate, a karaoke and text codec for embedding in ogg") | |
242 | (description | |
243 | "Kate is an overlay codec, originally designed for karaoke and text, | |
244 | that can be multiplixed in Ogg. Text and images can be carried by a Kate | |
245 | stream, and animated. Most of the time, this would be multiplexed with | |
246 | audio/video to carry subtitles, song lyrics (with or without karaoke data), | |
247 | etc., but doesn't have to be. | |
248 | ||
249 | Series of curves (splines, segments, etc.) may be attached to various | |
250 | properties (text position, font size, etc.) to create animated overlays. | |
251 | This allows scrolling or fading text to be defined. This can even be used | |
252 | to draw arbitrary shapes, so hand drawing can also be represented by a | |
253 | Kate stream.") | |
254 | (license license:bsd-3) | |
255 | (home-page "http://code.google.com/p/libkate/"))) | |
256 | ||
cfc8261c | 257 | (define vorbis-tools |
6a06172b AE |
258 | (package |
259 | (name "vorbis-tools") | |
260 | (version "1.4.0") | |
261 | (source (origin | |
262 | (method url-fetch) | |
263 | (uri (string-append "http://downloads.xiph.org/releases/vorbis/vorbis-tools-" | |
264 | version ".tar.gz")) | |
265 | (sha256 | |
266 | (base32 | |
267 | "1g12bnh5ah08v529y72kfdz5lhvy75iaz7f9jskyby23m9dkk2d3")))) | |
268 | (build-system gnu-build-system) | |
1f73d3b4 AE |
269 | (inputs `(("ao" ,ao) |
270 | ("curl" ,curl) | |
dc2e4b0e AE |
271 | ("flac" ,flac) |
272 | ("libkate" ,libkate) | |
1f73d3b4 | 273 | ("libogg" ,libogg) |
1f5ec939 | 274 | ("libvorbis" ,libvorbis) |
1f73d3b4 | 275 | ("pkg-config" ,pkg-config) |
1f5ec939 | 276 | ("speex" ,speex))) |
6a06172b AE |
277 | (synopsis "ogg vorbis tools") |
278 | (description | |
279 | "Ogg vorbis is a non-proprietary, patent-and-royalty-free, | |
280 | general-purpose compressed audio format. | |
281 | ||
282 | The package vorbis-tools contains | |
283 | ogg123, an ogg vorbis command line audio player; | |
284 | oggenc, the ogg vorbis encoder; | |
285 | oggdec, a simple, portable command line decoder (to wav and raw); | |
286 | ogginfo, to obtain information (tags, bitrate, length, etc.) about | |
287 | an ogg vorbis file.") | |
dc2e4b0e | 288 | (license license:gpl2) |
6a06172b | 289 | (home-page "http://xiph.org/vorbis/"))) |
a7f904fd SHT |
290 | |
291 | (define opus | |
292 | (package | |
293 | (name "opus") | |
294 | (version "1.1") | |
295 | (source (origin | |
296 | (method url-fetch) | |
297 | (uri (string-append | |
298 | "http://downloads.xiph.org/releases/opus/opus-" version | |
299 | ".tar.gz")) | |
300 | (sha256 | |
301 | (base32 | |
302 | "158xprn2086arvdib3vbbygz7z6jqkw2nci7nlywzzwallap0wmr")))) | |
303 | (build-system gnu-build-system) | |
304 | (synopsis "highly versatile audio codec") | |
305 | (description | |
306 | "Opus is a totally open, royalty-free, highly versatile audio codec. Opus | |
307 | is unmatched for interactive speech and music transmission over the Internet, | |
308 | but is also intended for storage and streaming applications. It is | |
309 | standardized by the Internet Engineering Task Force (IETF) as RFC 6716 which | |
310 | incorporated technology from Skype's SILK codec and Xiph.Org's CELT codec.") | |
311 | (license license:bsd-3) | |
312 | (home-page "http://www.opus-codec.org/"))) |