mpd: update to v0.21.16 and build with meson

One patch was dropped (probably not required anymore).

Old options have been dropped and new ones added. The order is as found
in meson_options.txt. mpd-mini and mpd-full retained their feature sets.

Signed-off-by: Andre Heider <a.heider@gmail.com>
This commit is contained in:
Andre Heider 2019-09-29 18:49:39 +02:00
parent 0469c0715b
commit 5aaa1e7da4
3 changed files with 103 additions and 100 deletions

View File

@ -6,19 +6,17 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=mpd PKG_NAME:=mpd
PKG_VERSION:=0.20.23 PKG_VERSION:=0.21.16
PKG_RELEASE:=3 PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=http://www.musicpd.org/download/mpd/0.20/ PKG_SOURCE_URL:=http://www.musicpd.org/download/mpd/0.21/
PKG_HASH:=503e5f9f237290f568ff7956ab2f9aed563594bf749f19b8fe994fb21434afea PKG_HASH:=30cf1bddf7d7388487276745ad3515f134e07f0c57f9f97cb2b5d3befd4a4d92
PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net> PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
PKG_LICENSE:=GPL-2.0-or-later PKG_LICENSE:=GPL-2.0-or-later
PKG_LICENSE_FILES:=COPYING PKG_LICENSE_FILES:=COPYING
PKG_BUILD_PARALLEL:=1
PKG_CONFIG_DEPENDS:= \ PKG_CONFIG_DEPENDS:= \
CONFIG_IPV6 \ CONFIG_IPV6 \
@ -27,6 +25,7 @@ PKG_USE_MIPS16:=0
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk include $(INCLUDE_DIR)/nls.mk
include ../../devel/meson/meson.mk
define Package/mpd/Default define Package/mpd/Default
SECTION:=sound SECTION:=sound
@ -34,7 +33,7 @@ define Package/mpd/Default
TITLE:=Music Player Daemon TITLE:=Music Player Daemon
URL:=http://www.musicpd.org/ URL:=http://www.musicpd.org/
DEPENDS:= +zlib +libcurl +libpthread +libmpdclient +libstdcpp $(ICONV_DEPENDS) \ DEPENDS:= +zlib +libcurl +libpthread +libmpdclient +libstdcpp $(ICONV_DEPENDS) \
+AUDIO_SUPPORT:alsa-lib +boost +boost-container +libexpat +libflac +AUDIO_SUPPORT:alsa-lib +boost +libexpat +libflac
endef endef
define Package/mpd/Default/description define Package/mpd/Default/description
@ -47,7 +46,7 @@ endef
define Package/mpd-full define Package/mpd-full
$(call Package/mpd/Default) $(call Package/mpd/Default)
TITLE+= (full) TITLE+= (full)
DEPENDS+= +libffmpeg +libid3tag +libmms +libupnp +libshout +pulseaudio-daemon +yajl DEPENDS+= +libffmpeg +libid3tag +libvorbis +libmms +libupnp +libshout +pulseaudio-daemon +yajl
PROVIDES:=mpd PROVIDES:=mpd
VARIANT:=full VARIANT:=full
endef endef
@ -100,90 +99,110 @@ endef
EXTRA_LDFLAGS += $(if $(ICONV_FULL),-liconv,-Wl,--whole-archive -liconv -Wl,--no-whole-archive) -Wl,-rpath-link=$(STAGING_DIR)/usr/lib/pulseaudio EXTRA_LDFLAGS += $(if $(ICONV_FULL),-liconv,-Wl,--whole-archive -liconv -Wl,--no-whole-archive) -Wl,-rpath-link=$(STAGING_DIR)/usr/lib/pulseaudio
CONFIGURE_ARGS += \ MESON_ARGS += \
$(call autoconf_bool,CONFIG_IPV6,ipv6) \ -Ddocumentation=false \
--disable-debug \ -Dtest=false \
--disable-documentation \ -Dsyslog=enabled \
--disable-test \ -Dinotify=true \
--disable-aac \ -Ddaemon=false \
--disable-adplug \ -Dsystemd=disabled \
--disable-ao \ -Dtcp=true \
--disable-audiofile \ -Dipv6=$(if $(CONFIG_IPV6),enabled,disabled) \
--disable-bzip2 \ -Dlocal_socket=true \
--disable-cdio-paranoia \ -Ddsd=false \
--disable-fluidsynth \ -Ddatabase=true \
--disable-wildmidi \ -Dlibmpdclient=enabled \
--disable-gme \ -Dneighbor=false \
--enable-inotify \ -Dudisks=disabled \
--disable-icu \ -Dwebdav=enabled \
--enable-iconv \ -Dcue=true \
--disable-iso9660 \ -Dcdio_paranoia=disabled \
--disable-jack \ -Dcurl=enabled \
--disable-roar \ -Dnfs=disabled \
--disable-libwrap \ -Dsmbclient=disabled \
--disable-lsr \ -Dqobuz=disabled \
--disable-mad \ -Dtidal=disabled \
--disable-mikmod \ -Dbzip2=disabled \
--disable-modplug \ -Diso9660=disabled \
--disable-mpc \ -Dzzip=disabled \
--disable-nfs \ -Dchromaprint=disabled \
--disable-openal \ -Dadplug=disabled \
--disable-opus \ -Daudiofile=disabled \
--disable-sidplay \ -Dfaad=disabled \
--disable-smbclient \ -Dflac=enabled \
--disable-sndfile \ -Dfluidsynth=disabled \
--disable-solaris-output \ -Dgme=disabled \
--disable-sqlite \ -Dmad=disabled \
--disable-systemd-daemon \ -Dmikmod=disabled \
--disable-lame-encoder \ -Dmodplug=disabled \
--disable-twolame-encoder \ -Dmpcdec=disabled \
--disable-shine-encoder \ -Dopus=disabled \
--disable-vorbis-encoder \ -Dsidplay=disabled \
--enable-wave-encoder \ -Dsndfile=disabled \
--disable-wavpack \ -Dwavpack=disabled \
--enable-webdav \ -Dwildmidi=disabled \
--disable-zzip \ -Dvorbisenc=disabled \
--with-zeroconf=no \ -Dlame=disabled \
--disable-soxr \ -Dtwolame=disabled \
--enable-curl \ -Dshine=disabled \
--enable-httpd-output \ -Dwave_encoder=true \
$(call autoconf_bool,CONFIG_AUDIO_SUPPORT,alsa) \ -Dlibsamplerate=disabled \
--enable-tcp \ -Dsoxr=disabled \
--disable-sndio \ -Dalsa=$(if CONFIG_AUDIO_SUPPORT,enabled,disabled) \
--disable-haiku -Dao=disabled \
-Dhttpd=true \
-Djack=disabled \
-Dopenal=disabled \
-Doss=disabled \
-Dsndio=disabled \
-Dsolaris_output=disabled \
-Ddbus=disabled \
-Dexpat=enabled \
-Dicu=disabled \
-Diconv=enabled \
-Dpcre=disabled \
-Dsqlite=disabled \
-Dzlib=enabled \
-Dzeroconf=disabled
ifeq ($(BUILD_VARIANT),full) ifeq ($(BUILD_VARIANT),full)
CONFIGURE_ARGS += \ MESON_ARGS += \
--enable-upnp \ -Dupnp=enabled \
--enable-ffmpeg \ -Dmms=enabled \
--enable-id3 \ -Dsoundcloud=enabled \
--enable-mms \ -Did3tag=enabled \
--disable-mpg123 \ -Dffmpeg=enabled \
--enable-pipe-output \ -Dmpg123=disabled \
--enable-recorder-output \ -Dtremor=disabled \
--enable-shout \ -Dvorbis=enabled \
--enable-pulse \ -Dfifo=true \
--disable-vorbis \ -Dpipe=true \
--enable-soundcloud -Dpulse=enabled \
-Drecorder=true \
-Dshout=enabled \
-Dyajl=enabled
endif endif
ifeq ($(BUILD_VARIANT),mini) ifeq ($(BUILD_VARIANT),mini)
# oggflac is not compatible with tremor # oggflac is not compatible with tremor
CONFIGURE_ARGS += \ MESON_ARGS += \
--disable-upnp \ -Dupnp=disabled \
--disable-fifo \ -Dmms=disabled \
--disable-ffmpeg \ -Dsoundcloud=disabled \
--disable-id3 \ -Did3tag=disabled \
--disable-mms \ -Dffmpeg=disabled \
--disable-shout \ -Dmpg123=enabled \
--disable-soundcloud \ -Dtremor=enabled \
--disable-pulse \ -Dvorbis=disabled \
--enable-vorbis \ -Dfifo=false \
--with-tremor=yes \ -Dpipe=false \
--disable-recorder-output -Dpulse=disabled \
-Drecorder=false \
-Dshout=disabled \
-Dyajl=disabled
endif endif
define Package/mpd/install define Package/mpd/install

