import cran: Distinguish Bioconductor data packages.
[jackhill/guix/guix.git] / gnu / packages / audacity.scm
CommitLineData
147479c9
TUBK
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (gnu packages audacity)
20 #:use-module (guix packages)
21 #:use-module (guix download)
22 #:use-module ((guix licenses) #:prefix license:)
23 #:use-module (guix build-system gnu)
24 #:use-module (gnu packages)
25 #:use-module (gnu packages audio)
9a491296 26 #:use-module (gnu packages autotools)
147479c9 27 #:use-module (gnu packages base)
cb4d70f4 28 #:use-module (gnu packages gettext)
147479c9
TUBK
29 #:use-module (gnu packages gtk)
30 #:use-module (gnu packages linux)
31 #:use-module (gnu packages mp3)
32 #:use-module (gnu packages pkg-config)
33 #:use-module (gnu packages pulseaudio)
34 #:use-module (gnu packages python)
35 #:use-module (gnu packages xiph)
36 #:use-module (gnu packages xml)
37 #:use-module (gnu packages video)
38 #:use-module (gnu packages wxwidgets))
39
40(define-public audacity
41 (package
42 (name "audacity")
9a491296 43 (version "2.1.3")
147479c9
TUBK
44 (source
45 (origin
46 (method url-fetch)
cb4d70f4 47 (uri (string-append "https://github.com/audacity/audacity/archive"
9a491296 48 "/Audacity-" version ".tar.gz"))
147479c9 49 (sha256
9a491296 50 (base32 "11mx7gb4dbqrgfp7hm0154x3m76ddnmhf2675q5zkxn7jc5qfc6b"))))
147479c9
TUBK
51 (build-system gnu-build-system)
52 (inputs
53 ;; TODO: Add portSMF and libwidgetextra once they're packaged. In-tree
54 ;; versions shipping with Audacity are used for now.
5d073bdb
LF
55 `(("wxwidgets" ,wxwidgets-gtk2)
56 ("gtk" ,gtk+-2)
147479c9 57 ("alsa-lib" ,alsa-lib)
6a5894a8 58 ("jack" ,jack-1)
147479c9
TUBK
59 ("expat" ,expat)
60 ("ffmpeg" ,ffmpeg)
61 ("lame" ,lame)
62 ("flac" ,flac)
63 ("libid3tag" ,libid3tag)
64 ("libmad" ,libmad)
65 ("libsbsms" ,libsbsms)
66 ("libsndfile" ,libsndfile)
67 ("soundtouch" ,soundtouch)
68 ("soxr" ,soxr) ;replaces libsamplerate
69 ("twolame" ,twolame)
70 ("vamp" ,vamp)
71 ("libvorbis" ,libvorbis)
72 ("lv2" ,lv2)
73 ("lilv" ,lilv)
74 ("portaudio" ,portaudio)))
75 (native-inputs
9a491296
KK
76 `(("autoconf" ,autoconf)
77 ("automake" ,automake)
78 ("gettext" ,gettext-minimal) ;for msgfmt
79 ("libtool" ,libtool)
cb4d70f4 80 ("pkg-config" ,pkg-config)
147479c9
TUBK
81 ("python" ,python-2)
82 ("which" ,which)))
83 (arguments
84 '(#:configure-flags
85 (let ((libid3tag (assoc-ref %build-inputs "libid3tag"))
86 (libmad (assoc-ref %build-inputs "libmad")))
87 (list
88 ;; Loading FFmpeg dynamically is problematic.
89 "--disable-dynamic-loading"
90 ;; libid3tag and libmad provide no .pc files, so pkg-config fails to
91 ;; find them. Force their inclusion.
92 (string-append "ID3TAG_CFLAGS=-I" libid3tag "/include")
93 (string-append "ID3TAG_LIBS=-L" libid3tag "/lib -lid3tag -lz")
94 (string-append "LIBMAD_CFLAGS=-I" libmad "/include")
95 (string-append "LIBMAD_LIBS=-L" libmad "/lib -lmad")))
9a491296
KK
96 #:phases
97 (modify-phases %standard-phases
98 ;; FFmpeg is only detected if autoreconf runs.
99 (add-before 'configure 'autoreconf
100 (lambda _
101 (zero? (system* "autoreconf" "-vfi")))))
147479c9
TUBK
102 ;; The test suite is not "well exercised" according to the developers,
103 ;; and fails with various errors. See
104 ;; <http://sourceforge.net/p/audacity/mailman/message/33524292/>.
105 #:tests? #f))
106 (home-page "http://audacity.sourceforge.net/")
107 (synopsis "Software for recording and editing sounds")
108 (description
109 "Audacity is a multi-track audio editor designed for recording, playing
110and editing digital audio. It features digital effects and spectrum analysis
111tools.")
112 (license license:gpl2+)))