aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/portaudio/portaudio-v19_19.7.0.bb
blob: 2bf4d0a4491dd469bf65cfdadb6886fdac00d6b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
SUMMARY = "A portable audio library"
SECTION = "libs/multimedia"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=26107732c2ab637c5710446fcfaf02df"

PV .= "+git"

SRC_URI = "git://github.com/PortAudio/portaudio.git;branch=master;protocol=https"
SRCREV = "929e2e8f7af281c5eb4fa07758930d542ec43d97"

S = "${WORKDIR}/git"

inherit cmake pkgconfig

EXTRA_OECMAKE += "-DBUILD_SHARED_LIBS=ON"

PACKAGECONFIG ??= "alsa jack"
PACKAGECONFIG[alsa] = ",,alsa-lib"
PACKAGECONFIG[jack] = ",,jack"
PACKAGECONFIG[examples] = "-DPA_BUILD_EXAMPLES=ON,-DPA_BUILD_EXAMPLES=OFF"

do_install:append() {
    if [ -d ${B}/examples ]; then
        install -d ${D}${bindir}
        for example in ${B}/examples/pa*; do
            install -m755 $example ${D}${bindir}/
        done
    fi
}