package/mpd: enable support for libnfs
authorJörg Krause <jkrause@posteo.de>
Thu, 16 Oct 2014 22:29:01 +0000 (00:29 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 27 Oct 2014 21:53:24 +0000 (22:53 +0100)
[Thomas: add missing comment for the toolchain dependency.]

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 09df556e44da8d60f401d0e1e48b5c197fd848d5..289b197f2467bf8725ea0d709eb0e0e3e2f5dcdd 100644 (file)
@@ -182,6 +182,16 @@ config BR2_PACKAGE_MPD_CURL
        help
          Enable curl streaming (http) support.
 
+config BR2_PACKAGE_MPD_LIBNFS
+       bool "nfs"
+       depends on BR2_TOOLCHAIN_HAS_NATIVE_RPC
+       select BR2_PACKAGE_LIBNFS
+       help
+         Enable Network File System (NFS) support.
+
+comment "nfs support needs a toolchain w/ RPC"
+       depends on !BR2_TOOLCHAIN_HAS_NATIVE_RPC
+
 config BR2_PACKAGE_MPD_LIBSMBCLIENT
        bool "samba"
        depends on !BR2_nios2 # samba
index ecd2a77fb5c3c3d9628436aedcbd668e8d67e89d..ef89f3d27501c9aeb6f8bb4a65056acbcac41268 100644 (file)
@@ -90,6 +90,13 @@ else
 MPD_CONF_OPTS += --disable-lame-encoder
 endif
 
+ifeq ($(BR2_PACKAGE_MPD_LIBNFS),y)
+MPD_DEPENDENCIES += libnfs
+MPD_CONF_OPTS += --enable-nfs
+else
+MPD_CONF_OPTS += --disable-nfs
+endif
+
 ifeq ($(BR2_PACKAGE_MPD_LIBSMBCLIENT),y)
 MPD_DEPENDENCIES += samba
 MPD_CONF_OPTS += --enable-smbclient