summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2017-09-13 12:57:35 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-05-22 13:13:32 +0100
commit4e941998300ebb2f33dc9ce5a95f53d2ceba1efe (patch)
treee32e316fb8aaf74ed2943ddc282f0fd74c1abd71 /meta
parent865e34547a4bfe0c0ca7189a15cdff7a603a2b8b (diff)
downloadpoky-4e941998300ebb2f33dc9ce5a95f53d2ceba1efe.tar.gz
libsdl2: allow to build native and nativesdk
* enable x11 in native builds (From OE-Core rev: cff055403eab8112ef76cd6331682447bcddf760) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-graphics/libsdl2/libsdl2_2.0.8.bb4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.0.8.bb b/meta/recipes-graphics/libsdl2/libsdl2_2.0.8.bb
index c0cf70d7fd..c37f669321 100644
--- a/meta/recipes-graphics/libsdl2/libsdl2_2.0.8.bb
+++ b/meta/recipes-graphics/libsdl2/libsdl2_2.0.8.bb
@@ -37,6 +37,8 @@ EXTRA_OECONF = "--disable-oss --disable-esd --disable-arts \
37# and BSP layers to pick either (desktop) opengl, gles2, or no GL 37# and BSP layers to pick either (desktop) opengl, gles2, or no GL
38PACKAGECONFIG_GL ?= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}" 38PACKAGECONFIG_GL ?= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}"
39 39
40PACKAGECONFIG_class-native = "x11"
41PACKAGECONFIG_class-nativesdk = "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}"
40PACKAGECONFIG ??= " \ 42PACKAGECONFIG ??= " \
41 ${PACKAGECONFIG_GL} \ 43 ${PACKAGECONFIG_GL} \
42 ${@bb.utils.filter('DISTRO_FEATURES', 'alsa directfb pulseaudio x11', d)} \ 44 ${@bb.utils.filter('DISTRO_FEATURES', 'alsa directfb pulseaudio x11', d)} \
@@ -63,3 +65,5 @@ do_configure_prepend() {
63} 65}
64 66
65FILES_${PN}-dev += "${libdir}/cmake" 67FILES_${PN}-dev += "${libdir}/cmake"
68
69BBCLASSEXTEND = "native nativesdk"