package/mpd: enable support for libsmbclient
authorJörg Krause <jkrause@posteo.de>
Thu, 16 Oct 2014 22:29:00 +0000 (00:29 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 27 Oct 2014 21:51:24 +0000 (22:51 +0100)
Signed-off-by: Jörg Krause <jkrause@posteo.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/mpd/Config.in
package/mpd/mpd.mk

index e62a37d273642f58e3e12ed096c237b82a01b8c7..09df556e44da8d60f401d0e1e48b5c197fd848d5 100644 (file)
@@ -182,6 +182,14 @@ config BR2_PACKAGE_MPD_CURL
        help
          Enable curl streaming (http) support.
 
+config BR2_PACKAGE_MPD_LIBSMBCLIENT
+       bool "samba"
+       depends on !BR2_nios2 # samba
+       select BR2_PACKAGE_SAMBA
+       select BR2_PACKAGE_SAMBA_LIBSMBCLIENT
+       help
+         Enable Samba support.
+
 config BR2_PACKAGE_MPD_SOUNDCLOUD
        bool "soundcloud"
        select BR2_PACKAGE_YAJL
index 92d7292824c47d79560b8bc8ac51baae65c9897a..ecd2a77fb5c3c3d9628436aedcbd668e8d67e89d 100644 (file)
@@ -90,6 +90,13 @@ else
 MPD_CONF_OPTS += --disable-lame-encoder
 endif
 
+ifeq ($(BR2_PACKAGE_MPD_LIBSMBCLIENT),y)
+MPD_DEPENDENCIES += samba
+MPD_CONF_OPTS += --enable-smbclient
+else
+MPD_CONF_OPTS += --disable-smbclient
+endif
+
 ifeq ($(BR2_PACKAGE_MPD_LIBSAMPLERATE),y)
 MPD_DEPENDENCIES += libsamplerate
 MPD_CONF_OPTS += --enable-lsr