From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] jack2: allow to choose the mode to operate jackd
Date: Sun, 27 Dec 2015 19:10:23 +0100 [thread overview]
Message-ID: <20151227181022.GI3483@free.fr> (raw)
In-Reply-To: <1431417818-12630-1-git-send-email-antoine.tenart@free-electrons.com>
Antoine, All,
On 2015-05-12 10:03 +0200, Antoine Tenart spake thusly:
> jack2 allows to use three modes:
> - A legacy jackd service alone.
> - A DBUS jackd service alone.
> - A mixture between the standalone jackd and the DBUS jackd.
>
> This patch adds the possibility to choose between these three modes,
> while the legacy jackd was the only option before.
>
> In addition, the jack_control tool is removed when the DBUS jackd is not
> available, as this tool is used to control it.
I've tried to update that patch, clean it up a bit, and I just sent a
new version:
http://lists.busybox.net/pipermail/buildroot/2015-December/148388.html
I'd like your opinion on this new version.
Regards,
Yann E. MORIN.
> Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
> ---
> package/jack2/Config.in | 40 ++++++++++++++++++++++++++++++++++++++++
> package/jack2/jack2.mk | 22 +++++++++++++++++++++-
> 2 files changed, 61 insertions(+), 1 deletion(-)
>
> diff --git a/package/jack2/Config.in b/package/jack2/Config.in
> index eeeb8daad8bd..26869a7aac1c 100644
> --- a/package/jack2/Config.in
> +++ b/package/jack2/Config.in
> @@ -20,6 +20,46 @@ config BR2_PACKAGE_JACK2
>
> http://jackaudio.org/
>
> +if BR2_PACKAGE_JACK2
> +
> +choice
> + prompt "jack2 mode"
> + default BR2_PACKAGE_JACK2_LEGACY
> + help
> + https://github.com/jackaudio/jackaudio.github.com/wiki/JackDbusPackaging
> +
> +config BR2_PACKAGE_JACK2_LEGACY
> + bool "legacy jack2 only"
> + help
> + Build and use only jackd.
> +
> +config BR2_PACKAGE_JACK2_DBUS
> + bool "dbus jack2 only"
> + depends on !BR2_STATIC_LIBS
> + depends on BR2_USE_WCHAR
> + select BR2_PACKAGE_DBUS
> + select BR2_PACKAGE_DBUS_PYTHON
> + select BR2_PACKAGE_PYTHON
> + select BR2_PACKAGE_PYTHON_PYEXPAT
> + help
> + Build on use only jackdbus.
> +
> +config BR2_PACKAGE_JACK2_CLASSIC
> + bool "legacy jack2 and dbus jack2 mixture"
> + depends on !BR2_STATIC_LIBS
> + depends on BR2_USE_WCHAR
> + select BR2_PACKAGE_DBUS
> + select BR2_PACKAGE_DBUS_PYTHON
> + select BR2_PACKAGE_PYTHON
> + select BR2_PACKAGE_PYTHON_PYEXPAT
> + help
> + Build jackd and jackdbus, and allow to use both of
> + these tools.
> +
> +endchoice
> +
> +endif
> +
> comment "jack2 needs a toolchain w/ threads, C++"
> depends on BR2_USE_MMU
> depends on BR2_ARCH_HAS_ATOMICS
> diff --git a/package/jack2/jack2.mk b/package/jack2/jack2.mk
> index 73328d3fd408..72f2a23d83c0 100644
> --- a/package/jack2/jack2.mk
> +++ b/package/jack2/jack2.mk
> @@ -10,12 +10,24 @@ JACK2_LICENSE = GPLv2+ (jack server), LGPLv2.1+ (jack library)
> JACK2_DEPENDENCIES = libsamplerate libsndfile alsa-lib host-python
> JACK2_INSTALL_STAGING = YES
>
> +JACK2_CONF_OPTS = --alsa
> +
> +ifeq ($(BR2_PACKAGE_JACK2_DBUS),y)
> +JACK2_DEPENDENCIES += dbus
> +JACK2_CONF_OPTS += --dbus
> +endif
> +
> +ifeq ($(BR2_PACKAGE_JACK2_CLASSIC),y)
> +JACK2_DEPENDENCIES += dbus
> +JACK2_CONF_OPTS += --dbus --classic
> +endif
> +
> define JACK2_CONFIGURE_CMDS
> (cd $(@D); \
> $(TARGET_CONFIGURE_OPTS) \
> $(HOST_DIR)/usr/bin/python2 ./waf configure \
> --prefix=/usr \
> - --alsa \
> + $(JACK2_CONF_OPTS) \
> )
> endef
>
> @@ -33,4 +45,12 @@ define JACK2_INSTALL_STAGING_CMDS
> install)
> endef
>
> +define JACK2_REMOVE_JACK_CONTROL
> + $(RM) -f $(TARGET_DIR)/usr/bin/jack_control
> +endef
> +
> +ifeq ($(BR2_PACKAGE_JACK2_LEGACY),y)
> +JACK2_POST_INSTALL_TARGET_HOOKS += JACK2_REMOVE_JACK_CONTROL
> +endif
> +
> $(eval $(generic-package))
> --
> 2.4.0
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
prev parent reply other threads:[~2015-12-27 18:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-12 8:03 [Buildroot] [PATCH] jack2: allow to choose the mode to operate jackd Antoine Tenart
2015-12-27 18:10 ` Yann E. MORIN [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151227181022.GI3483@free.fr \
--to=yann.morin.1998@free.fr \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox