mpd: fix compilation with uClibc-ng

With mpd's build system, it requires either an iconv built into the libc
or icu. Since uClibc-ng as configured by OpenWrt currently has no iconv,
use icu for it to work around the problem. This is the simplest solution.

Added a patch to use boost's rounding functions. They are more appropriate
and work with uClibc-ng.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2020-01-30 21:02:11 -08:00
parent 41834a33ac
commit c00f83241b
4 changed files with 397 additions and 3 deletions
+3 -3
View File
@@ -33,7 +33,7 @@ define Package/mpd/Default
TITLE:=Music Player Daemon
URL:=https://www.musicpd.org/
DEPENDS:= +zlib +libcurl +libpthread +libmpdclient +libstdcpp $(ICONV_DEPENDS) \
+AUDIO_SUPPORT:alsa-lib +boost +libexpat +libflac
+AUDIO_SUPPORT:alsa-lib +boost +libexpat +libflac +USE_UCLIBC:icu
endef
define Package/mpd/Default/description
@@ -158,8 +158,8 @@ MESON_ARGS += \
-Dsolaris_output=disabled \
-Ddbus=disabled \
-Dexpat=enabled \
-Dicu=disabled \
-Diconv=enabled \
-Dicu=$(if $(CONFIG_USE_UCLIBC),enabled,disabled) \
-Diconv=$(if $(CONFIG_USE_UCLIBC),disabled,enabled) \
-Dpcre=disabled \
-Dsqlite=disabled \
-Dzlib=enabled \