mpd: add explicit upnp support option

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Gustavo Zacarias 2014-10-28 09:48:08 -03:00 committed by Thomas Petazzoni
parent 7521604c1b
commit ee3b9d9c6c
2 changed files with 15 additions and 0 deletions

View File

@ -265,6 +265,14 @@ config BR2_PACKAGE_MPD_TCP
You want this on if mpd and the client(s) work You want this on if mpd and the client(s) work
on different machines (the usual scenario). on different machines (the usual scenario).
config BR2_PACKAGE_MPD_UPNP
bool "UPnp"
select BR2_PACKAGE_EXPAT
select BR2_PACKAGE_LIBUPNP
help
Enable mpd UPnP client support.
endif endif
comment "mpd needs a toolchain w/ C++, threads, wchar" comment "mpd needs a toolchain w/ C++, threads, wchar"

View File

@ -199,6 +199,13 @@ else
MPD_CONF_OPTS += --disable-twolame-encoder MPD_CONF_OPTS += --disable-twolame-encoder
endif endif
ifeq ($(BR2_PACKAGE_MPD_UPNP),y)
MPD_DEPENDENCIES += expat libupnp
MPD_CONF_OPTS += --enable-upnp
else
MPD_CONF_OPTS += --disable-upnp
endif
ifeq ($(BR2_PACKAGE_MPD_VORBIS),y) ifeq ($(BR2_PACKAGE_MPD_VORBIS),y)
MPD_DEPENDENCIES += libvorbis MPD_DEPENDENCIES += libvorbis
MPD_CONF_OPTS += --enable-vorbis --enable-vorbis-encoder MPD_CONF_OPTS += --enable-vorbis --enable-vorbis-encoder