blob: a9cdfac8a931f0f94ace5ce11155ca6ee0835267 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001SUMMARY = "OpenAL is a cross-platform 3D audio API"
2HOMEPAGE = "http://kcat.strangesoft.net/openal.html"
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=0f159f19f9377e1895fbb477d5a7953e"
5
6inherit cmake pkgconfig
7
8# openal-soft-1.19.1
9SRCREV = "6761218e51699f46bf25c377e65b3e9ea5e434b9"
10SRC_URI = "git://github.com/kcat/openal-soft \
11 file://0001-Use-BUILD_CC-to-compile-native-tools.patch \
12 file://0002-makehrtf-Disable-Wstringop-truncation.patch \
13 "
14
15S = "${WORKDIR}/git"
16
17PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'alsa pulseaudio', d)}"
18PACKAGECONFIG[alsa] = "-DALSA=TRUE, -DALSA=FALSE, alsa-lib"
19PACKAGECONFIG[pulseaudio] = "-DPULSEAUDIO=TRUE, -DPULSEAUDIO=FALSE, pulseaudio"
20# currently doesn't work with libav-9
21# PKG_CHECK_MODULES(FFMPEG libavcodec>=53.61.100 libavformat>=53.32.100 libavutil>=51.35.100)
22# but alffmpeg.c:418:44: error: 'AV_CH_LAYOUT_MONO' undeclared (first use in this function)
23PACKAGECONFIG[examples] = "-DEXAMPLES=TRUE, -DEXAMPLES=FALSE, libav"
24
25FILES_${PN} += "${datadir}/openal"