xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-multimedia/jack/jack_1.19.20.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1DESCRIPTION = "jackdmp is a C++ version of the JACK low-latency audio \
2server for multi-processor machines. It is a new implementation of the \
3JACK server core features that aims in removing some limitations of \
4the JACK1 design. The activation system has been changed for a data \
5flow model and lock-free programming techniques for graph access have \
6been used to have a more dynamic and robust system."
7SECTION = "libs/multimedia"
8
9LICENSE = "GPL-2.0-only & LGPL-2.1-only"
10LIC_FILES_CHKSUM = " \
11    file://common/jack/control.h;beginline=2;endline=21;md5=e6df0bf30cde8b3b825451459488195d \
12    file://common/jack/jack.h;beginline=1;endline=19;md5=6b736ed6b810592b135480a5e853392e \
13"
14
15DEPENDS = "libsamplerate0 libsndfile1 readline"
16
17SRC_URI = "git://github.com/jackaudio/jack2.git;branch=master;protocol=https"
18SRCREV = "a2fe7ec2fdbd315f112c8035282d94a429451178"
19
20S = "${WORKDIR}/git"
21
22inherit waf pkgconfig
23
24PACKAGECONFIG ??= "alsa"
25PACKAGECONFIG[alsa] = "--alsa=yes,--alsa=no,alsa-lib"
26# --dbus only stops building jackd -> add --classic
27PACKAGECONFIG[dbus] = "--dbus --classic,,dbus"
28PACKAGECONFIG[opus] = "--opus=yes,--opus=no,libopus"
29
30# portaudio is for windows builds only
31EXTRA_OECONF = "--portaudio=no"
32
33do_install:append() {
34	if ! ${@bb.utils.contains('PACKAGECONFIG', 'dbus', True, False, d)}; then
35		rm -f ${D}${bindir}/jack_control
36	fi
37}
38
39PACKAGES =+ "libjack jack-server jack-utils"
40
41RDEPENDS:jack-dev:remove = "${PN} (= ${EXTENDPKGV})"
42
43FILES:libjack = "${libdir}/*.so.* ${libdir}/jack/*.so"
44FILES:jack-server = " \
45    ${datadir}/dbus-1/services \
46    ${bindir}/jackdbus \
47    ${bindir}/jackd \
48"
49FILES:jack-utils = "${bindir}/*"
50
51FILES:${PN}-doc += " ${datadir}/jack-audio-connection-kit/reference/html/*"
52