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