aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/oggvorbis.scm
diff options
context:
space:
mode:
authorAndreas Enge <andreas@enge.fr>2013-01-31 22:18:47 +0100
committerAndreas Enge <andreas@enge.fr>2013-01-31 22:19:56 +0100
commit9ae7865e977411e70e59a328b1b3ee47f7e0fd71 (patch)
treee03d9ad470cd68db48d59300e7f5823e54cf9e85 /gnu/packages/oggvorbis.scm
parentf992ead2845ab1d9ba9d172a86dfa0862d83de47 (diff)
downloadgnu-guix-9ae7865e977411e70e59a328b1b3ee47f7e0fd71.tar
gnu-guix-9ae7865e977411e70e59a328b1b3ee47f7e0fd71.tar.gz
gnu: Add flac.
* gnu/packages/oggvorbis.scm (flac): New variable. * gnu/packages/oggvorbis.scm (vorbis-tools): Add flac input. * gnu/packages/patches/flac-fix-memcmp-not-declared.patch: New file.
Diffstat (limited to 'gnu/packages/oggvorbis.scm')
-rw-r--r--gnu/packages/oggvorbis.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/oggvorbis.scm b/gnu/packages/oggvorbis.scm
index 60a1d52acc..db5936a833 100644
--- a/gnu/packages/oggvorbis.scm
+++ b/gnu/packages/oggvorbis.scm
@@ -140,6 +140,34 @@ OpenBSD's sndio.")
(license gpl2+)
(home-page "http://www.xiph.org/ao/")))
+(define-public flac
+ (package
+ (name "flac")
+ (version "1.2.1")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "http://downloads.xiph.org/releases/flac/flac-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "1pry5lgzfg57pga1zbazzdd55fkgk3v5qy4axvrbny5lrr5s8dcn"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:parallel-tests? #f
+ #:patches (list (assoc-ref %build-inputs
+ "patch/memcmp"))))
+ ;; FIXME: configure also looks for xmms, input could be added once it exists
+ (inputs `(("libogg" ,libogg)
+ ("patch/memcmp"
+ ,(search-patch "flac-fix-memcmp-not-declared.patch"))))
+ (synopsis "flac free lossless audio codec")
+ (description
+"FLAC stands for Free Lossless Audio Codec, an audio format that is lossless,
+meaning that audio is compressed in FLAC without any loss in quality.")
+ (license (bsd-style "file://COPYING"
+ "See COPYING in the distribution.")) ; and LGPL and GPL
+ (home-page "http://xiph.org/flac/")))
+
(define-public vorbis-tools
(package
(name "vorbis-tools")