blob: d283cb361bdf0d237b7a3621315a87d18b9501e2 [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
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -05008SRCREV = "f5e0eef34db3a3ab94b61a2f99f84f078ba947e7"
Brad Bishop19323692019-04-05 15:28:33 -04009SRC_URI = "git://github.com/kcat/openal-soft \
10 file://0001-Use-BUILD_CC-to-compile-native-tools.patch \
11 file://0002-makehrtf-Disable-Wstringop-truncation.patch \
12 "
13
14S = "${WORKDIR}/git"
15
16PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'alsa pulseaudio', d)}"
17PACKAGECONFIG[alsa] = "-DALSA=TRUE, -DALSA=FALSE, alsa-lib"
18PACKAGECONFIG[pulseaudio] = "-DPULSEAUDIO=TRUE, -DPULSEAUDIO=FALSE, pulseaudio"
19# currently doesn't work with libav-9
20# PKG_CHECK_MODULES(FFMPEG libavcodec>=53.61.100 libavformat>=53.32.100 libavutil>=51.35.100)
21# but alffmpeg.c:418:44: error: 'AV_CH_LAYOUT_MONO' undeclared (first use in this function)
22PACKAGECONFIG[examples] = "-DEXAMPLES=TRUE, -DEXAMPLES=FALSE, libav"
23
24FILES_${PN} += "${datadir}/openal"