mpd: add explicit upnp support option
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Tue, 28 Oct 2014 12:48:08 +0000 (09:48 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 28 Oct 2014 17:52:00 +0000 (18:52 +0100)
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/mpd/Config.in
package/mpd/mpd.mk

index ed0df7f00a6b67b36315d2fc8fcbc5cccbe538ff..ac9ca95235c74619ee3b94878b6c1307a534c087 100644 (file)
@@ -265,6 +265,14 @@ config BR2_PACKAGE_MPD_TCP
 
          You want this on if mpd and the client(s) work
          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
 
 comment "mpd needs a toolchain w/ C++, threads, wchar"
index b3ff6f5c387478003bb1cc56ae120516abfcd094..d7b912bd2870a2fc516555c659914927c55e9605 100644 (file)
@@ -199,6 +199,13 @@ else
 MPD_CONF_OPTS += --disable-twolame-encoder
 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)
 MPD_DEPENDENCIES += libvorbis
 MPD_CONF_OPTS += --enable-vorbis --enable-vorbis-encoder