From cf214da817e246b0501641658dea16ff8fe7fe15 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Fri, 22 Nov 2013 23:47:26 +0100 Subject: [PATCH] Migrate the fixes from the "hg" patch. * These will never get merged upstream, they stopped SDL1.2 development. * There is a remaining bug with window sizes, will look again tomorrow. --- media-libs/libsdl/libsdl-1.2.15.recipe | 8 +-- media-libs/libsdl/patches/libsdl-1.2_hg.patch | 51 ------------------- 2 files changed, 1 insertion(+), 58 deletions(-) delete mode 100644 media-libs/libsdl/patches/libsdl-1.2_hg.patch diff --git a/media-libs/libsdl/libsdl-1.2.15.recipe b/media-libs/libsdl/libsdl-1.2.15.recipe index 0e17856dd..4e9a5b657 100644 --- a/media-libs/libsdl/libsdl-1.2.15.recipe +++ b/media-libs/libsdl/libsdl-1.2.15.recipe @@ -45,13 +45,7 @@ BUILD_PREREQUIRES=" SOURCE_DIR="SDL-$portVersion" -PATCH() -{ - sed -i 's/AM_PATH_ALSA(0.9.0, have_alsa=yes, have_alsa=no)/have_alsa=no/' configure.in - sed -i 's/AM_PATH_ESD(0.2.8, have_esd=yes, have_esd=no)/have_esd=no/' configure.in - echo "AC_CONFIG_MACRO_DIR([acinclude])" >> configure.in -} - +PATCHES="libsdl-1.2.15.patchset" BUILD() { libtoolize --force --copy --install diff --git a/media-libs/libsdl/patches/libsdl-1.2_hg.patch b/media-libs/libsdl/patches/libsdl-1.2_hg.patch deleted file mode 100644 index acc475381..000000000 --- a/media-libs/libsdl/patches/libsdl-1.2_hg.patch +++ /dev/null @@ -1,51 +0,0 @@ ---- libsdl-1.2-hg/src/audio/baudio/SDL_beaudio.cc dim. nov. 04 19:07:49 2012 +0100 -+++ b/src/audio/baudio/SDL_beaudio.cc mar. janv. 01 22:41:22 2013 +0100 -@@ -199,11 +199,11 @@ - return (-1); - } - -- format.buffer_size = spec->samples; -- - /* Calculate the final parameters for this audio specification */ - SDL_CalculateAudioSpec(spec); - -+ format.buffer_size = spec->size; -+ - /* Subscribe to the audio stream (creates a new thread) */ - { sigset_t omask; - SDL_MaskSignals(&omask); - return (-1); - } -diff -r 9cff1c7c0fff src/video/bwindow/SDL_sysvideo.cc ---- libsdl-1.2-hg/src/video/bwindow/SDL_sysvideo.cc dim. juin 03 05:03:45 2012 -0400 -+++ b/src/video/bwindow/SDL_sysvideo.cc sam. juin 09 11:01:28 2012 +0200 -@@ -456,14 +456,6 @@ - // printf("Going windowed\n"); - SDL_Win->SetFullScreen(fullscreen); - -- // Calculate offsets for centering the window (in window mode) and for -- // dentering the bitmap (in full screen mode). -- BRect bounds = bscreen.Frame(); -- bounds.PrintToStream(); -- int32 cx = (bounds.IntegerWidth() - width)/2; -- int32 cy = (bounds.IntegerHeight() - height)/2; -- -- // printf ("cx = %d, cy = %d\n", cx, cy); - if (!SDL_Win->IsFullScreen()) { - // printf("Doing not fullscreen stuff.\n"); - // We are not in full screen mode, so we want to change the window -@@ -471,9 +463,13 @@ - SDL_Win->ResizeTo(width, height); - - // And also center the window and reset the drawing offset. -- SDL_Win->MoveTo(cx, cy); - SDL_Win->SetXYOffset(0, 0); - } else { -+ // Calculate offsets for centering the bitmap -+ BRect bounds = bscreen.Frame(); -+ int32 cx = (bounds.IntegerWidth() - width)/2; -+ int32 cy = (bounds.IntegerHeight() - height)/2; -+ - // printf("Doing fullscreen stuff."); - // Center the bitmap whenever we are in full screen mode. - SDL_Win->SetXYOffset(cx, cy);