From 252218881b1e807ca4d625f457675f01d1158f99 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sun, 11 Mar 2018 10:33:58 +0100 Subject: [PATCH] mpd: add support for libupnp18 Instead of selecting BR2_PACKAGE_LIBUPNP, select BR2_PACKAGE_LIBUPNP18 if BR2_PACKAGE_LIBUPNP is not enabled Signed-off-by: Fabrice Fontaine Signed-off-by: Thomas Petazzoni --- package/mpd/Config.in | 2 +- package/mpd/mpd.mk | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package/mpd/Config.in b/package/mpd/Config.in index 5991b6f4bb..bad32f8440 100644 --- a/package/mpd/Config.in +++ b/package/mpd/Config.in @@ -309,7 +309,7 @@ config BR2_PACKAGE_MPD_TCP config BR2_PACKAGE_MPD_UPNP bool "UPnP" select BR2_PACKAGE_EXPAT - select BR2_PACKAGE_LIBUPNP + select BR2_PACKAGE_LIBUPNP18 if !BR2_PACKAGE_LIBUPNP help Enable MPD UPnP client support. diff --git a/package/mpd/mpd.mk b/package/mpd/mpd.mk index 26e82af0a8..f50e3d90c7 100644 --- a/package/mpd/mpd.mk +++ b/package/mpd/mpd.mk @@ -236,7 +236,9 @@ MPD_CONF_OPTS += --disable-twolame-encoder endif ifeq ($(BR2_PACKAGE_MPD_UPNP),y) -MPD_DEPENDENCIES += expat libupnp +MPD_DEPENDENCIES += \ + expat \ + $(if $(BR2_PACKAGE_LIBUPNP),libupnp,libupnp18) MPD_CONF_OPTS += --enable-upnp else MPD_CONF_OPTS += --disable-upnp -- 2.30.2