summaryrefslogtreecommitdiffstats
path: root/package/mpd
diff options
context:
space:
mode:
authorJörg Krause <jkrause@posteo.de>2014-12-08 23:44:53 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-12-09 19:49:21 +0100
commit761ca24c3bcec7cf7d328c2ce127bca6a3fa5670 (patch)
tree32a2894bc5cf5d5cd226dcabab5404a9d6eb8359 /package/mpd
parent7c1c333ff6037cbbc120471e4e2dfe0f57714087 (diff)
downloadbuildroot-761ca24c3bcec7cf7d328c2ce127bca6a3fa5670.tar.gz
buildroot-761ca24c3bcec7cf7d328c2ce127bca6a3fa5670.zip
package/mpd: enable neighbor discovery support
Enable support for neighbor discovery useful in Samba and UPnP networks. [Thomas: add dependency on smbclient or upnp plugin, without which the neighbor discovery support isn't very useful.] Signed-off-by: Jörg Krause <jkrause@posteo.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/mpd')
-rw-r--r--package/mpd/Config.in12
-rw-r--r--package/mpd/mpd.mk6
2 files changed, 18 insertions, 0 deletions
diff --git a/package/mpd/Config.in b/package/mpd/Config.in
index 4da9fa5d3b..db77ddffa3 100644
--- a/package/mpd/Config.in
+++ b/package/mpd/Config.in
@@ -274,6 +274,18 @@ config BR2_PACKAGE_MPD_AVAHI_SUPPORT
comment "avahi support needs a toolchain w/ dynamic library"
depends on BR2_PREFER_STATIC_LIB
+config BR2_PACKAGE_MPD_NEIGHBOR_DISCOVERY_SUPPORT
+ bool "neighbor discovery support"
+ depends on BR2_PACKAGE_MPD_LIBSMBCLIENT || BR2_PACKAGE_MPD_UPNP
+ help
+ Enable support for neighbor discovery.
+ This option can be used in conjunction with the smbclient
+ plugin to provide a list of SMB/CIFS servers or with the
+ UPnP plugin to provide a list of UPnP servers on the local
+ network. The neighbor plugin needs configuration in
+ mpd.conf. For further information take a look at the MPD
+ documentation.
+
config BR2_PACKAGE_MPD_TCP
bool "tcp sockets"
default y
diff --git a/package/mpd/mpd.mk b/package/mpd/mpd.mk
index 3be2ae51bc..85bbe8bea1 100644
--- a/package/mpd/mpd.mk
+++ b/package/mpd/mpd.mk
@@ -162,6 +162,12 @@ else
MPD_CONF_OPTS += --disable-mpc
endif
+ifeq ($(BR2_PACKAGE_MPD_NEIGHBOR_DISCOVERY_SUPPORT),y)
+MPD_CONF_OPTS += --enable-neighbor-plugins
+else
+MPD_CONF_OPTS += --disable-neighbor-plugins
+endif
+
ifeq ($(BR2_PACKAGE_MPD_OPUS),y)
MPD_DEPENDENCIES += opus libogg
MPD_CONF_OPTS += --enable-opus
OpenPOWER on IntegriCloud