aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorAndreas Enge <andreas@enge.fr>2013-05-04 23:13:22 +0200
committerAndreas Enge <andreas@enge.fr>2013-05-04 23:13:22 +0200
commitfbd8445704bff083f6df90e2eed3311c2ce2ed06 (patch)
treedca39e97af4edc130c13bdd7a52e803c5d2a8df0 /gnu/packages
parent21e9fee042e47aab42bbe785f94cac64ed6fec73 (diff)
downloadpatches-fbd8445704bff083f6df90e2eed3311c2ce2ed06.tar
patches-fbd8445704bff083f6df90e2eed3311c2ce2ed06.tar.gz
gnu: Add id3lib.
* gnu/packages/mp3.scm (id3lib): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/mp3.scm40
1 files changed, 40 insertions, 0 deletions
diff --git a/gnu/packages/mp3.scm b/gnu/packages/mp3.scm
index 313f1abf39..c0051ae575 100644
--- a/gnu/packages/mp3.scm
+++ b/gnu/packages/mp3.scm
@@ -83,6 +83,46 @@ versions of ID3v2")
(license license:gpl2+)
(home-page "http://www.underbit.com/products/mad/")))
+(define-public id3lib
+ (package
+ (name "id3lib")
+ (version "3.8.3")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://sourceforge/id3lib/id3lib/"
+ version "/id3lib-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "0yfhqwk0w8q2hyv1jib1008jvzmwlpsxvc8qjllhna6p1hycqj97"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:phases
+ (alist-replace
+ 'configure
+ (lambda* (#:key #:allow-other-keys #:rest args)
+ (let ((configure (assoc-ref %standard-phases 'configure)))
+ (substitute* "configure"
+ (("iomanip.h") "")) ; drop check for unused header
+ ;; see http://www.linuxfromscratch.org/patches/downloads/id3lib/
+ (substitute* "include/id3/id3lib_strings.h"
+ (("include <string>") "include <cstring>\n#include <string>"))
+ (substitute* "include/id3/writers.h"
+ (("//\\#include <string.h>") "#include <cstring>"))
+ (substitute* "examples/test_io.cpp"
+ (("dami;") "dami;\nusing namespace std;"))
+ (apply configure args)))
+ %standard-phases)))
+ (synopsis "a library for reading, writing, and manipulating ID3v1 and ID3v2 tags")
+ (description
+ "id3lib is a cross-platform software development library for reading,
+writing, and manipulating ID3v1 and ID3v2 tags. It is an on-going project
+whose primary goals are full compliance with the ID3v2 standard, portability
+across several platforms, and providing a powerful and feature-rich API with
+a highly stable and efficient implementation.")
+ (license license:lgpl2.0+)
+ (home-page "http://id3lib.sourceforge.net/")))
+
(define-public libmp3splt
(package
(name "libmp3splt")