diff --git a/media-libs/libsdl/libsdl-1.2-hg.bep b/media-libs/libsdl/libsdl-1.2-hg.bep index f1fd1a989..5f34e4af3 100644 --- a/media-libs/libsdl/libsdl-1.2-hg.bep +++ b/media-libs/libsdl/libsdl-1.2-hg.bep @@ -9,13 +9,13 @@ BUILD { cd libsdl-1.2-hg cp /boot/common/data/aclocal/libtool.m4 acinclude ./autogen.sh - cp /boot/common/bin/libtool libtool MANDIR=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man LIBDIR=`finddir B_COMMON_LIB_DIRECTORY` ./configure --prefix=`finddir B_COMMON_DIRECTORY` \ --datarootdir=`finddir B_COMMON_DATA_DIRECTORY` \ --libdir=$LIBDIR \ --mandir=$MANDIR + cp /boot/common/bin/libtool libtool make } diff --git a/media-libs/libsdl/patches/libsdl-1.2-hg.patch b/media-libs/libsdl/patches/libsdl-1.2-hg.patch new file mode 100644 index 000000000..04e43a4fa --- /dev/null +++ b/media-libs/libsdl/patches/libsdl-1.2-hg.patch @@ -0,0 +1,18 @@ +--- 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); + }