summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2015-11-30 11:31:14 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-12 23:42:53 +0000
commitb407a8004ab47c0f101167ee384e66823a09aa78 (patch)
tree297d079e60d1a87d1f534bd8d526568b657127b9 /meta/recipes-graphics
parent39facf945e5e407fd0e8dadd4c8ba420b902843d (diff)
downloadpoky-b407a8004ab47c0f101167ee384e66823a09aa78.tar.gz
libsdl: expand PACKAGECONFIG and enable native builds
Use PACKAGECONFIG instead of using logic in DEPENDS and EXTRA_OECONF, adding new options for PulseAudio, tslib, DirectFB, OpenGL and X11. Pass --disable-x11-shared so that it links to the X libraries instead of using dlopen(). Disable tslib by default as the kernel event input subsystem is generally used. SDL's OpenGL support requires X11 so check for both x11 and opengl, and merge the dependencies. Finally enable native builds, with a minimal PACKAGECONFIG that will build from oe-core for native and nativesdk. (From OE-Core rev: 3d6c31c3a4ff34376e17005a981bb55fc6f7a38f) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r--meta/recipes-graphics/libsdl/libsdl_1.2.15.bb37
1 files changed, 19 insertions, 18 deletions
diff --git a/meta/recipes-graphics/libsdl/libsdl_1.2.15.bb b/meta/recipes-graphics/libsdl/libsdl_1.2.15.bb
index 8b9e050f9e..9c0ec541e3 100644
--- a/meta/recipes-graphics/libsdl/libsdl_1.2.15.bb
+++ b/meta/recipes-graphics/libsdl/libsdl_1.2.15.bb
@@ -12,13 +12,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=27818cd7fd83877a8e3ef82b82798ef4"
12 12
13PROVIDES = "virtual/libsdl" 13PROVIDES = "virtual/libsdl"
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 ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'libglu', '', d)} \
19 tslib"
20DEPENDS_class-nativesdk = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/nativesdk-libx11 nativesdk-libxrandr nativesdk-libxrender nativesdk-libxext', '', d)}"
21
22PR = "r3" 15PR = "r3"
23 16
24SRC_URI = "http://www.libsdl.org/release/SDL-${PV}.tar.gz \ 17SRC_URI = "http://www.libsdl.org/release/SDL-${PV}.tar.gz \
@@ -39,21 +32,29 @@ inherit autotools lib_package binconfig-disabled pkgconfig
39 32
40EXTRA_OECONF = "--disable-static --enable-cdrom --enable-threads --enable-timers \ 33EXTRA_OECONF = "--disable-static --enable-cdrom --enable-threads --enable-timers \
41 --enable-file --disable-oss --disable-esd --disable-arts \ 34 --enable-file --disable-oss --disable-esd --disable-arts \
42 --disable-diskaudio --disable-nas --disable-esd-shared --disable-esdtest \ 35 --disable-diskaudio --disable-nas \
43 --disable-mintaudio --disable-nasm --disable-video-dga \ 36 --disable-mintaudio --disable-nasm --disable-video-dga \
44 --disable-video-fbcon --disable-video-ps2gs --disable-video-ps3 \ 37 --disable-video-fbcon --disable-video-ps2gs --disable-video-ps3 \
45 --disable-xbios --disable-gem --disable-video-dummy \ 38 --disable-xbios --disable-gem --disable-video-dummy \
46 --enable-input-events --enable-input-tslib --enable-pthreads \ 39 --enable-input-events --enable-pthreads \
47 ${@bb.utils.contains('DISTRO_FEATURES', 'directfb', '--enable-video-directfb', '--disable-video-directfb', d)} \
48 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', '--enable-video-opengl', '--disable-video-opengl', d)} \
49 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '--enable-video-x11', '--disable-video-x11', d)} \
50 --disable-video-svga \ 40 --disable-video-svga \
51 --disable-video-picogui --disable-video-qtopia --enable-sdl-dlopen \ 41 --disable-video-picogui --disable-video-qtopia --enable-sdl-dlopen \
52 --disable-rpath \ 42 --disable-rpath"
53 --disable-pulseaudio" 43
54 44PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)} \
55PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)}" 45 ${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)} \
56PACKAGECONFIG[alsa] = "--enable-alsa --disable-alsatest,--disable-alsa,alsa-lib," 46 ${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)} \
47 ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'opengl', '', d)} \
48 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
49PACKAGECONFIG_class-native = "x11"
50PACKAGECONFIG_class-nativesdk = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
51
52PACKAGECONFIG[alsa] = "--enable-alsa --disable-alsatest,--disable-alsa,alsa-lib"
53PACKAGECONFIG[pulseaudio] = "--enable-pulseaudio,--disable-pulseaudio,pulseaudio"
54PACKAGECONFIG[tslib] = "--enable-input-tslib, --disable-input-tslib, tslib"
55PACKAGECONFIG[directfb] = "--enable-video-directfb, --disable-video-directfb, directfb"
56PACKAGECONFIG[opengl] = "--enable-video-opengl, --disable-video-opengl, virtual/libgl libglu"
57PACKAGECONFIG[x11] = "--enable-video-x11 --disable-x11-shared, --disable-video-x11, virtual/libx11 libxext libxrandr libxrender"
57 58
58EXTRA_AUTORECONF += "--include=acinclude --exclude=autoheader" 59EXTRA_AUTORECONF += "--include=acinclude --exclude=autoheader"
59 60
@@ -66,4 +67,4 @@ do_configure_prepend() {
66 export SYSROOT=$PKG_CONFIG_SYSROOT_DIR 67 export SYSROOT=$PKG_CONFIG_SYSROOT_DIR
67} 68}
68 69
69BBCLASSEXTEND = "nativesdk" 70BBCLASSEXTEND = "native nativesdk"