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 <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Fabrice Fontaine 2018-03-11 10:33:58 +01:00 committed by Thomas Petazzoni
parent cc22fb65c3
commit 252218881b
2 changed files with 4 additions and 2 deletions

View File

@ -309,7 +309,7 @@ config BR2_PACKAGE_MPD_TCP
config BR2_PACKAGE_MPD_UPNP config BR2_PACKAGE_MPD_UPNP
bool "UPnP" bool "UPnP"
select BR2_PACKAGE_EXPAT select BR2_PACKAGE_EXPAT
select BR2_PACKAGE_LIBUPNP select BR2_PACKAGE_LIBUPNP18 if !BR2_PACKAGE_LIBUPNP
help help
Enable MPD UPnP client support. Enable MPD UPnP client support.

View File

@ -236,7 +236,9 @@ MPD_CONF_OPTS += --disable-twolame-encoder
endif endif
ifeq ($(BR2_PACKAGE_MPD_UPNP),y) ifeq ($(BR2_PACKAGE_MPD_UPNP),y)
MPD_DEPENDENCIES += expat libupnp MPD_DEPENDENCIES += \
expat \
$(if $(BR2_PACKAGE_LIBUPNP),libupnp,libupnp18)
MPD_CONF_OPTS += --enable-upnp MPD_CONF_OPTS += --enable-upnp
else else
MPD_CONF_OPTS += --disable-upnp MPD_CONF_OPTS += --disable-upnp