gnu: libmpdclient: Update to 2.13.
[jackhill/guix/guix.git] / gnu / packages / mpd.scm
CommitLineData
892d8a81 1;;; GNU Guix --- Functional package management for GNU
927ff2c3 2;;; Copyright © 2014, 2015 David Thompson <dthompson2@worcester.edu>
b0193286 3;;; Copyright © 2014 Andreas Enge <andreas@enge.fr>
009c5b5c 4;;; Copyright © 2014 Cyrill Schenkel <cyrill.schenkel@gmail.com>
29a7c98a 5;;; Copyright © 2014 Ian Denhardt <ian@zenhack.net>
e42dc624 6;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
9913c78a 7;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
7da9e792 8;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
892d8a81
DT
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 mpd)
26 #:use-module (gnu packages)
7dc68701 27 #:use-module ((guix licenses) #:prefix license:)
892d8a81
DT
28 #:use-module (guix packages)
29 #:use-module (guix download)
29a7c98a 30 #:use-module (guix utils)
892d8a81 31 #:use-module (guix build-system gnu)
7da9e792 32 #:use-module (guix build-system meson)
efe0b143 33 #:use-module (guix build-system python)
7dc68701 34 #:use-module (gnu packages avahi)
e42dc624 35 #:use-module (gnu packages boost)
6ea86d7e 36 #:use-module (gnu packages gcc) ; GCC@5 for MPD >= 0.20
6c86cef5
CB
37 #:use-module (gnu packages gettext)
38 #:use-module (gnu packages gnome)
39 #:use-module (gnu packages gtk)
58acabc3 40 #:use-module (gnu packages icu4c)
e42dc624 41 #:use-module (gnu packages readline)
ac257f12 42 #:use-module (gnu packages check)
7dc68701
DT
43 #:use-module (gnu packages compression)
44 #:use-module (gnu packages curl)
99828fa7 45 #:use-module (gnu packages documentation)
7dc68701
DT
46 #:use-module (gnu packages glib)
47 #:use-module (gnu packages linux)
48 #:use-module (gnu packages mp3)
4d01bd3c 49 #:use-module (gnu packages ncurses)
7dc68701 50 #:use-module (gnu packages pkg-config)
efe0b143 51 #:use-module (gnu packages python)
7dc68701 52 #:use-module (gnu packages pulseaudio)
5f96f303 53 #:use-module (gnu packages databases)
7dc68701 54 #:use-module (gnu packages video)
654b27e5 55 #:use-module (gnu packages xiph))
892d8a81 56
654b27e5 57(define-public libmpdclient
892d8a81
DT
58 (package
59 (name "libmpdclient")
7da9e792 60 (version "2.13")
892d8a81
DT
61 (source (origin
62 (method url-fetch)
63 (uri
64 (string-append "http://musicpd.org/download/libmpdclient/"
65 (car (string-split version #\.))
a53a925f 66 "/libmpdclient-" version ".tar.xz"))
892d8a81
DT
67 (sha256
68 (base32
7da9e792
TGR
69 "0pflbv2jzik7yxnacci1iqs0awy1i5ipwn67xk0hg9r0pi9bs5ai"))))
70 (build-system meson-build-system)
71 (native-inputs
72 `(("pkg-config" ,pkg-config)
73
74 ;; For building HTML documentation.
75 ("doxygen" ,doxygen)
76
77 ;; For tests.
78 ("check" ,check)))
79 (arguments
80 `(#:configure-flags
81 (list "-Ddocumentation=true"
82 "-Dtest=true")))
892d8a81
DT
83 (synopsis "Music Player Daemon client library")
84 (description "A stable, documented, asynchronous API library for
85interfacing MPD in the C, C++ & Objective C languages.")
86 (home-page "http://www.musicpd.org/libs/libmpdclient/")
7dc68701
DT
87 (license license:bsd-3)))
88
654b27e5 89(define-public mpd
7dc68701
DT
90 (package
91 (name "mpd")
4a408d84 92 (version "0.20.13")
7dc68701
DT
93 (source (origin
94 (method url-fetch)
95 (uri
96 (string-append "http://musicpd.org/download/mpd/"
29a7c98a 97 (version-major+minor version)
58acabc3 98 "/mpd-" version ".tar.xz"))
7dc68701
DT
99 (sha256
100 (base32
4a408d84 101 "0h7z90dnpwlyad4kfi1ja9v9vzqic0xg93iy4q0dwlhav0scbha6"))))
7dc68701 102 (build-system gnu-build-system)
87b52095
LF
103 (arguments
104 `(#:phases
105 (modify-phases %standard-phases
106 (add-after 'install 'install-service-files
107 (lambda* (#:key outputs #:allow-other-keys)
108 (let* ((out (assoc-ref outputs "out"))
109 (systemd (string-append out "/etc/systemd/system"))
110 (systemd-user (string-append out "/etc/systemd/user")))
111 (install-file "systemd/system/mpd.service" systemd)
112 (install-file "systemd/user/mpd.service" systemd-user)
113 #t))))))
7dc68701
DT
114 (inputs `(("ao" ,ao)
115 ("alsa-lib" ,alsa-lib)
116 ("avahi" ,avahi)
58acabc3 117 ("boost" ,boost)
7dc68701
DT
118 ("curl" ,curl)
119 ("ffmpeg" ,ffmpeg)
120 ("flac" ,flac)
121 ("glib" ,glib)
58acabc3 122 ("icu4c" ,icu4c)
7dc68701
DT
123 ("lame" ,lame)
124 ("libid3tag" ,libid3tag)
125 ("libmad" ,libmad)
126 ("libmpdclient" ,libmpdclient)
127 ("libsamplerate" ,libsamplerate)
128 ("libsndfile" ,libsndfile)
129 ("libvorbis" ,libvorbis)
130 ("opus" ,opus)
7dc68701
DT
131 ("pulseaudio" ,pulseaudio)
132 ("sqlite" ,sqlite)
133 ("zlib" ,zlib)))
7641266b 134 (native-inputs `(("pkg-config" ,pkg-config)))
7dc68701
DT
135 ;; Missing optional inputs:
136 ;; libyajl
137 ;; libcdio_paranoia
138 ;; libmms
139 ;; libadplug
140 ;; libaudiofile
141 ;; faad2
142 ;; fluidsynth
143 ;; libgme
144 ;; libshout
145 ;; libmpg123
146 ;; libmodplug
147 ;; libmpcdec
148 ;; libsidplay2
149 ;; libwavpack
150 ;; libwildmidi
151 ;; libtwolame
152 ;; libroar
153 ;; libjack
154 ;; OpenAL
155 (synopsis "Music Player Daemon")
156 (description "Music Player Daemon (MPD) is a flexible, powerful,
157server-side application for playing music. Through plugins and libraries it
158can play a variety of sound files while being controlled by its network
159protocol.")
160 (home-page "http://www.musicpd.org/")
161 (license license:gpl2)))
4d01bd3c 162
654b27e5 163(define-public mpd-mpc
773b2792
PW
164 (package
165 (name "mpd-mpc")
95eee670 166 (version "0.28")
773b2792
PW
167 (source (origin
168 (method url-fetch)
169 (uri
170 (string-append "http://www.musicpd.org/download/mpc/"
171 (car (string-split version #\.))
172 "/mpc-" version ".tar.xz"))
173 (sha256
174 (base32
95eee670 175 "0iy5mdffkk61255f62si7p8mhyhkib70zlr1i1iimj2xr037scx4"))))
773b2792
PW
176 (build-system gnu-build-system)
177 (inputs `(("libmpdclient" ,libmpdclient)))
178 (native-inputs `(("pkg-config" ,pkg-config)))
179 (synopsis "Music Player Daemon client")
180 (description "MPC is a minimalist command line interface to MPD, the music
181player daemon.")
182 (home-page "http://www.musicpd.org/clients/mpc/")
183 (license license:gpl2)))
184
654b27e5 185(define-public ncmpc
4d01bd3c
DT
186 (package
187 (name "ncmpc")
2f64f444 188 (version "0.27")
4d01bd3c
DT
189 (source (origin
190 (method url-fetch)
191 (uri
192 (string-append "http://musicpd.org/download/ncmpc/"
193 (car (string-split version #\.))
3efee6a4 194 "/ncmpc-" version ".tar.xz"))
4d01bd3c
DT
195 (sha256
196 (base32
2f64f444 197 "1n8m7syhpgx24hfipixv66h2izn229jkxsmh2q5dzkv9r0znm8pr"))))
4d01bd3c
DT
198 (build-system gnu-build-system)
199 (inputs `(("glib" ,glib)
200 ("libmpdclient" ,libmpdclient)
201 ("ncurses" ,ncurses)))
202 (native-inputs `(("pkg-config" ,pkg-config)))
9e771e3b 203 (synopsis "Curses Music Player Daemon client")
4d01bd3c
DT
204 (description "ncmpc is a fully featured MPD client, which runs in a
205terminal using ncurses.")
206 (home-page "http://www.musicpd.org/clients/ncmpc/")
207 (license license:gpl2)))
009c5b5c 208
654b27e5 209(define-public ncmpcpp
009c5b5c
CS
210 (package
211 (name "ncmpcpp")
bc8bd40e 212 (version "0.8.1")
009c5b5c
CS
213 (source (origin
214 (method url-fetch)
215 (uri
a708fea4 216 (string-append "https://ncmpcpp.rybczak.net/stable/ncmpcpp-"
009c5b5c
CS
217 version ".tar.bz2"))
218 (sha256
219 (base32
bc8bd40e 220 "1zw8d07b2bkssbsybg6jnmpq001w525viajrnz4jvfml3l55gyad"))))
009c5b5c
CS
221 (build-system gnu-build-system)
222 (inputs `(("libmpdclient" ,libmpdclient)
e42dc624
PW
223 ("boost" ,boost)
224 ("readline" ,readline)
a22722c1 225 ("ncurses" ,ncurses)
a4c7c57c 226 ("taglib" ,taglib)
a708fea4
LF
227 ("icu4c" ,icu4c)
228 ("curl" ,curl)))
e42dc624 229 (native-inputs
c7794307 230 `(("pkg-config" ,pkg-config)))
e42dc624
PW
231 (arguments
232 '(#:configure-flags
c7794307 233 '("BOOST_LIB_SUFFIX=" "--with-taglib")))
009c5b5c
CS
234 (synopsis "Featureful ncurses based MPD client inspired by ncmpc")
235 (description "Ncmpcpp is an mpd client with a UI very similar to ncmpc,
236but it provides new useful features such as support for regular expressions
237for library searches, extended song format, items filtering, the ability to
8f65585b 238sort playlists, and a local file system browser.")
a708fea4 239 (home-page "https://ncmpcpp.rybczak.net/")
009c5b5c 240 (license license:gpl2+)))
927ff2c3
DT
241
242(define-public mpdscribble
243 (package
244 (name "mpdscribble")
245 (version "0.22")
246 (source (origin
247 (method url-fetch)
248 (uri (string-append "http://www.musicpd.org/download/mpdscribble/"
249 version "/mpdscribble-" version ".tar.gz"))
250 (sha256
251 (base32
252 "0f0ybx380x2z2g1qvdndpvcrhkrgsfqckhz3ryydq2w3pl12v27z"))))
253 (build-system gnu-build-system)
254 (inputs `(("libmpdclient" ,libmpdclient)
255 ("curl" ,curl)
256 ("glib" ,glib)))
257 (native-inputs `(("pkg-config" ,pkg-config)))
258 (synopsis "MPD client for track scrobbling")
259 (description "mpdscribble is a Music Player Daemon client which submits
260information about tracks being played to a scrobbler, such as Libre.FM.")
261 ;; musicpd.org doesn't mention mpdscribble. It points users to this wiki
262 ;; instead.
263 (home-page "http://mpd.wikia.com/wiki/Client:Mpdscribble")
264 (license license:gpl2+)))
efe0b143
LF
265
266(define-public python-mpd2
267 (package
268 (name "python-mpd2")
269 (version "0.5.5")
270 (source (origin
271 (method url-fetch)
272 (uri (pypi-uri "python-mpd2" version))
273 (sha256
274 (base32
275 "0laypd7h1j14b4vrmiayqlzdsh2j5hc3zv4l0fqvbrbw9y6763ii"))))
276 (build-system python-build-system)
277 (arguments
278 '(#:phases
279 (modify-phases %standard-phases
280 (replace 'check
281 (lambda _ (zero? (system* "python" "mpd_test.py")))))))
282 (native-inputs `(("python-mock" ,python-mock)))
283 (home-page "https://github.com/Mic92/python-mpd2")
284 (synopsis "Python MPD client library")
285 (description "Python-mpd2 is a Python library which provides a client
286interface for the Music Player Daemon.")
5c31f4aa 287 (license license:lgpl3+)))
efe0b143
LF
288
289(define-public python2-mpd2
5c31f4aa 290 (package-with-python2 python-mpd2))
6c86cef5
CB
291
292(define-public sonata
293 (package
294 (name "sonata")
295 (version "1.7b1")
296 (source (origin
297 (method url-fetch)
298 (uri
299 (string-append "https://github.com/multani/sonata/archive/v"
300 version ".tar.gz"))
301 (file-name (string-append name "-" version ".tar.gz"))
302 (sha256
303 (base32
304 "07gq2nxqwxs0qyxjbay7k5j25zd386bn7wdr2dl1gk53diwnn7s0"))))
305 (build-system python-build-system)
306 (arguments
307 `(#:modules ((guix build gnu-build-system)
308 (guix build python-build-system)
309 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
310 (guix build utils))
311 #:imported-modules (,@%gnu-build-system-modules
312 (guix build python-build-system)
313 (guix build glib-or-gtk-build-system))
314 #:phases
315 (modify-phases %standard-phases
316 (add-after 'install 'glib-or-gtk-wrap
317 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap))
318 (add-after 'install 'wrap-sonata
319 (lambda* (#:key outputs #:allow-other-keys)
320 (let ((out (assoc-ref outputs "out"))
321 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
322 (wrap-program (string-append out "/bin/sonata")
323 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
324 #t)))))
325 (native-inputs
7c90d0f4 326 `(("gettext" ,gettext-minimal)))
6c86cef5
CB
327 (inputs
328 `(("python-mpd2" ,python-mpd2)
329 ("gtk+" ,gtk+)
330 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
331 ("gobject-introspection" ,gobject-introspection)
332 ("adwaita-icon-theme" ,adwaita-icon-theme)
333 ("python-pygobject" ,python-pygobject)))
334 (synopsis "Elegant client for the Music Player Daemon")
335 (description "Sonata is an elegant graphical client for the Music Player
336Daemon (MPD). It supports playlists, multiple profiles (connecting to different
337MPD servers, search and multimedia key support.")
338 (home-page "http://www.nongnu.org/sonata/")
339 (license license:gpl3+)))