aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jörg Krause <jkrause@posteo.de>2014-12-08 23:44:54 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-12-09 19:50:20 +0100
commit25c083b4475756b557910b7c5233f8ae2efdee2b (patch)
tree89a24ec01e653a0207fc37ed9b9d57b76cc6a732
parent761ca24c3bcec7cf7d328c2ce127bca6a3fa5670 (diff)
downloadbuildroot-25c083b4475756b557910b7c5233f8ae2efdee2b.tar.gz
buildroot-25c083b4475756b557910b7c5233f8ae2efdee2b.tar.bz2
package/mpd: add option to enable or disable OSS support
By default, the OSS support is enabled, which may not necessarily be useful on most Linux systems that use ALSA. [Thomas: tweak commit title and log.] Signed-off-by: Jörg Krause <jkrause@posteo.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/mpd/Config.in5
-rw-r--r--package/mpd/mpd.mk6
2 files changed, 11 insertions, 0 deletions
diff --git a/package/mpd/Config.in b/package/mpd/Config.in
index db77ddffa3..0e115f6422 100644
--- a/package/mpd/Config.in
+++ b/package/mpd/Config.in
@@ -245,6 +245,11 @@ comment "jack support needs a toolchain w/ largefile"
depends on BR2_ARCH_HAS_ATOMICS
depends on !BR2_LARGEFILE
+config BR2_PACKAGE_MPD_OSS
+ bool "oss"
+ help
+ Enable OSS (Open Sound System) output support.
+
config BR2_PACKAGE_MPD_PULSEAUDIO
bool "pulseaudio"
depends on BR2_LARGEFILE # pulseaudio -> libsndfile
diff --git a/package/mpd/mpd.mk b/package/mpd/mpd.mk
index 85bbe8bea1..132ad44faa 100644
--- a/package/mpd/mpd.mk
+++ b/package/mpd/mpd.mk
@@ -175,6 +175,12 @@ else
MPD_CONF_OPTS += --disable-opus
endif
+ifeq ($(BR2_PACKAGE_MPD_OSS),y)
+MPD_CONF_OPTS += --enable-oss
+else
+MPD_CONF_OPTS += --disable-oss
+endif
+
ifeq ($(BR2_PACKAGE_MPD_PULSEAUDIO),y)
MPD_DEPENDENCIES += pulseaudio
MPD_CONF_OPTS += --enable-pulse