summaryrefslogtreecommitdiff
path: root/mpd/Pkgfile
diff options
context:
space:
mode:
authorTim Biermann <tbier@posteo.de>2021-08-08 18:07:55 +0200
committerTim Biermann <tbier@posteo.de>2021-08-08 18:07:55 +0200
commitf7abdc7338027e83704cd37323c4e527b8b48086 (patch)
treedf841d7e363e0e70951bfccd557d2f4320cc0807 /mpd/Pkgfile
parente63a60348a67b4e6e2a987cddd7c9cbc5e01215b (diff)
downloadcontrib-f7abdc7338027e83704cd37323c4e527b8b48086.tar.gz
contrib-f7abdc7338027e83704cd37323c4e527b8b48086.tar.xz
mpd: 0.22.9 -> 0.22.10
Diffstat (limited to 'mpd/Pkgfile')
-rw-r--r--mpd/Pkgfile56
1 files changed, 50 insertions, 6 deletions
diff --git a/mpd/Pkgfile b/mpd/Pkgfile
index 84c290d0c..7ed81a742 100644
--- a/mpd/Pkgfile
+++ b/mpd/Pkgfile
@@ -2,21 +2,64 @@
# URL: https://www.musicpd.org/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: boost meson ninja
-# Optional: audiofile faad2 flac python3-sphinx
+# 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
name=mpd
-version=0.22.9
+version=0.22.10
release=1
-#source=(https://www.musicpd.org/download/mpd/$version/$name-$version.tar.xz mpd)
source=(https://www.musicpd.org/download/mpd/${version%.*}/$name-$version.tar.xz mpd)
build() {
- meson setup $name-$version build \
+ # optional features {{{
+ prt-get isinst alsa-lib && PKGMK_MPD+=' -D alsa=enabled'
+ prt-get isinst audiofile && PKGMK_MPD+=' -D audiofile=enabled'
+ prt-get isinst chromaprint && PKGMK_MPD+=' -D chromaprint=enabled'
+ prt-get isinst dbus && PKGMK_MPD+=' -D dbus=enabled'
+ prt-get isinst faad2 && PKGMK_MPD+=' -D faad=enabled'
+ prt-get isinst ffmpeg && PKGMK_MPD+=' -D ffmpeg=enabled'
+ prt-get isinst flac && PKGMK_MPD+=' -D flac=enabled'
+ prt-get isinst fluidsynth && PKGMK_MPD+=' -D fluidsynth=enabled'
+ prt-get isinst icu && PKGMK_MPD+=' -D icu=enabled'
+ prt-get isinst jack && PKGMK_MPD+=' -D jack=enabled'
+ prt-get isinst lame && PKGMK_MPD+=' -D lame=enabled'
+ prt-get isinst libcdio-paranoia && PKGMK_MPD+=' -D cdio_paranoia=enabled'
+ prt-get isinst libid3tag && PKGMK_MPD+=' -D id3tag=enabled'
+ prt-get isinst libisofs && PKGMK_MPD+=' -D iso9660=enabled'
+ prt-get isinst libmad && PKGMK_MPD+=' -D mad=enabled'
+ prt-get isinst libmkikmod && PKGMK_MPD+=' -D mikmod=enabled'
+ prt-get isinst libmodplug && PKGMK_MPD+=' -D modplug=enabled'
+ #prt-get isinst libmpcdec && PKGMK_MPD+=' -D mpcdec=enabled'
+ prt-get isinst libsamplerate && PKGMK_MPD+=' -D libsamplerate=enabled'
+ prt-get isinst libsndfile && PKGMK_MPD+=' -D libsndfile=enabled'
+ prt-get isinst libsoxr && PKGMK_MPD+=' -D libsoxr=enabled'
+ prt-get isinst liburing && PKGMK_MPD+=' -D io_uring=enabled'
+ prt-get isinst libvorbis && PKGMK_MPD+=' -D libvorbis=enabled'
+ prt-get isinst mpg123 && PKGMK_MPD+=' -D mpg123=enabled'
+ prt-get isinst opus && PKGMK_MPD+=' -D opus=enabled'
+ #prt-get isinst pipewire && PKGMK_MPD+=' -D pipewire=enabled'
+ prt-get isinst pulseaudio && PKGMK_MPD+=' -D pulse=enabled'
+ prt-get isinst samba && PKGMK_MPD+=' -D smbclient=enabled'
+ prt-get isinst twolame && PKGMK_MPD+=' -D twolame=enabled'
+ prt-get isinst wavpack && PKGMK_MPD+=' -D wavpack=enabled'
+ prt-get isinst yajl && PKGMK_MPD+=' -D yajl=enabled'
+ prt-get isinst zziplib && PKGMK_MPD+=' -D zzip=enabled'
+ # }}}
+
+ meson setup $name-$version build $PKGMK_MPD \
--prefix=/usr \
--sysconfdir=/etc/mpd \
--buildtype=plain \
- -Dmpcdec=disabled \
- -Ddocumentation=disabled
+ --wrap-mode nodownload \
+ -D b_lto=true \
+ -D b_pie=true \
+ --auto-features disabled \
+ -D curl=enabled \
+ -D bzip2=enabled \
+ -D iconv=enabled \
+ -D ipv6=enabled \
+ -D pcre=enabled \
+ -D sqlite=enabled \
+ -D html_manual=false
meson compile -C build -j ${JOBS-1}
DESTDIR=$PKG meson install -C build
@@ -25,3 +68,4 @@ build() {
rm -r $PKG/usr/share/doc
}
+# vim: foldmethod=marker foldlevelstart=1

Generated by cgit