1 # Copyright 1999-2023 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT
=( python3_
{9.
.11} )
7 PYTHON_REQ_USE
="threads(+)"
8 inherit flag-o-matic python-single-r1 waf-utils multilib-minimal
10 EGIT_REPO_URI
="https://github.com/LADI/jack2.git"
12 KEYWORDS
="amd64 arm arm64 ~loong ppc ppc64 ~riscv x86"
14 DESCRIPTION
="LADI JACK2 is version of the jackdmp, a C++ version of the JACK low-latency audio server for multi-processor machines."
15 HOMEPAGE
="https://github.com/LADI/jack2"
17 LICENSE
="GPL-2+ LGPL-2.1+"
19 IUSE
="+alsa doc ieee1394 libsamplerate metadata opus pam"
21 ${PYTHON_REQUIRED_USE}"
24 alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
25 sys-apps/dbus[${MULTILIB_USEDEP}]
26 libsamplerate? ( media-libs/libsamplerate[${MULTILIB_USEDEP}] )
27 ieee1394? ( media-libs/libffado[${MULTILIB_USEDEP}] )
28 metadata? ( sys-libs/db:=[${MULTILIB_USEDEP}] )
29 opus? ( media-libs/opus[custom-modes,${MULTILIB_USEDEP}] )"
32 pam? ( sys-auth/realtime-base )
33 !media-sound/jack-audio-connection-kit
34 !media-video/pipewire[jack-sdk(-)]"
38 doc? ( app-doc/doxygen )"
41 DOCS
=( AUTHORS.rst ChangeLog.rst README.rst README_NETJACK2
)
48 python_fix_shebang waf
52 multilib_src_configure
() {
53 # clients crash if built with lto
54 # https://github.com/jackaudio/jack2/issues/485
58 --mandir="${EPREFIX}"/usr
/share
/man
/man1
# override eclass' for man1
63 --doxygen=$
(multilib_native_usex doc
)
64 --firewire=$
(usex ieee1394
)
68 --samplerate=$
(usex libsamplerate
)
69 --systemd=$
(multilib_native_usex systemd $
(usex classic
))
72 # obsolete options, migrated to media-sound/jack-example-tools
73 # and will be removed entirely next version
80 waf-utils_src_configure
"${wafargs[@]}"
83 multilib_src_compile
() {
87 multilib_src_install
() {