mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 05:29:32 +00:00
libsdl2: PACKAGECONFIGize
* DEPENDS + EXTRA_OECONF -> PACKAGECONFIG for directfb / opengl / x11 * added PACKAGECONFIG for gles2 / pulseaudio / tslib / wayland (From OE-Core rev: b8950f19eb4fa7697bad87de84ed53849d2a7d96) Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
914278ef65
commit
695279b86d
@@ -12,14 +12,9 @@ LIC_FILES_CHKSUM = "file://COPYING.txt;md5=67dcb7fae16952557bc5f96e9eb5d188"
|
|||||||
|
|
||||||
PROVIDES = "virtual/libsdl2"
|
PROVIDES = "virtual/libsdl2"
|
||||||
|
|
||||||
DEPENDS = "${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)} \
|
|
||||||
${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virtual/libgl', '', d)} \
|
|
||||||
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/libx11 libxext libxrandr libxrender', '', d)} \
|
|
||||||
tslib"
|
|
||||||
DEPENDS_class-nativesdk = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/nativesdk-libx11 nativesdk-libxrandr nativesdk-libxrender nativesdk-libxext', '', d)}"
|
DEPENDS_class-nativesdk = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/nativesdk-libx11 nativesdk-libxrandr nativesdk-libxrender nativesdk-libxext', '', d)}"
|
||||||
|
|
||||||
SRC_URI = "http://www.libsdl.org/release/SDL2-${PV}.tar.gz \
|
SRC_URI = "http://www.libsdl.org/release/SDL2-${PV}.tar.gz"
|
||||||
"
|
|
||||||
|
|
||||||
S = "${WORKDIR}/SDL2-${PV}"
|
S = "${WORKDIR}/SDL2-${PV}"
|
||||||
|
|
||||||
@@ -31,16 +26,30 @@ inherit autotools lib_package binconfig pkgconfig
|
|||||||
EXTRA_OECONF = "--disable-oss --disable-esd --disable-arts \
|
EXTRA_OECONF = "--disable-oss --disable-esd --disable-arts \
|
||||||
--disable-diskaudio --disable-nas --disable-esd-shared --disable-esdtest \
|
--disable-diskaudio --disable-nas --disable-esd-shared --disable-esdtest \
|
||||||
--disable-video-dummy \
|
--disable-video-dummy \
|
||||||
--enable-input-tslib --enable-pthreads \
|
--enable-pthreads \
|
||||||
${@bb.utils.contains('DISTRO_FEATURES', 'directfb', '--enable-video-directfb', '--disable-video-directfb', d)} \
|
|
||||||
${@bb.utils.contains('DISTRO_FEATURES', 'opengl', '--enable-video-opengl', '--disable-video-opengl', d)} \
|
|
||||||
${@bb.utils.contains('DISTRO_FEATURES', 'x11', '--enable-video-x11', '--disable-video-x11', d)} \
|
|
||||||
--enable-sdl-dlopen \
|
--enable-sdl-dlopen \
|
||||||
--disable-rpath \
|
--disable-rpath"
|
||||||
--disable-pulseaudio"
|
|
||||||
|
|
||||||
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)}"
|
# opengl packageconfig factored out to make it easy for distros
|
||||||
PACKAGECONFIG[alsa] = "--enable-alsa --disable-alsatest,--disable-alsa,alsa-lib,"
|
# and BSP layers to pick either (desktop) opengl, gles2, or no GL
|
||||||
|
PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'opengl', '', d)}"
|
||||||
|
|
||||||
|
PACKAGECONFIG ??= " \
|
||||||
|
${PACKAGECONFIG_GL} \
|
||||||
|
${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)} \
|
||||||
|
${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)} \
|
||||||
|
${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)} \
|
||||||
|
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \
|
||||||
|
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
|
||||||
|
"
|
||||||
|
PACKAGECONFIG[alsa] = "--enable-alsa --disable-alsatest,--disable-alsa,alsa-lib,"
|
||||||
|
PACKAGECONFIG[directfb] = "--enable-video-directfb --disable-video-directfb,directfb"
|
||||||
|
PACKAGECONFIG[gles2] = "--enable-video-opengles,--disable-video-opengles,virtual/libgles2"
|
||||||
|
PACKAGECONFIG[opengl] = "--enable-video-opengl,--disable-video-opengl,virtual/libgl"
|
||||||
|
PACKAGECONFIG[pulseaudio] = "--enable-pulseaudio,--disable-pulseaudio,pulseaudio"
|
||||||
|
PACKAGECONFIG[tslib] = "--enable-input-tslib,--disable-input-tslib,tslib"
|
||||||
|
PACKAGECONFIG[wayland] = "--enable-video-wayland,--disable-video-wayland,wayland"
|
||||||
|
PACKAGECONFIG[x11] = "--enable-video-x11,--disable-video-x11,virtual/libx11 libxext libxrandr libxrender"
|
||||||
|
|
||||||
EXTRA_AUTORECONF += "--include=acinclude --exclude=autoheader"
|
EXTRA_AUTORECONF += "--include=acinclude --exclude=autoheader"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user