From cff055403eab8112ef76cd6331682447bcddf760 Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Wed, 13 Sep 2017 12:57:35 +0200 Subject: libsdl2: allow to build native and nativesdk * enable x11 in native builds Signed-off-by: Martin Jansa --- meta/recipes-graphics/libsdl2/libsdl2_2.0.8.bb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta/recipes-graphics') 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 \ # and BSP layers to pick either (desktop) opengl, gles2, or no GL PACKAGECONFIG_GL ?= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}" +PACKAGECONFIG_class-native = "x11" +PACKAGECONFIG_class-nativesdk = "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}" PACKAGECONFIG ??= " \ ${PACKAGECONFIG_GL} \ ${@bb.utils.filter('DISTRO_FEATURES', 'alsa directfb pulseaudio x11', d)} \ @@ -63,3 +65,5 @@ do_configure_prepend() { } FILES_${PN}-dev += "${libdir}/cmake" + +BBCLASSEXTEND = "native nativesdk" -- cgit 1.2.3-korg