include $(TOPDIR)/rules.mk
PKG_NAME:=mpd
-PKG_VERSION:=0.21.24
+PKG_VERSION:=0.21.25
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://www.musicpd.org/download/mpd/0.21/
-PKG_HASH:=84632a7e82e672b3a6d71651a75d05fb7acd62645c33e3f3af5a1067cfa64cd6
+PKG_HASH:=20a0ad01bf327b2dbeb6ae8e1af952cb0de83d2d63fab0fa4b7183a74765c201
PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
PKG_LICENSE:=GPL-2.0-or-later
TITLE:=Music Player Daemon
URL:=https://www.musicpd.org/
DEPENDS:= +zlib +libcurl +libpthread +libmpdclient +libstdcpp $(ICONV_DEPENDS) \
- +AUDIO_SUPPORT:alsa-lib +boost +libexpat +libflac +libid3tag +libfaad2 +USE_UCLIBC:icu
+ +AUDIO_SUPPORT:alsa-lib +boost +libexpat +libflac +libid3tag +libfaad2
endef
define Package/mpd/Default/description
define Package/mpd-full
$(call Package/mpd/Default)
TITLE+= (full)
- DEPENDS+= +libffmpeg +libvorbis +libmms +libupnp +libshout +pulseaudio-daemon +yajl
+ DEPENDS+= +libffmpeg +libvorbis +libmms +libupnp +libshout +AUDIO_SUPPORT:pulseaudio-daemon +yajl
PROVIDES:=mpd
VARIANT:=full
endef
endef
TARGET_LDFLAGS += \
- $(if $(ICONV_FULL),-liconv,-Wl,--whole-archive -liconv -Wl,--no-whole-archive) \
- $(if $(CONFIG_USE_GLIBC),-lpthread) \
- -Wl,-rpath-link=$(STAGING_DIR)/usr/lib/pulseaudio
+ -liconv \
+ $(if $(CONFIG_USE_GLIBC),-lpthread)
+
+ifeq ($(CONFIG_AUDIO_SUPPORT),y)
+ TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib/pulseaudio
+endif
MESON_ARGS += \
-Ddocumentation=false \
-Dwave_encoder=true \
-Dlibsamplerate=disabled \
-Dsoxr=disabled \
- -Dalsa=$(if $(CONFIG_AUDIO_SUPPORT),enabled,disabled) \
+ -Dalsa=$(if $(CONFIG_AUDIO_SUPPORT),en,dis)abled \
-Dao=disabled \
-Dhttpd=true \
-Djack=disabled \
-Dsolaris_output=disabled \
-Ddbus=disabled \
-Dexpat=enabled \
- -Dicu=$(if $(CONFIG_USE_UCLIBC),enabled,disabled) \
- -Diconv=$(if $(CONFIG_USE_UCLIBC),disabled,enabled) \
+ -Dicu=disabled \
+ -Diconv=enabled \
-Dpcre=disabled \
-Dsqlite=disabled \
-Dzlib=enabled \
-Dvorbis=enabled \
-Dfifo=true \
-Dpipe=true \
- -Dpulse=enabled \
+ -Dpulse=$(if $(CONFIG_AUDIO_SUPPORT),en,dis)abled \
-Drecorder=true \
-Dshout=enabled \
-Dyajl=enabled
--- /dev/null
+--- a/src/lib/icu/meson.build
++++ b/src/lib/icu/meson.build
+@@ -18,7 +18,7 @@ if icu_dep.found()
+ 'Init.cxx',
+ ]
+ elif not get_option('iconv').disabled()
+- have_iconv = compiler.has_function('iconv')
++ have_iconv = compiler.has_function('iconv', prefix : '#include <iconv.h>')
+ conf.set('HAVE_ICONV', have_iconv)
+ if not have_iconv and get_option('iconv').enabled()
+ error('iconv() not available')