summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/libsdl2
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/libsdl2')
-rw-r--r--meta/recipes-graphics/libsdl2/libsdl2_2.0.3.bb39
1 files changed, 24 insertions, 15 deletions
diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.0.3.bb b/meta/recipes-graphics/libsdl2/libsdl2_2.0.3.bb
index 197f962824..97f64f3847 100644
--- a/meta/recipes-graphics/libsdl2/libsdl2_2.0.3.bb
+++ b/meta/recipes-graphics/libsdl2/libsdl2_2.0.3.bb
@@ -12,14 +12,9 @@ LIC_FILES_CHKSUM = "file://COPYING.txt;md5=67dcb7fae16952557bc5f96e9eb5d188"
12 12
13PROVIDES = "virtual/libsdl2" 13PROVIDES = "virtual/libsdl2"
14 14
15DEPENDS = "${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)} \
16 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virtual/libgl', '', d)} \
17 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/libx11 libxext libxrandr libxrender', '', d)} \
18 tslib"
19DEPENDS_class-nativesdk = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/nativesdk-libx11 nativesdk-libxrandr nativesdk-libxrender nativesdk-libxext', '', d)}" 15DEPENDS_class-nativesdk = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/nativesdk-libx11 nativesdk-libxrandr nativesdk-libxrender nativesdk-libxext', '', d)}"
20 16
21SRC_URI = "http://www.libsdl.org/release/SDL2-${PV}.tar.gz \ 17SRC_URI = "http://www.libsdl.org/release/SDL2-${PV}.tar.gz"
22 "
23 18
24S = "${WORKDIR}/SDL2-${PV}" 19S = "${WORKDIR}/SDL2-${PV}"
25 20
@@ -31,16 +26,30 @@ inherit autotools lib_package binconfig pkgconfig
31EXTRA_OECONF = "--disable-oss --disable-esd --disable-arts \ 26EXTRA_OECONF = "--disable-oss --disable-esd --disable-arts \
32 --disable-diskaudio --disable-nas --disable-esd-shared --disable-esdtest \ 27 --disable-diskaudio --disable-nas --disable-esd-shared --disable-esdtest \
33 --disable-video-dummy \ 28 --disable-video-dummy \
34 --enable-input-tslib --enable-pthreads \ 29 --enable-pthreads \
35 ${@bb.utils.contains('DISTRO_FEATURES', 'directfb', '--enable-video-directfb', '--disable-video-directfb', d)} \
36 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', '--enable-video-opengl', '--disable-video-opengl', d)} \
37 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '--enable-video-x11', '--disable-video-x11', d)} \
38 --enable-sdl-dlopen \ 30 --enable-sdl-dlopen \
39 --disable-rpath \ 31 --disable-rpath"
40 --disable-pulseaudio" 32
41 33# opengl packageconfig factored out to make it easy for distros
42PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)}" 34# and BSP layers to pick either (desktop) opengl, gles2, or no GL
43PACKAGECONFIG[alsa] = "--enable-alsa --disable-alsatest,--disable-alsa,alsa-lib," 35PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'opengl', '', d)}"
36
37PACKAGECONFIG ??= " \
38 ${PACKAGECONFIG_GL} \
39 ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)} \
40 ${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)} \
41 ${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)} \
42 ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \
43 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
44"
45PACKAGECONFIG[alsa] = "--enable-alsa --disable-alsatest,--disable-alsa,alsa-lib,"
46PACKAGECONFIG[directfb] = "--enable-video-directfb --disable-video-directfb,directfb"
47PACKAGECONFIG[gles2] = "--enable-video-opengles,--disable-video-opengles,virtual/libgles2"
48PACKAGECONFIG[opengl] = "--enable-video-opengl,--disable-video-opengl,virtual/libgl"
49PACKAGECONFIG[pulseaudio] = "--enable-pulseaudio,--disable-pulseaudio,pulseaudio"
50PACKAGECONFIG[tslib] = "--enable-input-tslib,--disable-input-tslib,tslib"
51PACKAGECONFIG[wayland] = "--enable-video-wayland,--disable-video-wayland,wayland"
52PACKAGECONFIG[x11] = "--enable-video-x11,--disable-video-x11,virtual/libx11 libxext libxrandr libxrender"
44 53
45EXTRA_AUTORECONF += "--include=acinclude --exclude=autoheader" 54EXTRA_AUTORECONF += "--include=acinclude --exclude=autoheader"
46 55