package/mpd: enable support for libsoxr
authorJörg Krause <jkrause@posteo.de>
Thu, 16 Oct 2014 22:28:59 +0000 (00:28 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 27 Oct 2014 21:51:09 +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 5ef1d3fe695ba43036b5fa2a3d98b2097af59754..e62a37d273642f58e3e12ed096c237b82a01b8c7 100644 (file)
@@ -46,6 +46,13 @@ config BR2_PACKAGE_MPD_LIBSAMPLERATE
          Enable libsamplerate input support.
          Select this for software sample rate conversion.
 
+config BR2_PACKAGE_MPD_LIBSOXR
+       bool "libsoxr"
+       select BR2_PACKAGE_LIBSOXR
+       help
+         Enable libsoxr resampler support.
+         The SoX Resampler library performs software sample-rate conversion.
+
 comment "Decoder plugins"
 
 config BR2_PACKAGE_MPD_AUDIOFILE
index b10a60accf9c5ff1a580ff879d2e5cde98bd1c62..92d7292824c47d79560b8bc8ac51baae65c9897a 100644 (file)
@@ -104,6 +104,13 @@ else
 MPD_CONF_OPTS += --disable-sndfile
 endif
 
+ifeq ($(BR2_PACKAGE_MPD_LIBSOXR),y)
+MPD_DEPENDENCIES += libsoxr
+MPD_CONF_OPTS += --enable-soxr
+else
+MPD_CONF_OPTS += --disable-soxr
+endif
+
 ifeq ($(BR2_PACKAGE_MPD_MAD),y)
 MPD_DEPENDENCIES += libid3tag libmad
 MPD_CONF_OPTS += --enable-mad