diff options
| -rw-r--r-- | meta/recipes-graphics/libsdl2/libsdl2_2.0.3.bb | 39 |
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 | ||
| 13 | PROVIDES = "virtual/libsdl2" | 13 | PROVIDES = "virtual/libsdl2" |
| 14 | 14 | ||
| 15 | DEPENDS = "${@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" | ||
| 19 | DEPENDS_class-nativesdk = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/nativesdk-libx11 nativesdk-libxrandr nativesdk-libxrender nativesdk-libxext', '', d)}" | 15 | DEPENDS_class-nativesdk = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/nativesdk-libx11 nativesdk-libxrandr nativesdk-libxrender nativesdk-libxext', '', d)}" |
| 20 | 16 | ||
| 21 | SRC_URI = "http://www.libsdl.org/release/SDL2-${PV}.tar.gz \ | 17 | SRC_URI = "http://www.libsdl.org/release/SDL2-${PV}.tar.gz" |
| 22 | " | ||
| 23 | 18 | ||
| 24 | S = "${WORKDIR}/SDL2-${PV}" | 19 | S = "${WORKDIR}/SDL2-${PV}" |
| 25 | 20 | ||
| @@ -31,16 +26,30 @@ inherit autotools lib_package binconfig pkgconfig | |||
| 31 | EXTRA_OECONF = "--disable-oss --disable-esd --disable-arts \ | 26 | EXTRA_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 | |
| 42 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)}" | 34 | # and BSP layers to pick either (desktop) opengl, gles2, or no GL |
| 43 | PACKAGECONFIG[alsa] = "--enable-alsa --disable-alsatest,--disable-alsa,alsa-lib," | 35 | PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'opengl', '', d)}" |
| 36 | |||
| 37 | PACKAGECONFIG ??= " \ | ||
| 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 | " | ||
| 45 | PACKAGECONFIG[alsa] = "--enable-alsa --disable-alsatest,--disable-alsa,alsa-lib," | ||
| 46 | PACKAGECONFIG[directfb] = "--enable-video-directfb --disable-video-directfb,directfb" | ||
| 47 | PACKAGECONFIG[gles2] = "--enable-video-opengles,--disable-video-opengles,virtual/libgles2" | ||
| 48 | PACKAGECONFIG[opengl] = "--enable-video-opengl,--disable-video-opengl,virtual/libgl" | ||
| 49 | PACKAGECONFIG[pulseaudio] = "--enable-pulseaudio,--disable-pulseaudio,pulseaudio" | ||
| 50 | PACKAGECONFIG[tslib] = "--enable-input-tslib,--disable-input-tslib,tslib" | ||
| 51 | PACKAGECONFIG[wayland] = "--enable-video-wayland,--disable-video-wayland,wayland" | ||
| 52 | PACKAGECONFIG[x11] = "--enable-video-x11,--disable-video-x11,virtual/libx11 libxext libxrandr libxrender" | ||
| 44 | 53 | ||
| 45 | EXTRA_AUTORECONF += "--include=acinclude --exclude=autoheader" | 54 | EXTRA_AUTORECONF += "--include=acinclude --exclude=autoheader" |
| 46 | 55 | ||
