package/mpd: add option to enable or disable OSS support
authorJörg Krause <jkrause@posteo.de>
Mon, 8 Dec 2014 22:44:54 +0000 (23:44 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 9 Dec 2014 18:50:20 +0000 (19:50 +0100)
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>
package/mpd/Config.in
package/mpd/mpd.mk

index db77ddffa3bf37d8b058b70c57ec5bad90e270a4..0e115f6422e9e0f3637b26afc15e352bea54f890 100644 (file)
@@ -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
index 85bbe8bea1a8d3b8186f112615d5a8f6b0b467f1..132ad44faa2f70b905e864161da5a4ae2900736f 100644 (file)
@@ -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