libsdl changes v2
cover libsdl changes v2
V2: PACKAGECONFIG is used only for alsa not for opengl, because there is no virtual/libgl-nativesdk and with only alsa in PACKAGECONFIG_virtclass-nativesdk it would pass --disable-opengl to OECONF while now it passes --enable-opengl so it would change nativesdk package without option to enable it again.
The following changes since commit ad0baa7d2f33a865011e0c6afe29f22aa1beea32:
eglibc-initial: Ensure symlinks point to the correct location when built from sstate cache (2011-11-29 12:36:37 +0000)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib jansa/pull
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=jansa/pull
Martin Jansa (5):
libsdl: drop unused files
libsdl: rename files dir to libsdl-1.2.14 for faster lookup
libsdl: enable cdrom, alsa and tslib, disable rpath and add few fixes
from meta-oe
libsdl: enable alsa based on PACKAGECONFIG and respect
DISTRO_FEATURES
libsdl: replace tabs with spaces
.../libsdl/files/directfb_obsolete_calls.patch | 35 ------------
.../recipes-graphics/libsdl/files/extra-keys.patch | 55 --------------------
.../{files => libsdl-1.2.14}/configure_tweak.patch | 0
meta/recipes-graphics/libsdl/libsdl_1.2.14.bb | 27 ++++++---
4 files changed, 18 insertions(+), 99 deletions(-)
delete mode 100644 meta/recipes-graphics/libsdl/files/directfb_obsolete_calls.patch
delete mode 100644 meta/recipes-graphics/libsdl/files/extra-keys.patch
rename meta/recipes-graphics/libsdl/{files => libsdl-1.2.14}/configure_tweak.patch (100%)Signature · 1 line
1.7.8.rc4
PATCH 1/5 libsdl: drop unused files
--- .../libsdl/files/directfb_obsolete_calls.patch | 35 ------------ .../recipes-graphics/libsdl/files/extra-keys.patch | 55 -------------------- 2 files changed, 0 insertions(+), 90 deletions(-) delete mode 100644 meta/recipes-graphics/libsdl/files/directfb_obsolete_calls.patch delete mode 100644 meta/recipes-graphics/libsdl/files/extra-keys.patch
meta/recipes-graphics/libsdl/files/directfb_obsolete_calls.patch deleted +0 -35
@@ -1,35 +0,0 @@ -Upstream-Status: Pending - ---- tmp/work/armv5te-angstrom-linux-gnueabi/libsdl-directfb-1.2.9-r1/SDL-1.2.9/src/video/directfb/SDL_DirectFB_video.c 2007-02-18 11:40:38.000000000 -0500 -+++ SDL/src/video/directfb/SDL_DirectFB_video.c 2007-02-18 11:00:07.000000000 -0500 -@@ -376,7 +376,7 @@ - { - int i; - DFBResult ret; -- DFBCardCapabilities caps; -+ DFBGraphicsDeviceDescription caps; - DFBDisplayLayerConfig dlc; - struct DirectFBEnumRect *rect; - IDirectFB *dfb = NULL; -@@ -448,7 +448,7 @@ - - - /* Query card capabilities to get the video memory size */ -- dfb->GetCardCapabilities (dfb, &caps); -+ dfb->GetDeviceDescription (dfb, &caps); - - this->info.wm_available = 1; - this->info.hw_available = 1; -diff -u'rNF^function' tmp/work/armv5te-angstrom-linux-gnueabi/libsdl-directfb-1.2.9-r1/SDL-1.2.9/src/video/directfb/SDL_Direct -/SDL_DirectFB_events.c ---- tmp/work/armv5te-angstrom-linux-gnueabi/libsdl-directfb-1.2.9-r1/SDL-1.2.9/src/video/directfb/SDL_DirectFB_events.c 2004-0 -+++ SDL/src/video/directfb/SDL_DirectFB_events.c 2007-02-18 11:00:07.000000000 -0500 -@@ -161,7 +161,7 @@ - keymap[DIKI_SHIFT_L - DIKI_UNKNOWN] = SDLK_LSHIFT; - keymap[DIKI_SHIFT_R - DIKI_UNKNOWN] = SDLK_RSHIFT; - keymap[DIKI_ALT_L - DIKI_UNKNOWN] = SDLK_LALT; -- keymap[DIKI_ALTGR - DIKI_UNKNOWN] = SDLK_RALT; -+ keymap[DIKI_ALT_R - DIKI_UNKNOWN] = SDLK_RALT; - keymap[DIKI_TAB - DIKI_UNKNOWN] = SDLK_TAB; - keymap[DIKI_ENTER - DIKI_UNKNOWN] = SDLK_RETURN; - keymap[DIKI_SPACE - DIKI_UNKNOWN] = SDLK_SPACE;
meta/recipes-graphics/libsdl/files/extra-keys.patch deleted +0 -55
55 lines not on this page · raw message
Signature · 1 line
1.7.8.rc4
PATCH 2/5 libsdl: rename files dir to libsdl-1.2.14 for faster lookup
---
.../{files => libsdl-1.2.14}/configure_tweak.patch | 0
1 files changed, 0 insertions(+), 0 deletions(-)
rename meta/recipes-graphics/libsdl/{files => libsdl-1.2.14}/configure_tweak.patch (100%)meta/recipes-graphics/libsdl/libsdl-1.2.14/configure_tweak.patch renamed from meta/recipes-graphics/libsdl/files/configure_tweak.patch +0 -0
Signature · 1 line
1.7.8.rc4
PATCH 3/5 libsdl: enable cdrom, alsa and tslib, disable rpath and add few fixes from meta-oe
In reply to Martin Jansa* virtual/libsdl is used in sdl.bbclass but nothing was providing it
* rpath disabled because otherwise libtool and ld try to link against ${libdir}/libdl.so.2 on the host
(see OE-classic commit af1a2e0e7626e372f22afbcabf08d9ae6b0d7b01)
--- meta/recipes-graphics/libsdl/libsdl_1.2.14.bb | 18 ++++++++++++------ 1 files changed, 12 insertions(+), 6 deletions(-)
meta/recipes-graphics/libsdl/libsdl_1.2.14.bb +12 -6
@@ -10,10 +10,12 @@ SECTION = "libs" LICENSE = "LGPLv2.1" LIC_FILES_CHKSUM = "file://COPYING;md5=27818cd7fd83877a8e3ef82b82798ef4" -DEPENDS = "${@base_contains('DISTRO_FEATURES', 'opengl', 'virtual/libgl', '', d)} virtual/libx11 libxext libxrandr libxrender" +PROVIDES = "virtual/libsdl" + +DEPENDS = "${@base_contains('DISTRO_FEATURES', 'opengl', 'virtual/libgl', '', d)} virtual/libx11 libxext libxrandr libxrender alsa-lib tslib" DEPENDS_virtclass-nativesdk = "libx11-nativesdk libxrandr-nativesdk libxrender-nativesdk libxext-nativesdk" -PR = "r0" +PR = "r1" SRC_URI = "http://www.libsdl.org/release/SDL-${PV}.tar.gz \ file://configure_tweak.patch \
@@ -26,25 +28,29 @@ SRC_URI[sha256sum] = "5d927e287034cb6bb0ebccfa382cb1d185cb113c8ab5115a0759798642 inherit autotools binconfig pkgconfig -EXTRA_OECONF = "--disable-static --disable-debug --disable-cdrom --enable-threads --enable-timers --enable-endian \ - --enable-file --disable-oss --disable-alsa --disable-esd --disable-arts \ +EXTRA_OECONF = "--disable-static --disable-debug --enable-cdrom --enable-threads --enable-timers --enable-endian \ + --enable-file --disable-oss --enable-alsa --disable-esd --disable-arts \ --disable-diskaudio --disable-nas --disable-esd-shared --disable-esdtest \ --disable-mintaudio --disable-nasm --enable-video-x11 --disable-video-dga \ --disable-video-fbcon --disable-video-directfb --disable-video-ps2gs --disable-video-ps3 \ --disable-video-xbios --disable-video-gem --disable-video-dummy \ - --enable-input-events --enable-pthreads \ + --enable-input-events --enable-input-tslib --enable-pthreads \ ${@base_contains('DISTRO_FEATURES', 'opengl', '--enable-video-opengl', '--disable-video-opengl', d)} \ --disable-video-svga \ - --disable-video-picogui --disable-video-qtopia --enable-dlopen" + --disable-video-picogui --disable-video-qtopia --enable-dlopen \ + --disable-rpath" PARALLEL_MAKE = "" +EXTRA_AUTORECONF += "--include=acinclude --exclude=autoheader" + do_configure_prepend() { # Remove old libtool macros. MACROS="libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4" for i in ${MACROS}; do rm -f acinclude/$i done + export SYSROOT=$PKG_CONFIG_SYSROOT_DIR } BBCLASSEXTEND = "nativesdk"
Signature · 1 line
1.7.8.rc4
PATCH 4/5 libsdl: enable alsa based on PACKAGECONFIG and respect DISTRO_FEATURES
In reply to Martin Jansa--- meta/recipes-graphics/libsdl/libsdl_1.2.14.bb | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
meta/recipes-graphics/libsdl/libsdl_1.2.14.bb +4 -1
@@ -29,7 +29,7 @@ SRC_URI[sha256sum] = "5d927e287034cb6bb0ebccfa382cb1d185cb113c8ab5115a0759798642 inherit autotools binconfig pkgconfig EXTRA_OECONF = "--disable-static --disable-debug --enable-cdrom --enable-threads --enable-timers --enable-endian \ - --enable-file --disable-oss --enable-alsa --disable-esd --disable-arts \ + --enable-file --disable-oss --disable-esd --disable-arts \ --disable-diskaudio --disable-nas --disable-esd-shared --disable-esdtest \ --disable-mintaudio --disable-nasm --enable-video-x11 --disable-video-dga \ --disable-video-fbcon --disable-video-directfb --disable-video-ps2gs --disable-video-ps3 \
@@ -40,6 +40,9 @@ EXTRA_OECONF = "--disable-static --disable-debug --enable-cdrom --enable-threads --disable-video-picogui --disable-video-qtopia --enable-dlopen \ --disable-rpath" +PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)}" +PACKAGECONFIG[alsa] = "--enable-alsa,--disable-alsa,alsa-lib," + PARALLEL_MAKE = "" EXTRA_AUTORECONF += "--include=acinclude --exclude=autoheader"
Signature · 1 line
1.7.8.rc4
PATCH 5/5 libsdl: replace tabs with spaces
In reply to Martin Jansa--- meta/recipes-graphics/libsdl/libsdl_1.2.14.bb | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
meta/recipes-graphics/libsdl/libsdl_1.2.14.bb +3 -3
@@ -18,7 +18,7 @@ DEPENDS_virtclass-nativesdk = "libx11-nativesdk libxrandr-nativesdk libxrender-n PR = "r1" SRC_URI = "http://www.libsdl.org/release/SDL-${PV}.tar.gz \ - file://configure_tweak.patch \ + file://configure_tweak.patch \ " S = "${WORKDIR}/SDL-${PV}"
@@ -35,8 +35,8 @@ EXTRA_OECONF = "--disable-static --disable-debug --enable-cdrom --enable-threads --disable-video-fbcon --disable-video-directfb --disable-video-ps2gs --disable-video-ps3 \ --disable-video-xbios --disable-video-gem --disable-video-dummy \ --enable-input-events --enable-input-tslib --enable-pthreads \ - ${@base_contains('DISTRO_FEATURES', 'opengl', '--enable-video-opengl', '--disable-video-opengl', d)} \ - --disable-video-svga \ + ${@base_contains('DISTRO_FEATURES', 'opengl', '--enable-video-opengl', '--disable-video-opengl', d)} \ + --disable-video-svga \ --disable-video-picogui --disable-video-qtopia --enable-dlopen \ --disable-rpath"
Signature · 1 line
1.7.8.rc4
Re: [oe-core 4/5] libsdl: enable alsa based on PACKAGECONFIG and respect DISTRO_FEATURES
In reply to Martin JansaQuoted 19 lines · Martin Jansa
Signed-off-by Martin Jansa <[email protected]>--- meta/recipes-graphics/libsdl/libsdl_1.2.14.bb | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)meta/recipes-graphics/libsdl/libsdl_1.2.14.bb +1
-1@@ -29,7 +29,7 @@ SRC_URI[sha256sum] = "5d927e287034cb6bb0ebccfa382cb1d185cb113c8ab5115a0759798642 inherit autotools binconfig pkgconfig EXTRA_OECONF = "--disable-static --disable-debug --enable-cdrom --enable-threads --enable-timers --enable-endian \ - --enable-file --disable-oss --enable-alsa --disable-esd --disable-arts \ + --enable-file --disable-oss --disable-esd --disable-arts \ --disable-diskaudio --disable-nas --disable-esd-shared --disable-esdtest \ --disable-mintaudio --disable-nasm --enable-video-x11 --disable-video-dga \ --disable-video-fbcon --disable-video-directfb --disable-video-ps2gs --disable-video-ps3 \
meta/recipes-graphics/libsdl/libsdl_1.2.14.bb EXTRA_OECONF = "--disable-static --disable-debug --enable-cdrom --enable-threads · line 46
Quoted 7 lines
meta/recipes-graphics/libsdl/libsdl_1.2.14.bb +3
-0@@ -40,6 +40,9 @@ EXTRA_OECONF = "--disable-static --disable-debug --enable-cdrom --enable-threads --disable-video-picogui --disable-video-qtopia --enable-dlopen \ --disable-rpath" +PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)}" +PACKAGECONFIG[alsa] = "--enable-alsa,--disable-alsa,alsa-lib," + PARALLEL_MAKE = ""
Doesn't this patch need to remove alsa-lib from DEPENDS?
I've taken the other four patches.
Cheers,
Richard