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> |
d1451fa0 | 7 | ;;; Copyright © 2017 Pierre Langlois <pierre.langlois@gmx.com> |
38b87a8a | 8 | ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr> |
d464e725 AE |
9 | ;;; |
10 | ;;; This file is part of GNU Guix. | |
11 | ;;; | |
12 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
13 | ;;; under the terms of the GNU General Public License as published by | |
14 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
15 | ;;; your option) any later version. | |
16 | ;;; | |
17 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
18 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20 | ;;; GNU General Public License for more details. | |
21 | ;;; | |
22 | ;;; You should have received a copy of the GNU General Public License | |
23 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
24 | ||
25 | (define-module (gnu packages mp3) | |
b5b73a82 | 26 | #:use-module ((guix licenses) #:prefix license:) |
25352fe1 | 27 | #:use-module (gnu packages) |
d464e725 | 28 | #:use-module (gnu packages autotools) |
194782a8 MW |
29 | #:use-module (gnu packages base) |
30 | #:use-module (gnu packages gcc) | |
9518fde1 | 31 | #:use-module (gnu packages boost) |
25352fe1 | 32 | #:use-module (gnu packages cdrom) |
8cc9c0da | 33 | #:use-module (gnu packages compression) |
54ff0b7d | 34 | #:use-module (gnu packages gettext) |
25352fe1 | 35 | #:use-module (gnu packages ghostscript) |
68ff528c | 36 | #:use-module (gnu packages ncurses) |
25352fe1 AE |
37 | #:use-module (gnu packages glib) |
38 | #:use-module (gnu packages gtk) | |
c23e9e48 AE |
39 | #:use-module (gnu packages pcre) |
40 | #:use-module (gnu packages pkg-config) | |
13ef3e99 | 41 | #:use-module (gnu packages python) |
54ff0b7d | 42 | #:use-module (gnu packages xiph) |
1bdb591b | 43 | #:use-module (gnu packages pulseaudio) |
a82bec4e | 44 | #:use-module (gnu packages linux) ;alsa-lib |
9518fde1 | 45 | #:use-module (gnu packages video) ;ffmpeg |
d464e725 AE |
46 | #:use-module (guix packages) |
47 | #:use-module (guix download) | |
3d679ab1 | 48 | #:use-module (guix utils) |
086518dd | 49 | #:use-module (guix build-system gnu) |
13ef3e99 | 50 | #:use-module (guix build-system python) |
086518dd | 51 | #:use-module (guix build-system cmake)) |
d464e725 AE |
52 | |
53 | (define-public libmad | |
54 | (package | |
55 | (name "libmad") | |
56 | (version "0.15.1b") | |
57 | (source (origin | |
58 | (method url-fetch) | |
59 | (uri (string-append "mirror://sourceforge/mad/libmad/" | |
60 | version "/libmad-" | |
61 | version ".tar.gz")) | |
62 | (sha256 | |
63 | (base32 | |
dd863f1f | 64 | "14460zhacxhswnzb36qfpd1f2wbk10qvksvm6wyq5hpvdgnw7ymv")) |
fc1adab1 AK |
65 | (patches (search-patches "libmad-armv7-thumb-pt1.patch" |
66 | "libmad-armv7-thumb-pt2.patch" | |
67 | "libmad-frame-length.patch" | |
68 | "libmad-mips-newgcc.patch")))) | |
d464e725 AE |
69 | (build-system gnu-build-system) |
70 | (arguments | |
71 | `(#:phases | |
dc1d3cde KK |
72 | (modify-phases %standard-phases |
73 | (add-before 'configure 'remove-unsupported-gcc-flags | |
4f27a333 MB |
74 | (lambda _ |
75 | ;; remove option that is not supported by gcc any more | |
76 | (substitute* "configure" ((" -fforce-mem") "")) | |
77 | #t))))) | |
35b9e423 | 78 | (synopsis "MPEG audio decoder") |
d464e725 AE |
79 | (description |
80 | "MAD (MPEG Audio Decoder) supports MPEG-1 and the MPEG-2 extension to | |
81 | lower sampling frequencies, as well as the de facto MPEG 2.5 format. | |
82 | All three audio layers — Layer I, Layer II, and Layer III (i.e. MP3) — are | |
83 | fully implemented. | |
84 | ||
85 | This package contains the library.") | |
86 | (license license:gpl2+) | |
87 | (home-page "http://www.underbit.com/products/mad/"))) | |
88 | ||
8cc9c0da AE |
89 | (define-public libid3tag |
90 | (package | |
91 | (name "libid3tag") | |
92 | (version "0.15.1b") | |
93 | (source (origin | |
94 | (method url-fetch) | |
95 | (uri (string-append "mirror://sourceforge/mad/libid3tag/" | |
96 | version "/libid3tag-" | |
97 | version ".tar.gz")) | |
98 | (sha256 | |
99 | (base32 | |
100 | "0lb1w883dc46dajbdvnia5870brl5lvnlk7g7y58y9wpg5p4znk3")))) | |
101 | (build-system gnu-build-system) | |
102 | (inputs `(("zlib" ,zlib))) | |
35b9e423 | 103 | (synopsis "Library for reading ID3 tags") |
8cc9c0da | 104 | (description |
35b9e423 | 105 | "Libid3tag is a library for reading ID3 tags, both ID3v1 and the various |
e881752c | 106 | versions of ID3v2.") |
8cc9c0da AE |
107 | (license license:gpl2+) |
108 | (home-page "http://www.underbit.com/products/mad/"))) | |
109 | ||
fbd84457 AE |
110 | (define-public id3lib |
111 | (package | |
112 | (name "id3lib") | |
113 | (version "3.8.3") | |
114 | (source (origin | |
115 | (method url-fetch) | |
116 | (uri (string-append "mirror://sourceforge/id3lib/id3lib/" | |
1f521b70 | 117 | version "/id3lib-" version ".tar.gz")) |
fbd84457 AE |
118 | (sha256 |
119 | (base32 | |
1f521b70 | 120 | "0yfhqwk0w8q2hyv1jib1008jvzmwlpsxvc8qjllhna6p1hycqj97")) |
35e65701 TD |
121 | (modules '((guix build utils))) |
122 | ;; Don't use bundled zlib | |
123 | (snippet '(delete-file-recursively "zlib")) | |
1f521b70 | 124 | (patches (search-patches "id3lib-CVE-2007-4460.patch")))) |
fbd84457 | 125 | (build-system gnu-build-system) |
35e65701 | 126 | (inputs `(("zlib" ,zlib))) |
fbd84457 AE |
127 | (arguments |
128 | `(#:phases | |
dc1d3cde KK |
129 | (modify-phases %standard-phases |
130 | (add-before 'configure 'apply-patches | |
131 | ;; TODO: create a patch for origin instead? | |
132 | (lambda _ | |
133 | (substitute* "configure" | |
134 | (("iomanip.h") "")) ; drop check for unused header | |
135 | ;; see http://www.linuxfromscratch.org/patches/downloads/id3lib/ | |
136 | (substitute* "include/id3/id3lib_strings.h" | |
137 | (("include <string>") "include <cstring>\n#include <string>")) | |
138 | (substitute* "include/id3/writers.h" | |
139 | (("//\\#include <string.h>") "#include <cstring>")) | |
140 | (substitute* "examples/test_io.cpp" | |
141 | (("dami;") "dami;\nusing namespace std;")) | |
142 | #t))))) | |
35b9e423 | 143 | (synopsis "Library for reading, writing, and manipulating ID3v1 and ID3v2 tags") |
fbd84457 | 144 | (description |
35b9e423 EB |
145 | "Id3lib is a cross-platform software development library for reading, |
146 | writing, and manipulating ID3v1 and ID3v2 tags. It is an on-going project | |
fbd84457 AE |
147 | whose primary goals are full compliance with the ID3v2 standard, portability |
148 | across several platforms, and providing a powerful and feature-rich API with | |
149 | a highly stable and efficient implementation.") | |
150 | (license license:lgpl2.0+) | |
151 | (home-page "http://id3lib.sourceforge.net/"))) | |
152 | ||
086518dd LC |
153 | (define-public taglib |
154 | (package | |
155 | (name "taglib") | |
d1451fa0 | 156 | (version "1.11.1") |
086518dd LC |
157 | (source (origin |
158 | (method url-fetch) | |
159 | (uri (string-append "http://taglib.github.io/releases/taglib-" | |
160 | version ".tar.gz")) | |
161 | (sha256 | |
162 | (base32 | |
d1451fa0 | 163 | "0ssjcdjv4qf9liph5ry1kngam1y7zp8fzr9xv4wzzrma22kabldn")))) |
086518dd | 164 | (build-system cmake-build-system) |
d1451fa0 PL |
165 | (arguments |
166 | '(#:tests? #f ; Tests are not ran with BUILD_SHARED_LIBS on. | |
167 | #:configure-flags (list "-DBUILD_SHARED_LIBS=ON"))) | |
086518dd | 168 | (inputs `(("zlib" ,zlib))) |
d1451fa0 | 169 | (home-page "http://taglib.org") |
086518dd LC |
170 | (synopsis "Library to access audio file meta-data") |
171 | (description | |
172 | "TagLib is a C++ library for reading and editing the meta-data of several | |
173 | popular audio formats. Currently it supports both ID3v1 and ID3v2 for MP3 | |
174 | files, Ogg Vorbis comments and ID3 tags and Vorbis comments in FLAC, MPC, | |
175 | Speex, WavPack TrueAudio, WAV, AIFF, MP4 and ASF files.") | |
176 | ||
177 | ;; Dual-licensed: user may choose between LGPLv2.1 or MPLv1.1. | |
178 | (license (list license:lgpl2.1 license:mpl1.1)))) | |
179 | ||
68ff528c LC |
180 | (define-public mp3info |
181 | (package | |
182 | (name "mp3info") | |
183 | (version "0.8.5a") | |
184 | (source (origin | |
185 | (method url-fetch) | |
186 | (uri (string-append | |
f8f8897f AV |
187 | "http://ibiblio.org" |
188 | "/pub/linux/apps/sound/mp3-utils/mp3info/mp3info-" | |
68ff528c LC |
189 | version ".tgz")) |
190 | (sha256 | |
191 | (base32 | |
192 | "042f1czcs9n2sbqvg4rsvfwlqib2gk976mfa2kxlfjghx5laqf04")) | |
193 | (modules '((guix build utils))) | |
194 | (snippet | |
195 | '(substitute* "Makefile" | |
196 | (("/bin/rm") "rm") | |
197 | (("/usr/bin/install") "install") | |
198 | (("man/man1") "share/man/man1"))))) | |
199 | (build-system gnu-build-system) | |
200 | (outputs '("out" "gui")) ;GTK+ interface in "gui" | |
201 | (arguments | |
dc1d3cde KK |
202 | '(#:phases |
203 | (modify-phases %standard-phases | |
204 | (replace 'configure | |
205 | (lambda* (#:key outputs #:allow-other-keys) | |
206 | (let ((out (assoc-ref outputs "out"))) | |
207 | (substitute* "Makefile" | |
208 | (("prefix=.*") | |
209 | (string-append "prefix := " out "\n")))) | |
210 | #t)) | |
211 | (add-before 'install 'pre-install | |
212 | (lambda* (#:key outputs #:allow-other-keys) | |
213 | (let ((out (assoc-ref outputs "out"))) | |
214 | (mkdir-p (string-append out "/bin")) | |
215 | (mkdir-p (string-append out "/share/man/man1"))) | |
216 | #t)) | |
217 | (add-after 'install 'post-install | |
218 | (lambda* (#:key outputs #:allow-other-keys) | |
219 | ;; Move the GTK+ interface to "gui". | |
220 | (let ((out (assoc-ref outputs "out")) | |
221 | (gui (assoc-ref outputs "gui"))) | |
222 | (mkdir-p (string-append gui "/bin")) | |
223 | (rename-file (string-append out "/bin/gmp3info") | |
224 | (string-append gui "/bin/gmp3info"))) | |
225 | #t))) | |
68ff528c LC |
226 | #:tests? #f)) |
227 | (native-inputs | |
228 | `(("pkg-config" ,pkg-config))) | |
229 | (inputs | |
230 | `(("gtk+" ,gtk+-2) | |
231 | ("ncurses" ,ncurses))) | |
232 | (home-page "http://www.ibiblio.org/mp3info/") | |
233 | (synopsis "MP3 technical info viewer and ID3 1.x tag editor") | |
234 | (description | |
235 | "MP3Info is a little utility used to read and modify the ID3 tags of MP3 | |
e881752c | 236 | files. MP3Info can also display various technical aspects of an MP3 file |
68ff528c LC |
237 | including playing time, bit-rate, sampling frequency and other attributes in a |
238 | pre-defined or user-specifiable output format.") | |
239 | (license license:gpl2+))) | |
240 | ||
c23e9e48 AE |
241 | (define-public libmp3splt |
242 | (package | |
243 | (name "libmp3splt") | |
67a8298c | 244 | (version "0.9.2") |
c23e9e48 AE |
245 | (source (origin |
246 | (method url-fetch) | |
247 | (uri (string-append "mirror://sourceforge/mp3splt/libmp3splt/" | |
248 | version "/libmp3splt-" | |
249 | version ".tar.gz")) | |
250 | (sha256 | |
251 | (base32 | |
67a8298c | 252 | "1p1mn2hsmj5cp40fnc8g1yfvk72p8pjxi866gjdkgjsqrr7xdvih")))) |
c23e9e48 AE |
253 | (build-system gnu-build-system) |
254 | (inputs `(("libid3tag" ,libid3tag) | |
255 | ("libmad" ,libmad) | |
256 | ("libogg" ,libogg) | |
3246cc91 | 257 | ("libltdl" ,libltdl) |
e881752c | 258 | ("libvorbis" ,libvorbis) |
c23e9e48 | 259 | ("pcre" ,pcre))) |
c4c4cc05 JD |
260 | (native-inputs |
261 | `(("pkg-config" ,pkg-config))) | |
35b9e423 | 262 | (synopsis "Library for splitting mp3 and ogg vorbis files") |
c23e9e48 AE |
263 | (description |
264 | "Mp3splt is a utility to split mp3 and ogg vorbis files selecting a begin | |
35b9e423 | 265 | and an end time position, without decoding. For splitting an album, one may |
e881752c | 266 | select split points and file names manually or obtain them automatically from |
35b9e423 | 267 | CDDB (internet or a local file) or from .cue files. The tool also supports |
c23e9e48 AE |
268 | automatic silence split, that can be used also to adjust cddb/cue splitpoints. |
269 | ||
270 | This package contains the library.") | |
271 | (license license:gpl2+) | |
272 | (home-page "http://mp3splt.sourceforge.net/mp3splt_page/home.php"))) | |
273 | ||
274 | (define-public mp3splt | |
275 | (package | |
276 | (name "mp3splt") | |
2041f901 | 277 | (version "2.6.2") |
c23e9e48 AE |
278 | (source (origin |
279 | (method url-fetch) | |
280 | (uri (string-append "mirror://sourceforge/mp3splt/mp3splt/" | |
281 | version "/mp3splt-" | |
282 | version ".tar.gz")) | |
283 | (sha256 | |
284 | (base32 | |
2041f901 | 285 | "1aiv20gypb6r84qabz8gblk8vi42cg3x333vk2pi3fyqvl82phry")))) |
c23e9e48 | 286 | (build-system gnu-build-system) |
2041f901 | 287 | (native-inputs `(("pkg-config" ,pkg-config))) |
c23e9e48 | 288 | (inputs `(("libmp3splt" ,libmp3splt))) |
e881752c | 289 | (synopsis "Utility for splitting mp3 and ogg vorbis files") |
c23e9e48 AE |
290 | (description |
291 | "Mp3splt is a utility to split mp3 and ogg vorbis files selecting a begin | |
35b9e423 | 292 | and an end time position, without decoding. For splitting an album, one may |
e881752c | 293 | select split points and file names manually or obtain them automatically from |
35b9e423 | 294 | CDDB (internet or a local file) or from .cue files. The tool also supports |
c23e9e48 AE |
295 | automatic silence split, that can be used also to adjust cddb/cue splitpoints. |
296 | ||
297 | This package contains the binary.") | |
298 | (license license:gpl2+) | |
299 | (home-page "http://mp3splt.sourceforge.net/mp3splt_page/home.php"))) | |
300 | ||
1bdb591b LC |
301 | (define-public mpg123 |
302 | (package | |
303 | (name "mpg123") | |
38b87a8a | 304 | (version "1.25.8") |
1bdb591b LC |
305 | (source (origin |
306 | (method url-fetch) | |
d5ff67f4 LC |
307 | (uri (list (string-append "mirror://sourceforge/mpg123/mpg123/" |
308 | version "/mpg123-" version ".tar.bz2") | |
309 | (string-append | |
310 | "http://www.mpg123.org/download/mpg123-" | |
311 | version ".tar.bz2"))) | |
1bdb591b LC |
312 | (sha256 |
313 | (base32 | |
38b87a8a | 314 | "16s9z1xc5kv1p90g42vsr9m4gq3dwjsmrj873x4i8601mvpm3nkr")))) |
1bdb591b LC |
315 | (build-system gnu-build-system) |
316 | (arguments '(#:configure-flags '("--with-default-audio=pulse"))) | |
317 | (native-inputs `(("pkg-config" ,pkg-config))) | |
318 | (inputs `(("pulseaudio" ,pulseaudio) | |
319 | ("alsa-lib" ,alsa-lib))) | |
53a416d6 | 320 | (home-page "https://www.mpg123.org/") |
1bdb591b LC |
321 | (synopsis "Console MP3 player and decoder library") |
322 | (description | |
35b9e423 | 323 | "Mpg123 is a real time MPEG 1.0/2.0/2.5 audio player/decoder for layers |
1bdb591b LC |
324 | 1,2 and 3 (MPEG 1.0 layer 3 aka MP3 most commonly tested). It comes with a |
325 | command-line tool as well as a C library, libmpg123.") | |
326 | (license license:lgpl2.1))) | |
327 | ||
0a56fadb LC |
328 | (define-public mpg321 |
329 | (package | |
330 | (name "mpg321") | |
5ed7f28d | 331 | (version "0.3.2") |
0a56fadb LC |
332 | (source (origin |
333 | (method url-fetch) | |
de67e922 | 334 | (uri (string-append "mirror://sourceforge/mpg321/mpg321/" |
0a56fadb LC |
335 | version "/mpg321-" version ".tar.gz")) |
336 | (sha256 | |
337 | (base32 | |
5ed7f28d | 338 | "0ki8mh76bbmdh77qsiw682dvi8y468yhbdabqwg05igmwc1wqvq5")))) |
0a56fadb LC |
339 | (build-system gnu-build-system) |
340 | (arguments '(#:configure-flags '("--disable-alsa"))) | |
341 | (inputs | |
342 | `(("zlib" ,zlib) | |
343 | ("libmad" ,libmad) | |
344 | ("libid3tag" ,libid3tag) | |
345 | ("libao" ,ao))) | |
346 | (home-page "http://mpg321.sourceforge.net/") | |
347 | (synopsis "Command-line MP3 player") | |
35b9e423 | 348 | (description "Mpg321 is a command-line mp3 player. mpg321 is used for |
0a56fadb LC |
349 | frontends, as an mp3 player and as an mp3 to wave file decoder (primarily for |
350 | use with CD-recording software).") | |
351 | (license license:gpl2))) | |
2ae92cbc AE |
352 | |
353 | (define-public lame | |
354 | (package | |
355 | (name "lame") | |
3d679ab1 | 356 | (version "3.100") |
2ae92cbc AE |
357 | (source (origin |
358 | (method url-fetch) | |
3d679ab1 MB |
359 | (uri (string-append "mirror://sourceforge/lame/lame/" |
360 | (version-major+minor version) "/lame-" | |
2ae92cbc AE |
361 | version ".tar.gz")) |
362 | (sha256 | |
363 | (base32 | |
3d679ab1 | 364 | "07nsn5sy3a8xbmw1bidxnsj5fj6kg9ai04icmqw40ybkp353dznx")))) |
2ae92cbc AE |
365 | (build-system gnu-build-system) |
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") | |
3694a9b3 | 498 | (version "1.4.2") |
9518fde1 HG |
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 | |
3694a9b3 LF |
505 | (base32 |
506 | "1m5l4rfkwz6m77m3qjs41n7rmscw0hfvv4z79srpbpa1x2khk5lq")))) | |
9518fde1 HG |
507 | (build-system cmake-build-system) |
508 | (arguments | |
509 | `(#:tests? #f ; tests require googletest *sources* | |
510 | ;;#:configure-flags '("-DBUILD_TESTS=ON") ; for building the tests | |
511 | #:test-target "check")) | |
512 | (inputs | |
513 | ;; requires one of FFmpeg (prefered), FFTW3 or vDSP | |
514 | ;; use the same ffmpeg version as for acoustid-fingerprinter | |
515 | `(("ffmpeg" ,ffmpeg) | |
516 | ("boots" ,boost))) | |
517 | (home-page "https://acoustid.org/chromaprint") | |
518 | (synopsis "Audio fingerprinting library") | |
519 | (description "Chromaprint is a library for calculating audio | |
520 | fingerprints which are used by the Acoustid service. Its main purpose | |
521 | is to provide an accurate identifier for record tracks.") | |
522 | (license license:lgpl2.1+))) |