* [oe-core 0/5] libsdl changes v2
@ 2011-11-29 12:47 Martin Jansa
2011-11-29 12:48 ` [oe-core 1/5] libsdl: drop unused files Martin Jansa
` (4 more replies)
0 siblings, 5 replies; 7+ messages in thread
From: Martin Jansa @ 2011-11-29 12:47 UTC (permalink / raw)
To: openembedded-core
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%)
--
1.7.8.rc4
^ permalink raw reply [flat|nested] 7+ messages in thread
* [oe-core 1/5] libsdl: drop unused files
2011-11-29 12:47 [oe-core 0/5] libsdl changes v2 Martin Jansa
@ 2011-11-29 12:48 ` Martin Jansa
2011-11-29 12:48 ` [oe-core 2/5] libsdl: rename files dir to libsdl-1.2.14 for faster lookup Martin Jansa
` (3 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Martin Jansa @ 2011-11-29 12:48 UTC (permalink / raw)
To: openembedded-core
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
.../libsdl/files/directfb_obsolete_calls.patch | 35 ------------
| 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
diff --git a/meta/recipes-graphics/libsdl/files/directfb_obsolete_calls.patch b/meta/recipes-graphics/libsdl/files/directfb_obsolete_calls.patch
deleted file mode 100644
index 3c526a6..0000000
--- a/meta/recipes-graphics/libsdl/files/directfb_obsolete_calls.patch
+++ /dev/null
@@ -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;
diff --git a/meta/recipes-graphics/libsdl/files/extra-keys.patch b/meta/recipes-graphics/libsdl/files/extra-keys.patch
deleted file mode 100644
index 745b04e..0000000
--- a/meta/recipes-graphics/libsdl/files/extra-keys.patch
+++ /dev/null
@@ -1,55 +0,0 @@
-Upstream-Status: Pending
-
-diff -upr --exclude=configure --exclude=Makefile --exclude=Makefile.in libsdl1.2-1.2.4/include/SDL_keysym.h libsdl1.2-1.2.4-arm/include/SDL_keysym.h
---- libsdl1.2-1.2.4/include/SDL_keysym.h 2002-03-06 11:23:01.000000000 +0000
-+++ libsdl1.2-1.2.4-arm/include/SDL_keysym.h 2002-11-08 20:43:09.000000000 +0000
-@@ -286,6 +286,12 @@ typedef enum {
- SDLK_EURO = 321, /* Some european keyboards */
- SDLK_UNDO = 322, /* Atari keyboard has Undo */
-
-+ SDLK_RECORD = 322,
-+ SDLK_CALENDAR = 323,
-+ SDLK_TELEPHONE = 324,
-+ SDLK_MAIL = 325,
-+ SDLK_START = 326,
-+
- /* Add any other keys here */
-
- SDLK_LAST
-diff -upr --exclude=configure --exclude=Makefile --exclude=Makefile.in libsdl1.2-1.2.4/src/video/x11/SDL_x11events.c libsdl1.2-1.2.4-arm/src/video/x11/SDL_x11events.c
---- libsdl1.2-1.2.4/src/video/x11/SDL_x11events.c 2002-03-06 11:23:08.000000000 +0000
-+++ libsdl1.2-1.2.4-arm/src/video/x11/SDL_x11events.c 2002-11-08 21:01:41.000000000 +0000
-@@ -34,6 +34,7 @@ static char rcsid =
- #include <X11/Xlib.h>
- #include <X11/Xutil.h>
- #include <X11/keysym.h>
-+#include <X11/XF86keysym.h>
- #ifdef __SVR4
- #include <X11/Sunkeysym.h>
- #endif
-@@ -655,6 +656,25 @@ SDL_keysym *X11_TranslateKey(Display *di
- case 0xFF:
- keysym->sym = MISC_keymap[xsym&0xFF];
- break;
-+ case 0x1008ff:
-+ switch (xsym) {
-+ case XF86XK_AudioRecord:
-+ keysym->sym = SDLK_RECORD;
-+ break;
-+ case XF86XK_PowerDown:
-+ keysym->sym = SDLK_POWER;
-+ break;
-+ case XF86XK_Calendar:
-+ keysym->sym = SDLK_CALENDAR;
-+ break;
-+ case XF86XK_Mail:
-+ keysym->sym = SDLK_MAIL;
-+ break;
-+ case XF86XK_Start:
-+ keysym->sym = SDLK_START;
-+ break;
-+ }
-+ break;
- default:
- fprintf(stderr,
- "X11: Unknown xsym, sym = 0x%04x\n",
--
1.7.8.rc4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [oe-core 2/5] libsdl: rename files dir to libsdl-1.2.14 for faster lookup
2011-11-29 12:47 [oe-core 0/5] libsdl changes v2 Martin Jansa
2011-11-29 12:48 ` [oe-core 1/5] libsdl: drop unused files Martin Jansa
@ 2011-11-29 12:48 ` Martin Jansa
2011-11-29 12:48 ` [oe-core 3/5] libsdl: enable cdrom, alsa and tslib, disable rpath and add few fixes from meta-oe Martin Jansa
` (2 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Martin Jansa @ 2011-11-29 12:48 UTC (permalink / raw)
To: openembedded-core
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
.../{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%)
diff --git a/meta/recipes-graphics/libsdl/files/configure_tweak.patch b/meta/recipes-graphics/libsdl/libsdl-1.2.14/configure_tweak.patch
similarity index 100%
rename from meta/recipes-graphics/libsdl/files/configure_tweak.patch
rename to meta/recipes-graphics/libsdl/libsdl-1.2.14/configure_tweak.patch
--
1.7.8.rc4
^ permalink raw reply [flat|nested] 7+ messages in thread
* [oe-core 3/5] libsdl: enable cdrom, alsa and tslib, disable rpath and add few fixes from meta-oe
2011-11-29 12:47 [oe-core 0/5] libsdl changes v2 Martin Jansa
2011-11-29 12:48 ` [oe-core 1/5] libsdl: drop unused files Martin Jansa
2011-11-29 12:48 ` [oe-core 2/5] libsdl: rename files dir to libsdl-1.2.14 for faster lookup Martin Jansa
@ 2011-11-29 12:48 ` Martin Jansa
2011-11-29 12:48 ` [oe-core 4/5] libsdl: enable alsa based on PACKAGECONFIG and respect DISTRO_FEATURES Martin Jansa
2011-11-29 12:48 ` [oe-core 5/5] libsdl: replace tabs with spaces Martin Jansa
4 siblings, 0 replies; 7+ messages in thread
From: Martin Jansa @ 2011-11-29 12:48 UTC (permalink / raw)
To: openembedded-core
* 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)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
meta/recipes-graphics/libsdl/libsdl_1.2.14.bb | 18 ++++++++++++------
1 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/meta/recipes-graphics/libsdl/libsdl_1.2.14.bb b/meta/recipes-graphics/libsdl/libsdl_1.2.14.bb
index 6b23344..17a3103 100644
--- a/meta/recipes-graphics/libsdl/libsdl_1.2.14.bb
+++ b/meta/recipes-graphics/libsdl/libsdl_1.2.14.bb
@@ -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"
--
1.7.8.rc4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [oe-core 4/5] libsdl: enable alsa based on PACKAGECONFIG and respect DISTRO_FEATURES
2011-11-29 12:47 [oe-core 0/5] libsdl changes v2 Martin Jansa
` (2 preceding siblings ...)
2011-11-29 12:48 ` [oe-core 3/5] libsdl: enable cdrom, alsa and tslib, disable rpath and add few fixes from meta-oe Martin Jansa
@ 2011-11-29 12:48 ` Martin Jansa
2011-11-29 13:41 ` Richard Purdie
2011-11-29 12:48 ` [oe-core 5/5] libsdl: replace tabs with spaces Martin Jansa
4 siblings, 1 reply; 7+ messages in thread
From: Martin Jansa @ 2011-11-29 12:48 UTC (permalink / raw)
To: openembedded-core
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
meta/recipes-graphics/libsdl/libsdl_1.2.14.bb | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/meta/recipes-graphics/libsdl/libsdl_1.2.14.bb b/meta/recipes-graphics/libsdl/libsdl_1.2.14.bb
index 17a3103..e5fdcc3 100644
--- a/meta/recipes-graphics/libsdl/libsdl_1.2.14.bb
+++ b/meta/recipes-graphics/libsdl/libsdl_1.2.14.bb
@@ -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"
--
1.7.8.rc4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [oe-core 5/5] libsdl: replace tabs with spaces
2011-11-29 12:47 [oe-core 0/5] libsdl changes v2 Martin Jansa
` (3 preceding siblings ...)
2011-11-29 12:48 ` [oe-core 4/5] libsdl: enable alsa based on PACKAGECONFIG and respect DISTRO_FEATURES Martin Jansa
@ 2011-11-29 12:48 ` Martin Jansa
4 siblings, 0 replies; 7+ messages in thread
From: Martin Jansa @ 2011-11-29 12:48 UTC (permalink / raw)
To: openembedded-core
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
meta/recipes-graphics/libsdl/libsdl_1.2.14.bb | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/meta/recipes-graphics/libsdl/libsdl_1.2.14.bb b/meta/recipes-graphics/libsdl/libsdl_1.2.14.bb
index e5fdcc3..89b4487 100644
--- a/meta/recipes-graphics/libsdl/libsdl_1.2.14.bb
+++ b/meta/recipes-graphics/libsdl/libsdl_1.2.14.bb
@@ -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"
--
1.7.8.rc4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [oe-core 4/5] libsdl: enable alsa based on PACKAGECONFIG and respect DISTRO_FEATURES
2011-11-29 12:48 ` [oe-core 4/5] libsdl: enable alsa based on PACKAGECONFIG and respect DISTRO_FEATURES Martin Jansa
@ 2011-11-29 13:41 ` Richard Purdie
0 siblings, 0 replies; 7+ messages in thread
From: Richard Purdie @ 2011-11-29 13:41 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Tue, 2011-11-29 at 13:48 +0100, Martin Jansa wrote:
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> ---
> meta/recipes-graphics/libsdl/libsdl_1.2.14.bb | 5 ++++-
> 1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/meta/recipes-graphics/libsdl/libsdl_1.2.14.bb b/meta/recipes-graphics/libsdl/libsdl_1.2.14.bb
> index 17a3103..e5fdcc3 100644
> --- a/meta/recipes-graphics/libsdl/libsdl_1.2.14.bb
> +++ b/meta/recipes-graphics/libsdl/libsdl_1.2.14.bb
> @@ -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 = ""
Doesn't this patch need to remove alsa-lib from DEPENDS?
I've taken the other four patches.
Cheers,
Richard
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-11-29 13:48 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-29 12:47 [oe-core 0/5] libsdl changes v2 Martin Jansa
2011-11-29 12:48 ` [oe-core 1/5] libsdl: drop unused files Martin Jansa
2011-11-29 12:48 ` [oe-core 2/5] libsdl: rename files dir to libsdl-1.2.14 for faster lookup Martin Jansa
2011-11-29 12:48 ` [oe-core 3/5] libsdl: enable cdrom, alsa and tslib, disable rpath and add few fixes from meta-oe Martin Jansa
2011-11-29 12:48 ` [oe-core 4/5] libsdl: enable alsa based on PACKAGECONFIG and respect DISTRO_FEATURES Martin Jansa
2011-11-29 13:41 ` Richard Purdie
2011-11-29 12:48 ` [oe-core 5/5] libsdl: replace tabs with spaces Martin Jansa
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.