diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2012-03-18 13:54:55 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2012-03-18 13:54:55 +0000 |
commit | 2eabb95dd08b5d942a8712573c79e241afad5041 (patch) | |
tree | e2d93e163116678e584c4e24695368c916d26aa2 /media-libs/libsdl | |
parent | version bump (diff) | |
download | gentoo-2-2eabb95dd08b5d942a8712573c79e241afad5041.tar.gz gentoo-2-2eabb95dd08b5d942a8712573c79e241afad5041.tar.bz2 gentoo-2-2eabb95dd08b5d942a8712573c79e241afad5041.zip |
punt old, mostly just to get rid of last ebuild using esound
(Portage version: 2.2.0_alpha90/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/libsdl')
-rw-r--r-- | media-libs/libsdl/ChangeLog | 8 | ||||
-rw-r--r-- | media-libs/libsdl/files/libsdl-1.2.13-cld.patch | 14 | ||||
-rw-r--r-- | media-libs/libsdl/files/libsdl-1.2.13-libcaca-new-api.patch | 611 | ||||
-rw-r--r-- | media-libs/libsdl/files/libsdl-1.2.13-pulseaudio.patch | 40 | ||||
-rw-r--r-- | media-libs/libsdl/files/libsdl-1.2.13-xinerama-head-0.patch | 22 | ||||
-rw-r--r-- | media-libs/libsdl/libsdl-1.2.13-r1.ebuild | 149 |
6 files changed, 7 insertions, 837 deletions
diff --git a/media-libs/libsdl/ChangeLog b/media-libs/libsdl/ChangeLog index a73daf413e52..c8e87fc3be33 100644 --- a/media-libs/libsdl/ChangeLog +++ b/media-libs/libsdl/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-libs/libsdl # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libsdl/ChangeLog,v 1.185 2012/03/12 19:47:02 maekke Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/libsdl/ChangeLog,v 1.186 2012/03/18 13:54:55 ssuominen Exp $ + + 18 Mar 2012; Samuli Suominen <ssuominen@gentoo.org> -libsdl-1.2.13-r1.ebuild, + -files/libsdl-1.2.13-cld.patch, -files/libsdl-1.2.13-libcaca-new-api.patch, + -files/libsdl-1.2.13-pulseaudio.patch, + -files/libsdl-1.2.13-xinerama-head-0.patch: + old 12 Mar 2012; Markus Meier <maekke@gentoo.org> libsdl-1.2.15.ebuild: arm stable, bug #405217 diff --git a/media-libs/libsdl/files/libsdl-1.2.13-cld.patch b/media-libs/libsdl/files/libsdl-1.2.13-cld.patch deleted file mode 100644 index f91f63bbf052..000000000000 --- a/media-libs/libsdl/files/libsdl-1.2.13-cld.patch +++ /dev/null @@ -1,14 +0,0 @@ -fix from upstream for the cld issue on x86 - -http://bugs.gentoo.org/217097 - ---- include/SDL_stdinc.h -+++ include/SDL_stdinc.h -@@ -373,6 +373,7 @@ do { \ - __asm__ __volatile__ ( \ - "std\n\t" \ - "rep ; movsl\n\t" \ -+ "cld\n\t" \ - : "=&c" (u0), "=&D" (u1), "=&S" (u2) \ - : "0" (n >> 2), \ - "1" (dstp+(n-4)), "2" (srcp+(n-4)) \ diff --git a/media-libs/libsdl/files/libsdl-1.2.13-libcaca-new-api.patch b/media-libs/libsdl/files/libsdl-1.2.13-libcaca-new-api.patch deleted file mode 100644 index 43c2353e8311..000000000000 --- a/media-libs/libsdl/files/libsdl-1.2.13-libcaca-new-api.patch +++ /dev/null @@ -1,611 +0,0 @@ ---- SDL-1.2.13/configure.in -+++ SDL-1.2.13/configure.in -@@ -1338,6 +1338,38 @@ - fi - } - -+dnl Find the libcaca includes -+CheckCaca() -+{ -+ AC_ARG_ENABLE(video-caca, -+AC_HELP_STRING([--enable-video-caca], [use libcaca video driver [[default=no]]]), -+ , enable_video_caca=no) -+ if test x$enable_video = xyes -a x$enable_video_caca = xyes; then -+ video_caca=no -+ AC_PATH_PROG(CACACONFIG, caca-config, no) -+ if test x$CACACONFIG != xno; then -+ AC_MSG_CHECKING(for libcaca support) -+ CACA_CFLAGS=`$CACACONFIG --cflags` -+ CACA_LDFLAGS=`$CACACONFIG --libs` -+ save_CFLAGS="$CFLAGS" -+ AC_TRY_COMPILE([ -+ #include <caca.h> -+ ],[ -+ ],[ -+ video_caca=yes -+ ]) -+ CFLAGS="$save_CFLAGS" -+ AC_MSG_RESULT($video_caca) -+ if test x$video_caca = xyes; then -+ AC_DEFINE(SDL_VIDEO_DRIVER_CACA) -+ EXTRA_CFLAGS="$EXTRA_CFLAGS $CACA_CFLAGS" -+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS $CACA_LDFLAGS" -+ SOURCES="$SOURCES $srcdir/src/video/caca/*.c" -+ fi -+ fi -+ fi -+} -+ - dnl Set up the QTopia video driver if enabled - CheckQtopia() - { -@@ -2152,6 +2184,7 @@ - CheckVGL - CheckWscons - CheckAAlib -+ CheckCaca - CheckQtopia - CheckPicoGUI - CheckOpenGLX11 ---- SDL-1.2.13/src/video/caca/SDL_cacaevents.c -+++ SDL-1.2.13/src/video/caca/SDL_cacaevents.c -@@ -0,0 +1,101 @@ -+/* -+ SDL - Simple DirectMedia Layer -+ Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Sam Lantinga -+ -+ This library is free software; you can redistribute it and/or -+ modify it under the terms of the GNU Library General Public -+ License as published by the Free Software Foundation; either -+ version 2 of the License, or (at your option) any later version. -+ -+ This library is distributed in the hope that it will be useful, -+ but WITHOUT ANY WARRANTY; without even the implied warranty of -+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -+ Library General Public License for more details. -+ -+ You should have received a copy of the GNU Library General Public -+ License along with this library; if not, write to the Free -+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -+ -+ Sam Lantinga -+ slouken@libsdl.org -+*/ -+ -+#ifdef SAVE_RCSID -+static char rcsid = -+ "@(#) $Id: libsdl-1.2.13-libcaca-new-api.patch,v 1.1 2008/02/27 10:20:08 vapier Exp $"; -+#endif -+ -+#include <stdio.h> -+ -+#include <caca.h> -+#ifdef CACA_API_VERSION_1 -+#include <caca0.h> -+#endif -+ -+#include "SDL.h" -+#include "../../events/SDL_sysevents.h" -+#include "../../events/SDL_events_c.h" -+#include "SDL_cacavideo.h" -+#include "SDL_cacaevents_c.h" -+ -+void Caca_PumpEvents(_THIS) -+{ -+ int posted = 0; -+ int event; -+ SDL_keysym keysym; -+ -+ if( ! this->screen ) /* Wait till we got the screen initialised */ -+ return; -+ -+ do { -+ posted = 0; -+ -+ /* Get libcaca event */ -+ SDL_mutexP(Caca_mutex); -+ event = caca_get_event(CACA_EVENT_ANY); -+ SDL_mutexV(Caca_mutex); -+ -+ if ( event & (CACA_EVENT_KEY_PRESS | CACA_EVENT_KEY_RELEASE)) { -+ int key; -+ switch ( event & 0xffffff ) -+ { -+ case CACA_KEY_LEFT: key = SDLK_LEFT; break; -+ case CACA_KEY_RIGHT: key = SDLK_RIGHT; break; -+ case CACA_KEY_UP: key = SDLK_UP; break; -+ case CACA_KEY_DOWN: key = SDLK_DOWN; break; -+ default: key = event & 0xff; break; -+ } -+ /* Key pressed */ -+/* printf("Key pressed: %d (%c)\n", key, key); */ -+ keysym.scancode = key; -+ keysym.sym = key; -+ keysym.mod = KMOD_NONE; -+ keysym.unicode = 0; -+ if ( SDL_TranslateUNICODE ) { -+ keysym.unicode = key; -+ } -+ posted += SDL_PrivateKeyboard((event & CACA_EVENT_KEY_PRESS) ? SDL_PRESSED : SDL_RELEASED, &keysym); -+ } -+ else if ( event & (CACA_EVENT_MOUSE_PRESS | CACA_EVENT_MOUSE_RELEASE) ) { -+ /* FIXME: we currently ignore the button type! */ -+ int button = event & 0x00ffffff; -+ if ( button > 3 ) { -+ button = 1; -+ } -+ posted += SDL_PrivateMouseButton((event & CACA_EVENT_MOUSE_PRESS) ? SDL_PRESSED : SDL_RELEASED, button, 0, 0); -+ } -+ else if ( event & CACA_EVENT_MOUSE_MOTION ) { -+ int new_x = 0, new_y = 0; -+ new_x = ((event & 0x00fff000) >> 12) * Caca_w / caca_get_width(); -+ new_y = ((event & 0x00000fff) >> 0) * Caca_h / caca_get_height(); -+ posted += SDL_PrivateMouseMotion(0, 0, new_x, new_y); -+ } -+ } while ( posted ); -+} -+ -+void Caca_InitOSKeymap(_THIS) -+{ -+ return; -+} -+ -+ ---- SDL-1.2.13/src/video/caca/SDL_cacaevents_c.h -+++ SDL-1.2.13/src/video/caca/SDL_cacaevents_c.h -@@ -0,0 +1,35 @@ -+/* -+ SDL - Simple DirectMedia Layer -+ Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Sam Lantinga -+ -+ This library is free software; you can redistribute it and/or -+ modify it under the terms of the GNU Library General Public -+ License as published by the Free Software Foundation; either -+ version 2 of the License, or (at your option) any later version. -+ -+ This library is distributed in the hope that it will be useful, -+ but WITHOUT ANY WARRANTY; without even the implied warranty of -+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -+ Library General Public License for more details. -+ -+ You should have received a copy of the GNU Library General Public -+ License along with this library; if not, write to the Free -+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -+ -+ Sam Lantinga -+ slouken@libsdl.org -+*/ -+ -+#ifdef SAVE_RCSID -+static char rcsid = -+ "@(#) $Id: libsdl-1.2.13-libcaca-new-api.patch,v 1.1 2008/02/27 10:20:08 vapier Exp $"; -+#endif -+ -+#include "SDL_cacavideo.h" -+ -+/* Variables and functions exported by SDL_sysevents.c to other parts. -+ of the native video subsystem (SDL_sysvideo.c) -+*/ -+extern void Caca_PumpEvents(_THIS); -+extern void Caca_InitOSKeymap(_THIS); -+ ---- SDL-1.2.13/src/video/caca/SDL_cacavideo.c -+++ SDL-1.2.13/src/video/caca/SDL_cacavideo.c -@@ -0,0 +1,304 @@ -+/* -+ SDL - Simple DirectMedia Layer -+ Copyright (C) 2003 Sam Hocevar -+ -+ This library is free software; you can redistribute it and/or -+ modify it under the terms of the GNU Library General Public -+ License as published by the Free Software Foundation; either -+ version 2 of the License, or (at your option) any later version. -+ -+ This library is distributed in the hope that it will be useful, -+ but WITHOUT ANY WARRANTY; without even the implied warranty of -+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -+ Library General Public License for more details. -+ -+ You should have received a copy of the GNU Library General Public -+ License along with this library; if not, write to the Free -+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -+ -+ Sam Hocevar -+ sam@zoy.org -+*/ -+ -+#ifdef SAVE_RCSID -+static char rcsid = -+ "@(#) $Id: libsdl-1.2.13-libcaca-new-api.patch,v 1.1 2008/02/27 10:20:08 vapier Exp $"; -+#endif -+ -+/* libcaca based SDL video driver implementation. -+*/ -+ -+#include <stdlib.h> -+#include <stdio.h> -+#include <string.h> -+#include <unistd.h> -+#include <sys/stat.h> -+ -+ -+#include "SDL.h" -+#include "SDL_error.h" -+#include "SDL_video.h" -+#include "SDL_mouse.h" -+#include "../SDL_sysvideo.h" -+#include "../SDL_pixels_c.h" -+#include "../../events/SDL_events_c.h" -+ -+#include "SDL_cacavideo.h" -+#include "SDL_cacaevents_c.h" -+ -+#include <caca.h> -+#ifdef CACA_API_VERSION_1 -+#include <caca0.h> -+#endif -+ -+/* Initialization/Query functions */ -+static int Caca_VideoInit(_THIS, SDL_PixelFormat *vformat); -+static SDL_Rect **Caca_ListModes(_THIS, SDL_PixelFormat *format, Uint32 flags); -+static SDL_Surface *Caca_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags); -+static void Caca_VideoQuit(_THIS); -+ -+/* Hardware surface functions */ -+static int Caca_AllocHWSurface(_THIS, SDL_Surface *surface); -+static int Caca_LockHWSurface(_THIS, SDL_Surface *surface); -+static int Caca_FlipHWSurface(_THIS, SDL_Surface *surface); -+static void Caca_UnlockHWSurface(_THIS, SDL_Surface *surface); -+static void Caca_FreeHWSurface(_THIS, SDL_Surface *surface); -+ -+/* Cache the VideoDevice struct */ -+static struct SDL_VideoDevice *local_this; -+ -+/* libcaca driver bootstrap functions */ -+ -+static int Caca_Available(void) -+{ -+ return 1; /* Always available ! */ -+} -+ -+static void Caca_DeleteDevice(SDL_VideoDevice *device) -+{ -+ free(device->hidden); -+ free(device); -+} -+static SDL_VideoDevice *Caca_CreateDevice(int devindex) -+{ -+ SDL_VideoDevice *device; -+ -+ /* Initialize all variables that we clean on shutdown */ -+ device = (SDL_VideoDevice *)malloc(sizeof(SDL_VideoDevice)); -+ if ( device ) { -+ memset(device, 0, (sizeof *device)); -+ device->hidden = (struct SDL_PrivateVideoData *) -+ malloc((sizeof *device->hidden)); -+ } -+ if ( (device == NULL) || (device->hidden == NULL) ) { -+ SDL_OutOfMemory(); -+ if ( device ) { -+ free(device); -+ } -+ return(0); -+ } -+ memset(device->hidden, 0, (sizeof *device->hidden)); -+ -+ /* Set the function pointers */ -+ device->VideoInit = Caca_VideoInit; -+ device->ListModes = Caca_ListModes; -+ device->SetVideoMode = Caca_SetVideoMode; -+ device->CreateYUVOverlay = NULL; -+ device->SetColors = NULL; -+ device->UpdateRects = NULL; -+ device->VideoQuit = Caca_VideoQuit; -+ device->AllocHWSurface = Caca_AllocHWSurface; -+ device->CheckHWBlit = NULL; -+ device->FillHWRect = NULL; -+ device->SetHWColorKey = NULL; -+ device->SetHWAlpha = NULL; -+ device->LockHWSurface = Caca_LockHWSurface; -+ device->UnlockHWSurface = Caca_UnlockHWSurface; -+ device->FlipHWSurface = NULL; -+ device->FreeHWSurface = Caca_FreeHWSurface; -+ device->SetCaption = NULL; -+ device->SetIcon = NULL; -+ device->IconifyWindow = NULL; -+ device->GrabInput = NULL; -+ device->GetWMInfo = NULL; -+ device->InitOSKeymap = Caca_InitOSKeymap; -+ device->PumpEvents = Caca_PumpEvents; -+ -+ device->free = Caca_DeleteDevice; -+ -+ return device; -+} -+ -+VideoBootStrap Caca_bootstrap = { -+ "caca", "Color ASCII Art Library", -+ Caca_Available, Caca_CreateDevice -+}; -+ -+int Caca_VideoInit(_THIS, SDL_PixelFormat *vformat) -+{ -+ int i; -+ -+ /* Initialize all variables that we clean on shutdown */ -+ for ( i=0; i<SDL_NUMMODES; ++i ) { -+ SDL_modelist[i] = malloc(sizeof(SDL_Rect)); -+ SDL_modelist[i]->x = SDL_modelist[i]->y = 0; -+ } -+ /* Modes sorted largest to smallest */ -+ SDL_modelist[0]->w = 1024; SDL_modelist[0]->h = 768; -+ SDL_modelist[1]->w = 800; SDL_modelist[1]->h = 600; -+ SDL_modelist[2]->w = 640; SDL_modelist[2]->h = 480; -+ SDL_modelist[3]->w = 320; SDL_modelist[3]->h = 400; -+ SDL_modelist[4]->w = 320; SDL_modelist[4]->h = 240; -+ SDL_modelist[5]->w = 320; SDL_modelist[5]->h = 200; -+ SDL_modelist[6] = NULL; -+ -+ Caca_mutex = SDL_CreateMutex(); -+ -+ /* Initialize the library */ -+ if ( caca_init() != 0 ) { -+ SDL_SetError("Unable to initialize libcaca"); -+ return(-1); -+ } -+ -+ /* Initialize private variables */ -+ Caca_lastkey = 0; -+ Caca_bitmap = NULL; -+ Caca_buffer = NULL; -+ -+ local_this = this; -+ -+ /* Determine the screen depth (use default 8-bit depth) */ -+ vformat->BitsPerPixel = 8; -+ vformat->BytesPerPixel = 1; -+ -+ /* We're done! */ -+ return(0); -+} -+ -+SDL_Rect **Caca_ListModes(_THIS, SDL_PixelFormat *format, Uint32 flags) -+{ -+ if(format->BitsPerPixel != 8) -+ return NULL; -+ -+ if ( flags & SDL_FULLSCREEN ) { -+ return SDL_modelist; -+ } else { -+ return (SDL_Rect **) -1; -+ } -+} -+ -+/* Various screen update functions available */ -+static void Caca_DirectUpdate(_THIS, int numrects, SDL_Rect *rects); -+ -+SDL_Surface *Caca_SetVideoMode(_THIS, SDL_Surface *current, -+ int width, int height, int bpp, Uint32 flags) -+{ -+ if ( Caca_buffer ) { -+ free( Caca_buffer ); -+ Caca_buffer = NULL; -+ } -+ -+ if ( Caca_bitmap ) { -+ caca_free_bitmap( Caca_bitmap ); -+ Caca_bitmap = NULL; -+ } -+ -+ Caca_buffer = malloc(2 * ((width + 15) & ~15) * height); -+ if ( ! Caca_buffer ) { -+ SDL_SetError("Couldn't allocate buffer for requested mode"); -+ return(NULL); -+ } -+ -+ memset(Caca_buffer, 0, 2 * ((width + 15) & ~15) * height); -+ -+ /* Allocate the new pixel format for the screen */ -+ if ( ! SDL_ReallocFormat(current, 16, 0xf800, 0x07e0, 0x001f, 0) ) { -+ return(NULL); -+ } -+ -+ /* Set up the new mode framebuffer */ -+ current->flags = SDL_FULLSCREEN; -+ Caca_w = current->w = width; -+ Caca_h = current->h = height; -+ current->pitch = 2 * ((width + 15) & ~15); -+ current->pixels = Caca_buffer; -+ -+ /* Create the libcaca bitmap */ -+ Caca_bitmap = caca_create_bitmap( 16, width, height, current->pitch, 0xf800, 0x07e0, 0x001f, 0x0000 ); -+ if ( ! Caca_bitmap ) { -+ SDL_SetError("Couldn't allocate libcaca bitmap"); -+ return(NULL); -+ } -+ -+ /* Set the blit function */ -+ this->UpdateRects = Caca_DirectUpdate; -+ -+ /* We're done */ -+ return(current); -+} -+ -+/* We don't actually allow hardware surfaces other than the main one */ -+static int Caca_AllocHWSurface(_THIS, SDL_Surface *surface) -+{ -+ return(-1); -+} -+static void Caca_FreeHWSurface(_THIS, SDL_Surface *surface) -+{ -+ return; -+} -+ -+/* We need to wait for vertical retrace on page flipped displays */ -+static int Caca_LockHWSurface(_THIS, SDL_Surface *surface) -+{ -+ /* TODO ? */ -+ return(0); -+} -+static void Caca_UnlockHWSurface(_THIS, SDL_Surface *surface) -+{ -+ return; -+} -+ -+/* FIXME: How is this done with libcaca? */ -+static int Caca_FlipHWSurface(_THIS, SDL_Surface *surface) -+{ -+ SDL_mutexP(Caca_mutex); -+ caca_refresh(); -+ SDL_mutexV(Caca_mutex); -+ return(0); -+} -+ -+static void Caca_DirectUpdate(_THIS, int numrects, SDL_Rect *rects) -+{ -+ SDL_mutexP(Caca_mutex); -+ caca_draw_bitmap( 0, 0, caca_get_width() - 1, caca_get_height() - 1, -+ Caca_bitmap, Caca_buffer ); -+ caca_refresh(); -+ SDL_mutexV(Caca_mutex); -+ return; -+} -+ -+/* Note: If we are terminated, this could be called in the middle of -+ another SDL video routine -- notably UpdateRects. -+*/ -+void Caca_VideoQuit(_THIS) -+{ -+ int i; -+ -+ /* Free video mode lists */ -+ for ( i=0; i<SDL_NUMMODES; ++i ) { -+ if ( SDL_modelist[i] != NULL ) { -+ free(SDL_modelist[i]); -+ SDL_modelist[i] = NULL; -+ } -+ } -+ -+ if ( Caca_bitmap ) { -+ caca_free_bitmap( Caca_bitmap ); -+ Caca_bitmap = NULL; -+ } -+ -+ caca_end(); -+ -+ SDL_DestroyMutex(Caca_mutex); -+} -+ ---- SDL-1.2.13/src/video/caca/SDL_cacavideo.h -+++ SDL-1.2.13/src/video/caca/SDL_cacavideo.h -@@ -0,0 +1,76 @@ -+/* -+ SDL - Simple DirectMedia Layer -+ Copyright (C) 2003 Sam Hocevar -+ -+ This library is free software; you can redistribute it and/or -+ modify it under the terms of the GNU Library General Public -+ License as published by the Free Software Foundation; either -+ version 2 of the License, or (at your option) any later version. -+ -+ This library is distributed in the hope that it will be useful, -+ but WITHOUT ANY WARRANTY; without even the implied warranty of -+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -+ Library General Public License for more details. -+ -+ You should have received a copy of the GNU Library General Public -+ License along with this library; if not, write to the Free -+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -+ -+ Sam Hocevar -+ sam@zoy.org -+*/ -+ -+#ifdef SAVE_RCSID -+static char rcsid = -+ "@(#) $Id: libsdl-1.2.13-libcaca-new-api.patch,v 1.1 2008/02/27 10:20:08 vapier Exp $"; -+#endif -+ -+#ifndef _SDL_cacavideo_h -+#define _SDL_cacavideo_h -+ -+#include "SDL_mouse.h" -+#include "../SDL_sysvideo.h" -+#include "SDL_mutex.h" -+ -+#include <sys/time.h> -+#include <time.h> -+ -+#include <caca.h> -+#ifdef CACA_API_VERSION_1 -+#include <caca0.h> -+#endif -+ -+/* Hidden "this" pointer for the video functions */ -+#define _THIS SDL_VideoDevice *this -+ -+#define SDL_NUMMODES 6 -+ -+/* Private display data */ -+struct SDL_PrivateVideoData { -+ SDL_Rect *SDL_modelist[SDL_NUMMODES+1]; -+ SDL_mutex *mutex; -+ -+ struct caca_bitmap *bitmap; -+ void *buffer; -+ int w, h; -+ -+ int lastkey; -+ struct timeval lasttime; -+}; -+ -+/* Old variable names */ -+#define SDL_modelist (this->hidden->SDL_modelist) -+#define Caca_palette (this->hidden->palette) -+#define Caca_bitmap (this->hidden->bitmap) -+#define Caca_buffer (this->hidden->buffer) -+ -+#define Caca_w (this->hidden->w) -+#define Caca_h (this->hidden->h) -+ -+#define Caca_lastkey (this->hidden->lastkey) -+#define Caca_lasttime (this->hidden->lasttime) -+ -+#define Caca_mutex (this->hidden->mutex) -+ -+#endif /* _SDL_cacavideo_h */ -+ ---- SDL-1.2.13/src/video/SDL_sysvideo.h -+++ SDL-1.2.13/src/video/SDL_sysvideo.h -@@ -404,6 +404,9 @@ - #if SDL_VIDEO_DRIVER_AALIB - extern VideoBootStrap AALIB_bootstrap; - #endif -+#if SDL_VIDEO_DRIVER_CACA -+extern VideoBootStrap Caca_bootstrap; -+#endif - #if SDL_VIDEO_DRIVER_DUMMY - extern VideoBootStrap DUMMY_bootstrap; - #endif ---- SDL-1.2.13/src/video/SDL_video.c -+++ SDL-1.2.13/src/video/SDL_video.c -@@ -120,6 +120,9 @@ - #if SDL_VIDEO_DRIVER_AALIB - &AALIB_bootstrap, - #endif -+#if SDL_VIDEO_DRIVER_CACA -+ &Caca_bootstrap, -+#endif - #if SDL_VIDEO_DRIVER_DUMMY - &DUMMY_bootstrap, - #endif ---- SDL-1.2.13/include/SDL_config.h.in -+++ SDL-1.2.13/include/SDL_config.h.in -@@ -253,6 +253,7 @@ - /* Enable various video drivers */ - #undef SDL_VIDEO_DRIVER_AALIB - #undef SDL_VIDEO_DRIVER_BWINDOW -+#undef SDL_VIDEO_DRIVER_CACA - #undef SDL_VIDEO_DRIVER_DC - #undef SDL_VIDEO_DRIVER_DDRAW - #undef SDL_VIDEO_DRIVER_DGA diff --git a/media-libs/libsdl/files/libsdl-1.2.13-pulseaudio.patch b/media-libs/libsdl/files/libsdl-1.2.13-pulseaudio.patch deleted file mode 100644 index 8bbf529431cc..000000000000 --- a/media-libs/libsdl/files/libsdl-1.2.13-pulseaudio.patch +++ /dev/null @@ -1,40 +0,0 @@ -fixup the pulse audio configure flags. this is already fixed upstream. - -http://bugs.gentoo.org/198147 - ---- SDL/configure.in -+++ SDL/configure.in -@@ -470,8 +470,8 @@ - { - AC_ARG_ENABLE(pulseaudio, - AC_HELP_STRING([--enable-pulseaudio], [use PulseAudio [[default=yes]]]), -- , enable_pulse=yes) -- if test x$enable_audio = xyes -a x$enable_pulse = xyes; then -+ , enable_pulseaudio=yes) -+ if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then - audio_pulse=no - - PULSE_REQUIRED_VERSION=0.9 -@@ -490,7 +490,7 @@ - if test x$audio_pulse = xyes; then - AC_ARG_ENABLE(pulseaudio-shared, - AC_HELP_STRING([--enable-pulseaudio-shared], [dynamically load PulseAudio support [[default=yes]]]), -- , enable_pulse_shared=yes) -+ , enable_pulseaudio_shared=yes) - if test "x`echo $PULSE_LIBS | grep -- -L`" = "x"; then - if test "x`ls /lib/libpulse-simple.so.* 2> /dev/null`" != "x"; then - PULSE_LIBS="-L/lib $PULSE_LIBS" -@@ -508,11 +508,11 @@ - SOURCES="$SOURCES $srcdir/src/audio/pulse/*.c" - EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSE_CFLAGS" - if test x$have_loadso != xyes && \ -- test x$enable_pulse_shared = xyes; then -+ test x$enable_pulseaudio_shared = xyes; then - AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic PulseAudio loading]) - fi - if test x$have_loadso = xyes && \ -- test x$enable_pulse_shared = xyes && test x$pulse_lib != x; then -+ test x$enable_pulseaudio_shared = xyes && test x$pulse_lib != x; then - AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_PULSE_DYNAMIC, "$pulse_lib") - else - EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSE_LIBS" diff --git a/media-libs/libsdl/files/libsdl-1.2.13-xinerama-head-0.patch b/media-libs/libsdl/files/libsdl-1.2.13-xinerama-head-0.patch deleted file mode 100644 index 56c8af1a6a4b..000000000000 --- a/media-libs/libsdl/files/libsdl-1.2.13-xinerama-head-0.patch +++ /dev/null @@ -1,22 +0,0 @@ -http://bugs.gentoo.org/145917 - ---- SDL-1.2.11/src/video/x11/SDL_x11modes.c -+++ SDL-1.2.11/src/video/x11/SDL_x11modes.c -@@ -509,7 +509,7 @@ int X11_GetVideoModes(_THIS) - /* Query Xinerama extention */ - if ( CheckXinerama(this, &xinerama_major, &xinerama_minor) ) { - /* Find out which screen is the desired one */ -- int desired = 0; -+ int desired = -1; - int screens; - int w, h; - SDL_NAME(XineramaScreenInfo) *xinerama; -@@ -630,7 +630,7 @@ int X11_GetVideoModes(_THIS) - /* XVidMode */ - if ( !use_xrandr && - #if SDL_VIDEO_DRIVER_X11_XINERAMA -- (!use_xinerama || xinerama_info.screen_number == 0) && -+ (!use_xinerama || xinerama_info.screen_number == -1) && - #endif - CheckVidMode(this, &vm_major, &vm_minor) && - SDL_NAME(XF86VidModeGetAllModeLines)(SDL_Display, SDL_Screen,&nmodes,&modes) ) diff --git a/media-libs/libsdl/libsdl-1.2.13-r1.ebuild b/media-libs/libsdl/libsdl-1.2.13-r1.ebuild deleted file mode 100644 index b38db06a9199..000000000000 --- a/media-libs/libsdl/libsdl-1.2.13-r1.ebuild +++ /dev/null @@ -1,149 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libsdl/libsdl-1.2.13-r1.ebuild,v 1.14 2009/11/14 07:55:24 mr_bones_ Exp $ - -EAPI=2 -inherit flag-o-matic toolchain-funcs eutils libtool - -DESCRIPTION="Simple Direct Media Layer" -HOMEPAGE="http://www.libsdl.org/" -SRC_URI="http://www.libsdl.org/release/SDL-${PV}.tar.gz" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd" -# WARNING: -# if you disable the audio, video, joystick use flags or turn on the custom-cflags use flag -# in USE and something breaks, you pick up the pieces. Be prepared for -# bug reports to be marked INVALID. -IUSE="oss alsa esd nas X dga xv xinerama fbcon directfb ggi svga tslib aalib opengl libcaca +audio +video +joystick custom-cflags pulseaudio" - -RDEPEND="audio? ( >=media-libs/audiofile-0.1.9 ) - alsa? ( media-libs/alsa-lib ) - esd? ( >=media-sound/esound-0.2.19 ) - nas? ( - media-libs/nas - x11-libs/libXt - x11-libs/libXext - x11-libs/libX11 - ) - X? ( - x11-libs/libXt - x11-libs/libXext - x11-libs/libX11 - x11-libs/libXrandr - ) - directfb? ( >=dev-libs/DirectFB-0.9.19 ) - ggi? ( >=media-libs/libggi-2.0_beta3 ) - svga? ( >=media-libs/svgalib-1.4.2 ) - aalib? ( media-libs/aalib ) - libcaca? ( >=media-libs/libcaca-0.9-r1 ) - opengl? ( virtual/opengl virtual/glu ) - tslib? ( x11-libs/tslib ) - pulseaudio? ( media-sound/pulseaudio )" -DEPEND="${RDEPEND} - nas? ( - x11-proto/xextproto - x11-proto/xproto - ) - X? ( - x11-proto/xextproto - x11-proto/xproto - ) - x86? ( || ( >=dev-lang/yasm-0.6.0 >=dev-lang/nasm-0.98.39-r3 ) )" - -S=${WORKDIR}/SDL-${PV} - -pkg_setup() { - if use !audio || use !video || use !joystick ; then - ewarn "Since you've chosen to turn off some of libsdl's functionality," - ewarn "don't bother filing libsdl-related bugs until trying to remerge" - ewarn "libsdl with the audio, video, and joystick flags in USE." - ewarn "You need to know what you're doing to selectively turn off parts of libsdl." - epause 30 - fi - if use custom-cflags ; then - ewarn "Since you've chosen to use possibly unsafe CFLAGS," - ewarn "don't bother filing libsdl-related bugs until trying to remerge" - ewarn "libsdl without the custom-cflags use flag in USE." - epause 10 - fi -} - -src_prepare() { - # patches for bugs #40224 #145917 #198147 #217097 - epatch \ - "${FILESDIR}"/${P}-libcaca-new-api.patch \ - "${FILESDIR}"/${P}-sdl-config.patch \ - "${FILESDIR}"/${P}-xinerama-head-0.patch \ - "${FILESDIR}"/${P}-pulseaudio.patch \ - "${FILESDIR}"/${P}-cld.patch - - ./autogen.sh - elibtoolize -} - -src_configure() { - local myconf= - if [[ $(tc-arch) != "x86" ]] ; then - myconf="${myconf} --disable-nasm" - else - myconf="${myconf} --enable-nasm" - fi - use custom-cflags || strip-flags - use audio || myconf="${myconf} --disable-audio" - use video \ - && myconf="${myconf} --enable-video-dummy" \ - || myconf="${myconf} --disable-video" - use joystick || myconf="${myconf} --disable-joystick" - - local directfbconf="--disable-video-directfb" - if use directfb ; then - # since DirectFB can link against SDL and trigger a - # dependency loop, only link against DirectFB if it - # isn't broken #61592 - echo 'int main(){}' > directfb-test.c - $(tc-getCC) directfb-test.c -ldirectfb 2>/dev/null \ - && directfbconf="--enable-video-directfb" \ - || ewarn "Disabling DirectFB since libdirectfb.so is broken" - fi - - myconf="${myconf} ${directfbconf}" - - econf \ - --disable-rpath \ - --enable-events \ - --enable-cdrom \ - --enable-threads \ - --enable-timers \ - --enable-file \ - --enable-cpuinfo \ - $(use_enable oss) \ - $(use_enable alsa) \ - $(use_enable esd) \ - $(use_enable pulseaudio) \ - --disable-arts \ - $(use_enable nas) \ - $(use_enable X video-x11) \ - $(use_enable dga) \ - $(use_enable xv video-x11-xv) \ - $(use_enable xinerama video-x11-xinerama) \ - $(use_enable X video-x11-xrandr) \ - $(use_enable dga video-dga) \ - $(use_enable fbcon video-fbcon) \ - $(use_enable ggi video-ggi) \ - $(use_enable svga video-svga) \ - $(use_enable aalib video-aalib) \ - $(use_enable libcaca video-caca) \ - $(use_enable opengl video-opengl) \ - $(use_enable tslib input-tslib) \ - $(use_with X x) \ - --disable-video-x11-xme \ - ${myconf} -} - -src_install() { - emake DESTDIR="${D}" install || die "emake install failed" - dodoc BUGS CREDITS README README-SDL.txt README.CVS TODO WhatsNew - dohtml -r ./ -} |