diff mbox

[1/1] MPD: Add jack output support option

Message ID 1407485662-1712-1-git-send-email-pieter.degendt@gmail.com
State Superseded
Headers show

Commit Message

Pieter De Gendt Aug. 8, 2014, 8:14 a.m. UTC
Signed-off-by: Pieter De Gendt <pieter.degendt@gmail.com>
---
 package/mpd/Config.in |   11 +++++++++++
 package/mpd/mpd.mk    |    5 +++++
 2 files changed, 16 insertions(+)

Comments

Gustavo Zacarias Aug. 8, 2014, 12:49 p.m. UTC | #1
On 08/08/2014 05:14 AM, Pieter De Gendt wrote:

Hi.
A couple of details...

> +config BR2_PACKAGE_MPD_JACK2
> +	bool "jack2"
> +	depends on BR2_LARGEFILE # libsndfile
> +	depends on BR2_TOOLCHAIN_HAS_THREADS # alsa-lib
> +	depends on BR2_USE_MMU # fork()
> +	depends on BR2_INSTALL_LIBSTDCPP
> +	depends on BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS
> +	select BR2_PACKAGE_JACK2
> +	help
> +	  Enable jack output support.
> +

The THREADS, MMU and LIBSTDCPP depends are unnecessary since mpd already
requires them, so you can drop them like it's already done for all of
the other options for mpd.
Also you're missing a comment when LARGEFILE & ATOMIC_INTRINSICS aren't
available telling that jack2 isn't available, similar to what's done for
pulseaudio for example.
Alpha-sorting the menu entry would be good too.
Otherwise it looks good.
Care to send a v2 patch with these fixes?
Thanks.
Regards.
Pieter De Gendt Aug. 8, 2014, 1:13 p.m. UTC | #2
On Fri, Aug 8, 2014 at 2:49 PM, Gustavo Zacarias <gustavo@zacarias.com.ar>
wrote:

> On 08/08/2014 05:14 AM, Pieter De Gendt wrote:
>
> Hi.
> A couple of details...
>
> > +config BR2_PACKAGE_MPD_JACK2
> > +     bool "jack2"
> > +     depends on BR2_LARGEFILE # libsndfile
> > +     depends on BR2_TOOLCHAIN_HAS_THREADS # alsa-lib
> > +     depends on BR2_USE_MMU # fork()
> > +     depends on BR2_INSTALL_LIBSTDCPP
> > +     depends on BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS
> > +     select BR2_PACKAGE_JACK2
> > +     help
> > +       Enable jack output support.
> > +
>
> The THREADS, MMU and LIBSTDCPP depends are unnecessary since mpd already
> requires them, so you can drop them like it's already done for all of
> the other options for mpd.
> Also you're missing a comment when LARGEFILE & ATOMIC_INTRINSICS aren't
> available telling that jack2 isn't available, similar to what's done for
> pulseaudio for example.
> Alpha-sorting the menu entry would be good too.
> Otherwise it looks good.
> Care to send a v2 patch with these fixes?
> Thanks.
> Regards.
>
>
Done, thanks for comments.
Regards.
diff mbox

Patch

diff --git a/package/mpd/Config.in b/package/mpd/Config.in
index f5f5b34..efe1abd 100644
--- a/package/mpd/Config.in
+++ b/package/mpd/Config.in
@@ -52,6 +52,17 @@  config BR2_PACKAGE_MPD_PULSEAUDIO
 comment "pulseaudio support needs a toolchain w/ largefile"
 	depends on !BR2_LARGEFILE
 
+config BR2_PACKAGE_MPD_JACK2
+	bool "jack2"
+	depends on BR2_LARGEFILE # libsndfile
+	depends on BR2_TOOLCHAIN_HAS_THREADS # alsa-lib
+	depends on BR2_USE_MMU # fork()
+	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS
+	select BR2_PACKAGE_JACK2
+	help
+	  Enable jack output support.
+
 config BR2_PACKAGE_MPD_BZIP2
 	bool "bzip2"
 	select BR2_PACKAGE_BZIP2
diff --git a/package/mpd/mpd.mk b/package/mpd/mpd.mk
index e2ee760..4ac5eea 100644
--- a/package/mpd/mpd.mk
+++ b/package/mpd/mpd.mk
@@ -40,6 +40,11 @@  MPD_DEPENDENCIES += pulseaudio
 MPD_CONF_OPT += --enable-pulse
 endif
 
+ifeq ($(BR2_PACKAGE_MPD_JACK2),y)
+MPD_DEPENDENCIES += jack2
+MPD_CONF_OPT += --enable-jack
+endif
+
 ifeq ($(BR2_PACKAGE_MPD_BZIP2),y)
 MPD_DEPENDENCIES += bzip2
 MPD_CONF_OPT += --enable-bzip2