PKGNAME=mpd
PKGSEC=sound
# FIXME: samba support is disabled for the reason stated below, add back samba
# dependency when the issue is solved.
PKGDEP="libao ffmpeg libmodplug audiofile libshout libmad curl openmpt opus \
        faad2 sqlite libmms wavpack avahi libid3tag libsndfile libvorbis \
        libmpdclient icu libupnp libnfs sndio bzip2 flac lame libsamplerate \
        chromaprint libcdio-paranoia zziplib openal-soft libcdio dbus pcre2 \
        fluidsynth game-music-emu libmpcdec libmikmod mpg123 zlib expat adplug \
        libsidplayfp twolame wildmidi soxr liburing udisks-2 fmt"
BUILDDEP="alsa-lib jack pipewire pulseaudio nlohmann-json"
PKGSUG="jack pipewire pulseaudio"
PKGDES="Server-side application for playing music"

ABTYPE=meson

# FIXME: samba (smbclient) support is disabled as advised by the upstream
# Ref:
# https://github.com/MusicPlayerDaemon/MPD/blob/1caeb9b4183740250739739c6e76d1734bc3891d/meson_options.txt#L101
# Ref: https://bugzilla.samba.org/show_bug.cgi?id=11413
MESON_AFTER=(
    '-Ddocumentation=disabled'
    '-Dhtml_manual=false'
    '-Dmanpages=true'
    '-Ddoxygen=false'
    '-Dsyslog=enabled'
    '-Dinotify=true'
    '-Dio_uring=enabled'
    '-Ddaemon=true'
    '-Dsystemd=enabled'
    '-Dtest=false'
    '-Dfuzzer=false'
    '-Dlibfuzzer=false'
    '-Depoll=true'
    '-Deventfd=true'
    '-Dsignalfd=true'
    '-Dtcp=true'
    '-Dipv6=enabled'
    '-Dlocal_socket=true'
    '-Ddsd=true'
    '-Ddatabase=true'
    '-Dupnp=pupnp'
    '-Dlibmpdclient=enabled'
    '-Dneighbor=true'
    '-Dudisks=enabled'
    '-Dwebdav=enabled'
    '-Dcue=true'
    '-Dcdio_paranoia=enabled'
    '-Dcurl=enabled'
    '-Dmms=enabled'
    '-Dnfs=enabled'
    '-Dsmbclient=disabled'
    '-Dqobuz=enabled'
    '-Dbzip2=enabled'
    '-Diso9660=enabled'
    '-Dzzip=enabled'
    '-Did3tag=enabled'
    '-Dchromaprint=enabled'
    '-Dadplug=enabled'
    '-Daudiofile=enabled'
    '-Dfaad=enabled'
    '-Dffmpeg=enabled'
    '-Dflac=enabled'
    '-Dfluidsynth=enabled'
    '-Dgme=enabled'
    '-Dmad=enabled'
    '-Dmikmod=enabled'
    '-Dmodplug=enabled'
    '-Dopenmpt=enabled'
    '-Dmpg123=enabled'
    '-Dopus=enabled'
    '-Dsidplay=enabled'
    '-Dsndfile=enabled'
    '-Dtremor=disabled'
    '-Dvorbis=enabled'
    '-Dwavpack=enabled'
    '-Dwildmidi=enabled'
    '-Dvorbisenc=enabled'
    '-Dlame=enabled'
    '-Dtwolame=enabled'
    '-Dshine=disabled'
    '-Dwave_encoder=true'
    '-Dlibsamplerate=enabled'
    '-Dsoxr=enabled'
    '-Dalsa=enabled'
    '-Dao=enabled'
    '-Dfifo=true'
    '-Dhttpd=true'
    '-Djack=enabled'
    '-Dopenal=enabled'
    '-Doss=enabled'
    '-Dpipe=true'
    '-Dpipewire=enabled'
    '-Dpulse=enabled'
    '-Drecorder=true'
    '-Dshout=enabled'
    '-Dsnapcast=true'
    '-Dsndio=enabled'
    '-Dsolaris_output=disabled'
    '-Ddbus=enabled'
    '-Dexpat=enabled'
    '-Dicu=enabled'
    '-Diconv=enabled'
    '-Dpcre=enabled'
    '-Dsqlite=enabled'
    '-Dnlohmann_json=enabled'
    '-Dzlib=enabled'
    '-Dzeroconf=avahi'
)