View File

@ -1,6 +1,6 @@
--- a/src/decoder/plugins/FfmpegDecoderPlugin.cxx --- a/src/decoder/plugins/FfmpegDecoderPlugin.cxx
+++ b/src/decoder/plugins/FfmpegDecoderPlugin.cxx +++ b/src/decoder/plugins/FfmpegDecoderPlugin.cxx
@@ -937,6 +937,7 @@ static const char *const ffmpeg_mime_typ @@ -775,6 +775,7 @@ static const char *const ffmpeg_mime_typ
"audio/qcelp", "audio/qcelp",
"audio/vorbis", "audio/vorbis",
"audio/vorbis+ogg", "audio/vorbis+ogg",

View File

@ -1,16 +0,0 @@
--- a/src/decoder/plugins/FfmpegDecoderPlugin.cxx
+++ b/src/decoder/plugins/FfmpegDecoderPlugin.cxx
@@ -478,6 +478,13 @@ ffmpeg_probe(DecoderClient *client, Inpu
unsigned char buffer[BUFFER_SIZE];
size_t nbytes = decoder_read(client, is, buffer, BUFFER_SIZE);
+
+ if ((nbytes > 0) && (nbytes < 1024))
+ {
+ // Gobble some more data if header is small
+ nbytes += decoder_read(client, is, buffer + nbytes, BUFFER_SIZE - nbytes);
+ }
+
if (nbytes <= PADDING)
return nullptr;