mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
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:
+3
-3
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user