blob: 9703715d61884d35678d64fc71cd4feaf3583eb7 (
plain)
1 # Description: Music playback daemon
2 # URL: https://www.musicpd.org/
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: boost fmt libpcre2 meson ninja
5 # Optional: alsa-lib audiofile avahi chromaprint dbus faad2 ffmpeg flac fluidsynth icu jack lame libcdio-paranoia libid3tag libisofs libmad libmikmod libmodplug libmpcdec libsamplerate libsndfile libsoxr liburing libvorbis mpg123 opus pipewire pulseaudio python3-sphinx samba twolame wavpack yajl zziplib
6
7 name=mpd
8 version=0.23.11
9 release=1
10 source=(https://www.musicpd.org/download/mpd/${version:0:4}/$name-$version.tar.xz mpd)
11
12 build() {
13 # optional features {{{
14 prt-get isinst alsa-lib && PKGMK_MPD+=' -D alsa=enabled'
15 prt-get isinst audiofile && PKGMK_MPD+=' -D audiofile=enabled'
16 prt-get isinst chromaprint && PKGMK_MPD+=' -D chromaprint=enabled'
17 prt-get isinst dbus && PKGMK_MPD+=' -D dbus=enabled'
18 prt-get isinst faad2 && PKGMK_MPD+=' -D faad=enabled'
19 prt-get isinst ffmpeg && PKGMK_MPD+=' -D ffmpeg=enabled'
20 prt-get isinst flac && PKGMK_MPD+=' -D flac=enabled'
21 prt-get isinst fluidsynth && PKGMK_MPD+=' -D fluidsynth=enabled'
22 prt-get isinst icu && PKGMK_MPD+=' -D icu=enabled'
23 prt-get isinst jack && PKGMK_MPD+=' -D jack=enabled'
24 prt-get isinst lame && PKGMK_MPD+=' -D lame=enabled'
25 prt-get isinst libcdio-paranoia && PKGMK_MPD+=' -D cdio_paranoia=enabled'
26 prt-get isinst libid3tag && PKGMK_MPD+=' -D id3tag=enabled'
27 prt-get isinst libisofs && PKGMK_MPD+=' -D iso9660=enabled'
28 prt-get isinst libmad && PKGMK_MPD+=' -D mad=enabled'
29 prt-get isinst libmkikmod && PKGMK_MPD+=' -D mikmod=enabled'
30 prt-get isinst libmodplug && PKGMK_MPD+=' -D modplug=enabled'
31 #prt-get isinst libmpcdec && PKGMK_MPD+=' -D mpcdec=enabled'
32 prt-get isinst libsamplerate && PKGMK_MPD+=' -D libsamplerate=enabled'
33 prt-get isinst libsndfile && PKGMK_MPD+=' -D sndfile=enabled'
34 prt-get isinst libsoxr && PKGMK_MPD+=' -D soxr=enabled'
35 prt-get isinst liburing && PKGMK_MPD+=' -D io_uring=enabled'
36 prt-get isinst libvorbis && PKGMK_MPD+=' -D vorbis=enabled'
37 prt-get isinst mpg123 && PKGMK_MPD+=' -D mpg123=enabled'
38 prt-get isinst opus && PKGMK_MPD+=' -D opus=enabled'
39 prt-get isinst pipewire && PKGMK_MPD+=' -D pipewire=enabled'
40 prt-get isinst pulseaudio && PKGMK_MPD+=' -D pulse=enabled'
41 prt-get isinst samba && PKGMK_MPD+=' -D smbclient=enabled'
42 prt-get isinst twolame && PKGMK_MPD+=' -D twolame=enabled'
43 prt-get isinst wavpack && PKGMK_MPD+=' -D wavpack=enabled'
44 prt-get isinst yajl && PKGMK_MPD+=' -D yajl=enabled'
45 prt-get isinst zziplib && PKGMK_MPD+=' -D zzip=enabled'
46 # }}}
47
48 meson setup $name-$version build $PKGMK_MPD \
49 --prefix=/usr \
50 --sysconfdir=/etc/mpd \
51 --buildtype=plain \
52 --wrap-mode nodownload \
53 --auto-features disabled \
54 -D b_pie=true \
55 -D curl=enabled \
56 -D bzip2=enabled \
57 -D iconv=enabled \
58 -D ipv6=enabled \
59 -D pcre=enabled \
60 -D sqlite=enabled \
61 -D html_manual=false
62 meson compile -C build -j ${JOBS-1}
63 DESTDIR=$PKG meson install -C build
64
65 install -Dm 0644 $SRC/$name-$version/doc/mpdconf.example $PKG/etc/mpd/mpd.conf
66 install -D $SRC/mpd $PKG/etc/rc.d/mpd
67
68 rm -r $PKG/usr/share/doc
69 }
70
71 # vim: foldmethod=marker foldlevelstart=1
|