Explorar el Código

mpd: add jack output support option

[Thomas: reworked patch on top of the latest master.]

Signed-off-by: Pieter De Gendt <pieter.degendt@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Pieter De Gendt hace 11 años
padre
commit
9f8180d425
Se han modificado 2 ficheros con 19 adiciones y 0 borrados
  1. 12 0
      package/mpd/Config.in
  2. 7 0
      package/mpd/mpd.mk

+ 12 - 0
package/mpd/Config.in

@@ -229,6 +229,18 @@ config BR2_PACKAGE_MPD_AO
 	help
 	help
 	  Enable libao output support.
 	  Enable libao output support.
 
 
+config BR2_PACKAGE_MPD_JACK2
+	bool "jack2"
+	depends on BR2_LARGEFILE # jack2 -> libsndfile
+	depends on BR2_ARCH_HAS_ATOMICS
+	select BR2_PACKAGE_JACK2
+	help
+	  Enable jack output support.
+
+comment "jack support needs a toolchain w/ largefile"
+	depends on BR2_ARCH_HAS_ATOMICS
+	depends on !BR2_LARGEFILE
+
 config BR2_PACKAGE_MPD_PULSEAUDIO
 config BR2_PACKAGE_MPD_PULSEAUDIO
 	bool "pulseaudio"
 	bool "pulseaudio"
 	depends on BR2_LARGEFILE # pulseaudio -> libsndfile
 	depends on BR2_LARGEFILE # pulseaudio -> libsndfile

+ 7 - 0
package/mpd/mpd.mk

@@ -92,6 +92,13 @@ else
 MPD_CONF_OPTS += --disable-flac
 MPD_CONF_OPTS += --disable-flac
 endif
 endif
 
 
+ifeq ($(BR2_PACKAGE_MPD_JACK2),y)
+MPD_DEPENDENCIES += jack2
+MPD_CONF_OPTS += --enable-jack
+else
+MPD_CONF_OPTS += --disable-jack
+endif
+
 ifeq ($(BR2_PACKAGE_MPD_LAME),y)
 ifeq ($(BR2_PACKAGE_MPD_LAME),y)
 MPD_DEPENDENCIES += lame
 MPD_DEPENDENCIES += lame
 MPD_CONF_OPTS += --enable-lame-encoder
 MPD_CONF_OPTS += --enable-lame-encoder