gnu: dealii: Update to 8.5.0.
[jackhill/guix/guix.git] / gnu / packages / mp3.scm
CommitLineData
d464e725
AE
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
d5ff67f4 3;;; Copyright © 2014, 2015, 2017 Ludovic Courtès <ludo@gnu.org>
c0eac5a8 4;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
d1cd67af 5;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
d464e725
AE
6;;;
7;;; This file is part of GNU Guix.
8;;;
9;;; GNU Guix is free software; you can redistribute it and/or modify it
10;;; under the terms of the GNU General Public License as published by
11;;; the Free Software Foundation; either version 3 of the License, or (at
12;;; your option) any later version.
13;;;
14;;; GNU Guix is distributed in the hope that it will be useful, but
15;;; WITHOUT ANY WARRANTY; without even the implied warranty of
16;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17;;; GNU General Public License for more details.
18;;;
19;;; You should have received a copy of the GNU General Public License
20;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
21
22(define-module (gnu packages mp3)
b5b73a82 23 #:use-module ((guix licenses) #:prefix license:)
25352fe1 24 #:use-module (gnu packages)
d464e725 25 #:use-module (gnu packages autotools)
194782a8
MW
26 #:use-module (gnu packages base)
27 #:use-module (gnu packages gcc)
9518fde1 28 #:use-module (gnu packages boost)
25352fe1 29 #:use-module (gnu packages cdrom)
8cc9c0da 30 #:use-module (gnu packages compression)
54ff0b7d 31 #:use-module (gnu packages gettext)
25352fe1 32 #:use-module (gnu packages ghostscript)
68ff528c 33 #:use-module (gnu packages ncurses)
25352fe1
AE
34 #:use-module (gnu packages glib)
35 #:use-module (gnu packages gtk)
c23e9e48
AE
36 #:use-module (gnu packages pcre)
37 #:use-module (gnu packages pkg-config)
13ef3e99 38 #:use-module (gnu packages python)
54ff0b7d 39 #:use-module (gnu packages xiph)
1bdb591b 40 #:use-module (gnu packages pulseaudio)
a82bec4e 41 #:use-module (gnu packages linux) ;alsa-lib
9518fde1 42 #:use-module (gnu packages video) ;ffmpeg
d464e725
AE
43 #:use-module (guix packages)
44 #:use-module (guix download)
086518dd 45 #:use-module (guix build-system gnu)
13ef3e99 46 #:use-module (guix build-system python)
086518dd 47 #:use-module (guix build-system cmake))
d464e725
AE
48
49(define-public libmad
50 (package
51 (name "libmad")
52 (version "0.15.1b")
53 (source (origin
54 (method url-fetch)
55 (uri (string-append "mirror://sourceforge/mad/libmad/"
56 version "/libmad-"
57 version ".tar.gz"))
58 (sha256
59 (base32
dd863f1f 60 "14460zhacxhswnzb36qfpd1f2wbk10qvksvm6wyq5hpvdgnw7ymv"))
fc1adab1
AK
61 (patches (search-patches "libmad-armv7-thumb-pt1.patch"
62 "libmad-armv7-thumb-pt2.patch"
63 "libmad-frame-length.patch"
64 "libmad-mips-newgcc.patch"))))
d464e725
AE
65 (build-system gnu-build-system)
66 (arguments
67 `(#:phases
d4bf49b1
EB
68 (alist-cons-before
69 'configure 'remove-unsupported-gcc-flags
70 (lambda _
71 ;; remove option that is not supported by gcc any more
72 (substitute* "configure" ((" -fforce-mem") "")))
d464e725 73 %standard-phases)))
35b9e423 74 (synopsis "MPEG audio decoder")
d464e725
AE
75 (description
76 "MAD (MPEG Audio Decoder) supports MPEG-1 and the MPEG-2 extension to
77lower sampling frequencies, as well as the de facto MPEG 2.5 format.
78All three audio layers — Layer I, Layer II, and Layer III (i.e. MP3) — are
79fully implemented.
80
81This package contains the library.")
82 (license license:gpl2+)
83 (home-page "http://www.underbit.com/products/mad/")))
84
8cc9c0da
AE
85(define-public libid3tag
86 (package
87 (name "libid3tag")
88 (version "0.15.1b")
89 (source (origin
90 (method url-fetch)
91 (uri (string-append "mirror://sourceforge/mad/libid3tag/"
92 version "/libid3tag-"
93 version ".tar.gz"))
94 (sha256
95 (base32
96 "0lb1w883dc46dajbdvnia5870brl5lvnlk7g7y58y9wpg5p4znk3"))))
97 (build-system gnu-build-system)
98 (inputs `(("zlib" ,zlib)))
35b9e423 99 (synopsis "Library for reading ID3 tags")
8cc9c0da 100 (description
35b9e423 101 "Libid3tag is a library for reading ID3 tags, both ID3v1 and the various
e881752c 102versions of ID3v2.")
8cc9c0da
AE
103 (license license:gpl2+)
104 (home-page "http://www.underbit.com/products/mad/")))
105
fbd84457
AE
106(define-public id3lib
107 (package
108 (name "id3lib")
109 (version "3.8.3")
110 (source (origin
111 (method url-fetch)
112 (uri (string-append "mirror://sourceforge/id3lib/id3lib/"
1f521b70 113 version "/id3lib-" version ".tar.gz"))
fbd84457
AE
114 (sha256
115 (base32
1f521b70
EF
116 "0yfhqwk0w8q2hyv1jib1008jvzmwlpsxvc8qjllhna6p1hycqj97"))
117 (patches (search-patches "id3lib-CVE-2007-4460.patch"))))
fbd84457
AE
118 (build-system gnu-build-system)
119 (arguments
120 `(#:phases
d4bf49b1
EB
121 (alist-cons-before
122 'configure 'apply-patches
123 ;; TODO: create a patch for origin instead?
124 (lambda _
125 (substitute* "configure"
126 (("iomanip.h") "")) ; drop check for unused header
127 ;; see http://www.linuxfromscratch.org/patches/downloads/id3lib/
128 (substitute* "include/id3/id3lib_strings.h"
129 (("include <string>") "include <cstring>\n#include <string>"))
130 (substitute* "include/id3/writers.h"
131 (("//\\#include <string.h>") "#include <cstring>"))
132 (substitute* "examples/test_io.cpp"
133 (("dami;") "dami;\nusing namespace std;")))
fbd84457 134 %standard-phases)))
35b9e423 135 (synopsis "Library for reading, writing, and manipulating ID3v1 and ID3v2 tags")
fbd84457 136 (description
35b9e423
EB
137 "Id3lib is a cross-platform software development library for reading,
138writing, and manipulating ID3v1 and ID3v2 tags. It is an on-going project
fbd84457
AE
139whose primary goals are full compliance with the ID3v2 standard, portability
140across several platforms, and providing a powerful and feature-rich API with
141a highly stable and efficient implementation.")
142 (license license:lgpl2.0+)
143 (home-page "http://id3lib.sourceforge.net/")))
144
086518dd
LC
145(define-public taglib
146 (package
147 (name "taglib")
b1721969 148 (version "1.10")
086518dd
LC
149 (source (origin
150 (method url-fetch)
151 (uri (string-append "http://taglib.github.io/releases/taglib-"
152 version ".tar.gz"))
153 (sha256
154 (base32
b1721969 155 "1alv6vp72p0x9i9yscmz2a71anjwqy53y9pbcbqxvc1c0i82vhr4"))))
086518dd
LC
156 (build-system cmake-build-system)
157 (arguments '(#:tests? #f)) ;no 'test' target
158 (inputs `(("zlib" ,zlib)))
159 (home-page "http://developer.kde.org/~wheeler/taglib.html")
160 (synopsis "Library to access audio file meta-data")
161 (description
162 "TagLib is a C++ library for reading and editing the meta-data of several
163popular audio formats. Currently it supports both ID3v1 and ID3v2 for MP3
164files, Ogg Vorbis comments and ID3 tags and Vorbis comments in FLAC, MPC,
165Speex, WavPack TrueAudio, WAV, AIFF, MP4 and ASF files.")
166
167 ;; Dual-licensed: user may choose between LGPLv2.1 or MPLv1.1.
168 (license (list license:lgpl2.1 license:mpl1.1))))
169
68ff528c
LC
170(define-public mp3info
171 (package
172 (name "mp3info")
173 (version "0.8.5a")
174 (source (origin
175 (method url-fetch)
176 (uri (string-append
f8f8897f
AV
177 "http://ibiblio.org"
178 "/pub/linux/apps/sound/mp3-utils/mp3info/mp3info-"
68ff528c
LC
179 version ".tgz"))
180 (sha256
181 (base32
182 "042f1czcs9n2sbqvg4rsvfwlqib2gk976mfa2kxlfjghx5laqf04"))
183 (modules '((guix build utils)))
184 (snippet
185 '(substitute* "Makefile"
186 (("/bin/rm") "rm")
187 (("/usr/bin/install") "install")
188 (("man/man1") "share/man/man1")))))
189 (build-system gnu-build-system)
190 (outputs '("out" "gui")) ;GTK+ interface in "gui"
191 (arguments
192 '(#:phases (alist-replace
193 'configure
194 (lambda* (#:key outputs #:allow-other-keys)
195 (let ((out (assoc-ref outputs "out")))
196 (substitute* "Makefile"
197 (("prefix=.*")
198 (string-append "prefix := " out "\n")))))
199 (alist-cons-before
200 'install 'pre-install
201 (lambda* (#:key outputs #:allow-other-keys)
202 (let ((out (assoc-ref outputs "out")))
203 (mkdir-p (string-append out "/bin"))
204 (mkdir-p (string-append out "/share/man/man1"))))
205 (alist-cons-after
206 'install 'post-install
207 (lambda* (#:key outputs #:allow-other-keys)
208 ;; Move the GTK+ interface to "gui".
209 (let ((out (assoc-ref outputs "out"))
210 (gui (assoc-ref outputs "gui")))
211 (mkdir-p (string-append gui "/bin"))
212 (rename-file (string-append out "/bin/gmp3info")
213 (string-append gui "/bin/gmp3info"))))
214 %standard-phases)))
215 #:tests? #f))
216 (native-inputs
217 `(("pkg-config" ,pkg-config)))
218 (inputs
219 `(("gtk+" ,gtk+-2)
220 ("ncurses" ,ncurses)))
221 (home-page "http://www.ibiblio.org/mp3info/")
222 (synopsis "MP3 technical info viewer and ID3 1.x tag editor")
223 (description
224 "MP3Info is a little utility used to read and modify the ID3 tags of MP3
e881752c 225files. MP3Info can also display various technical aspects of an MP3 file
68ff528c
LC
226including playing time, bit-rate, sampling frequency and other attributes in a
227pre-defined or user-specifiable output format.")
228 (license license:gpl2+)))
229
c23e9e48
AE
230(define-public libmp3splt
231 (package
232 (name "libmp3splt")
67a8298c 233 (version "0.9.2")
c23e9e48
AE
234 (source (origin
235 (method url-fetch)
236 (uri (string-append "mirror://sourceforge/mp3splt/libmp3splt/"
237 version "/libmp3splt-"
238 version ".tar.gz"))
239 (sha256
240 (base32
67a8298c 241 "1p1mn2hsmj5cp40fnc8g1yfvk72p8pjxi866gjdkgjsqrr7xdvih"))))
c23e9e48
AE
242 (build-system gnu-build-system)
243 (inputs `(("libid3tag" ,libid3tag)
244 ("libmad" ,libmad)
245 ("libogg" ,libogg)
3246cc91 246 ("libltdl" ,libltdl)
e881752c 247 ("libvorbis" ,libvorbis)
c23e9e48 248 ("pcre" ,pcre)))
c4c4cc05
JD
249 (native-inputs
250 `(("pkg-config" ,pkg-config)))
35b9e423 251 (synopsis "Library for splitting mp3 and ogg vorbis files")
c23e9e48
AE
252 (description
253 "Mp3splt is a utility to split mp3 and ogg vorbis files selecting a begin
35b9e423 254and an end time position, without decoding. For splitting an album, one may
e881752c 255select split points and file names manually or obtain them automatically from
35b9e423 256CDDB (internet or a local file) or from .cue files. The tool also supports
c23e9e48
AE
257automatic silence split, that can be used also to adjust cddb/cue splitpoints.
258
259This package contains the library.")
260 (license license:gpl2+)
261 (home-page "http://mp3splt.sourceforge.net/mp3splt_page/home.php")))
262
263(define-public mp3splt
264 (package
265 (name "mp3splt")
2041f901 266 (version "2.6.2")
c23e9e48
AE
267 (source (origin
268 (method url-fetch)
269 (uri (string-append "mirror://sourceforge/mp3splt/mp3splt/"
270 version "/mp3splt-"
271 version ".tar.gz"))
272 (sha256
273 (base32
2041f901 274 "1aiv20gypb6r84qabz8gblk8vi42cg3x333vk2pi3fyqvl82phry"))))
c23e9e48 275 (build-system gnu-build-system)
2041f901 276 (native-inputs `(("pkg-config" ,pkg-config)))
c23e9e48 277 (inputs `(("libmp3splt" ,libmp3splt)))
e881752c 278 (synopsis "Utility for splitting mp3 and ogg vorbis files")
c23e9e48
AE
279 (description
280 "Mp3splt is a utility to split mp3 and ogg vorbis files selecting a begin
35b9e423 281and an end time position, without decoding. For splitting an album, one may
e881752c 282select split points and file names manually or obtain them automatically from
35b9e423 283CDDB (internet or a local file) or from .cue files. The tool also supports
c23e9e48
AE
284automatic silence split, that can be used also to adjust cddb/cue splitpoints.
285
286This package contains the binary.")
287 (license license:gpl2+)
288 (home-page "http://mp3splt.sourceforge.net/mp3splt_page/home.php")))
289
1bdb591b
LC
290(define-public mpg123
291 (package
292 (name "mpg123")
03776ebd 293 (version "1.25.4")
1bdb591b
LC
294 (source (origin
295 (method url-fetch)
d5ff67f4
LC
296 (uri (list (string-append "mirror://sourceforge/mpg123/mpg123/"
297 version "/mpg123-" version ".tar.bz2")
298 (string-append
299 "http://www.mpg123.org/download/mpg123-"
300 version ".tar.bz2")))
1bdb591b
LC
301 (sha256
302 (base32
03776ebd 303 "1rxknrnl3ji5hi5rbckpzhbl1k5r8i53kcys4xdgg0xbi8765dfd"))))
1bdb591b
LC
304 (build-system gnu-build-system)
305 (arguments '(#:configure-flags '("--with-default-audio=pulse")))
306 (native-inputs `(("pkg-config" ,pkg-config)))
307 (inputs `(("pulseaudio" ,pulseaudio)
308 ("alsa-lib" ,alsa-lib)))
309 (home-page "http://www.mpg123.org/")
310 (synopsis "Console MP3 player and decoder library")
311 (description
35b9e423 312 "Mpg123 is a real time MPEG 1.0/2.0/2.5 audio player/decoder for layers
1bdb591b
LC
3131,2 and 3 (MPEG 1.0 layer 3 aka MP3 most commonly tested). It comes with a
314command-line tool as well as a C library, libmpg123.")
315 (license license:lgpl2.1)))
316
0a56fadb
LC
317(define-public mpg321
318 (package
319 (name "mpg321")
5ed7f28d 320 (version "0.3.2")
0a56fadb
LC
321 (source (origin
322 (method url-fetch)
de67e922 323 (uri (string-append "mirror://sourceforge/mpg321/mpg321/"
0a56fadb
LC
324 version "/mpg321-" version ".tar.gz"))
325 (sha256
326 (base32
5ed7f28d 327 "0ki8mh76bbmdh77qsiw682dvi8y468yhbdabqwg05igmwc1wqvq5"))))
0a56fadb
LC
328 (build-system gnu-build-system)
329 (arguments '(#:configure-flags '("--disable-alsa")))
330 (inputs
331 `(("zlib" ,zlib)
332 ("libmad" ,libmad)
333 ("libid3tag" ,libid3tag)
334 ("libao" ,ao)))
335 (home-page "http://mpg321.sourceforge.net/")
336 (synopsis "Command-line MP3 player")
35b9e423 337 (description "Mpg321 is a command-line mp3 player. mpg321 is used for
0a56fadb
LC
338frontends, as an mp3 player and as an mp3 to wave file decoder (primarily for
339use with CD-recording software).")
340 (license license:gpl2)))
2ae92cbc
AE
341
342(define-public lame
343 (package
344 (name "lame")
345 (version "3.99.5")
346 (source (origin
347 (method url-fetch)
348 (uri (string-append "mirror://sourceforge/lame/lame/3.99/lame-"
349 version ".tar.gz"))
350 (sha256
351 (base32
352 "1zr3kadv35ii6liia0bpfgxpag27xcivp571ybckpbz4b10nnd14"))))
353 (build-system gnu-build-system)
194782a8
MW
354 ;; XXX FIXME: Use gcc-4.8 on i686 to work around
355 ;; <http://bugs.gnu.org/20856>.
356 (native-inputs (if (and (not (%current-target-system))
357 (string-prefix? "i686-" (%current-system)))
358 `(("gcc" ,(canonical-package gcc-4.8)))
359 '()))
2ae92cbc
AE
360 (home-page "http://lame.sourceforge.net/")
361 (synopsis "MPEG Audio Layer III (MP3) encoder")
362 (description "LAME is a high quality MPEG Audio Layer III (MP3) encoder.")
363 (license license:lgpl2.0)))
25352fe1
AE
364
365(define-public ripperx
366 (package
367 (name "ripperx")
d0dfc066 368 (version "2.8.0")
25352fe1
AE
369 (source (origin
370 (method url-fetch)
371 (uri (string-append "mirror://sourceforge/ripperx/ripperx/"
d0dfc066
AE
372 version "/ripperx-"
373 version ".tar.bz2"))
25352fe1
AE
374 (sha256
375 (base32
d0dfc066 376 "1ss3c1a5hx6c99q1cryxg0jhbnbdj6ga9xyz0dzlz9qhzg5qswfs"))
fc1adab1 377 (patches (search-patches "ripperx-missing-file.patch"))))
25352fe1
AE
378 (build-system gnu-build-system)
379 (propagated-inputs
380 `(("gs-fonts" ,gs-fonts)
381 ("cdparanoia" ,cdparanoia)
382 ("flac" ,flac)
383 ("lame" ,lame)
384 ("vorbis-tools" ,vorbis-tools)))
385 (inputs
01eafd38 386 `(("glib" ,glib)
8b0275b6 387 ("gtk+" ,gtk+-2)
d0dfc066
AE
388 ("id3lib" ,id3lib)
389 ("taglib" ,taglib)))
c4c4cc05
JD
390 (native-inputs
391 `(("pkg-config" ,pkg-config)))
25352fe1
AE
392 (synopsis "GTK program to rip and encode CD audio tracks")
393 (description
394 "RipperX is a GTK program to rip CD audio tracks and encode them to the
35b9e423
EB
395Ogg, MP3, or FLAC formats. Its goal is to be easy to use, requiring only
396a few mouse clicks to convert an entire album. It supports CDDB lookups
25352fe1
AE
397for album and track information.")
398 (license license:gpl2)
3b3b60d0 399 (home-page "https://sourceforge.net/projects/ripperx/")))
8f0fd238
LC
400
401(define-public libmpcdec
402 (package
403 (name "libmpcdec")
404 (version "1.2.6")
405 (source (origin
406 (method url-fetch)
407 (uri (string-append
408 "http://files.musepack.net/source/libmpcdec-"
409 version ".tar.bz2"))
410 (sha256
411 (base32
412 "1a0jdyga1zfi4wgkg3905y6inghy3s4xfs5m4x7pal08m0llkmab"))))
413 (build-system gnu-build-system)
414 (synopsis "Decoding library for the Musepack audio format")
415 (description
416 "This library supports decoding of the Musepack (MPC) audio compression
417format.")
418 (license license:bsd-3)
419 (home-page "http://musepack.net")))
420
421(define-public mpc123
422 (package
423 (name "mpc123")
424 (version "0.2.4")
425 (source (origin
426 (method url-fetch)
d1cd67af
EF
427 (uri (list (string-append "mirror://sourceforge/mpc123/version%20"
428 version "/mpc123-" version ".tar.gz")
429 (string-append "mirror://debian/pool/main/m/" name
430 "/" name "_" version ".orig.tar.gz")))
8f0fd238
LC
431 (sha256
432 (base32
86d07a55 433 "0sf4pns0245009z6mbxpx7kqy4kwl69bc95wz9v23wgappsvxgy1"))
fc1adab1 434 (patches (search-patches "mpc123-initialize-ao.patch"))))
8f0fd238
LC
435 (build-system gnu-build-system)
436 (arguments
1a847b70
EF
437 '(#:phases
438 (modify-phases %standard-phases
439 (replace 'configure
440 (lambda _
441 (substitute* "Makefile"
442 (("CC[[:blank:]]*:=.*")
443 "CC := gcc\n"))))
444 (replace 'install
445 (lambda* (#:key outputs #:allow-other-keys)
446 (let* ((out (assoc-ref outputs "out"))
447 (bin (string-append out "/bin")))
1a847b70 448 (install-file "mpc123" bin)))))
8f0fd238 449 #:tests? #f))
8f0fd238 450 (native-inputs
b94a6ca0 451 `(("gettext" ,gettext-minimal)))
8f0fd238
LC
452 (inputs
453 `(("libao" ,ao)
454 ("libmpcdec" ,libmpcdec)))
d1cd67af 455 (home-page "https://github.com/bucciarati/mpc123")
8f0fd238
LC
456 (synopsis "Audio player for Musepack-formatted files")
457 (description
35b9e423 458 "Mpc123 is a command-line player for files in the Musepack audio
e881752c 459compression format (.mpc files).")
8f0fd238 460 (license license:gpl2+)))
13ef3e99
LF
461
462(define-public eyed3
463 (package
464 (name "eyed3")
33485fa9 465 (version "0.8")
13ef3e99
LF
466 (source (origin
467 (method url-fetch)
468 (uri (string-append
469 "http://eyed3.nicfit.net/releases/eyeD3-"
470 version ".tar.gz"))
471 (sha256
472 (base32
33485fa9 473 "1dcswb0f6w3b05s1v43pq8fmavkd5g88ysndn9160wlaa1v9n40h"))))
13ef3e99
LF
474 (build-system python-build-system)
475 (arguments
33485fa9
TD
476 `(#:tests? #f)) ; the required test data contains copyrighted material.
477 (propagated-inputs
478 `(("python-six" ,python-six)
479 ("python-grako" ,python-grako)))
13ef3e99
LF
480 (synopsis "MP3 tag ID3 metadata editor")
481 (description "eyeD3 is a Python tool for working with audio files,
482specifically mp3 files containing ID3 metadata (i.e. song info). It provides a
483command-line tool (eyeD3) and a Python library (import eyed3) that can be used
484to write your own applications or plugins that are callable from the
485command-line tool.")
486 (home-page "http://eyed3.nicfit.net/")
487 (license license:gpl2+)))
9518fde1
HG
488
489(define-public chromaprint
490 (package
491 (name "chromaprint")
492 (version "1.3.2")
493 (source (origin
494 (method url-fetch)
495 (uri (string-append
496 "https://bitbucket.org/acoustid/chromaprint/downloads/"
497 "chromaprint-" version ".tar.gz"))
498 (sha256
499 (base32 "0lln8dh33gslb9cbmd1hcv33pr6jxdwipd8m8gbsyhksiq6r1by3"))))
500 (build-system cmake-build-system)
501 (arguments
502 `(#:tests? #f ; tests require googletest *sources*
503 ;;#:configure-flags '("-DBUILD_TESTS=ON") ; for building the tests
504 #:test-target "check"))
505 (inputs
506 ;; requires one of FFmpeg (prefered), FFTW3 or vDSP
507 ;; use the same ffmpeg version as for acoustid-fingerprinter
508 `(("ffmpeg" ,ffmpeg)
509 ("boots" ,boost)))
510 (home-page "https://acoustid.org/chromaprint")
511 (synopsis "Audio fingerprinting library")
512 (description "Chromaprint is a library for calculating audio
513fingerprints which are used by the Acoustid service. Its main purpose
514is to provide an accurate identifier for record tracks.")
515 (license license:lgpl2.1+)))