diff options
author | 2012-04-11 05:46:52 +0000 | |
---|---|---|
committer | 2012-04-11 05:46:52 +0000 | |
commit | 1491fa93cd729838613cc9657c724c08691223f9 (patch) | |
tree | 662e6fccb4771e7c29082e6024ec58bde739b7a9 /media-libs/libsdl | |
parent | x86 stable, see bug 411499 (diff) | |
download | historical-1491fa93cd729838613cc9657c724c08691223f9.tar.gz historical-1491fa93cd729838613cc9657c724c08691223f9.tar.bz2 historical-1491fa93cd729838613cc9657c724c08691223f9.zip |
add patch from Debian to work around resizing bug (bug #411539)
Package-Manager: portage-2.1.10.49/cvs/Linux x86_64
Diffstat (limited to 'media-libs/libsdl')
-rw-r--r-- | media-libs/libsdl/ChangeLog | 8 | ||||
-rw-r--r-- | media-libs/libsdl/Manifest | 14 | ||||
-rw-r--r-- | media-libs/libsdl/files/libsdl-1.2.15-resizing.patch | 63 | ||||
-rw-r--r-- | media-libs/libsdl/libsdl-1.2.15-r1.ebuild | 145 |
4 files changed, 218 insertions, 12 deletions
diff --git a/media-libs/libsdl/ChangeLog b/media-libs/libsdl/ChangeLog index 8ee0fcb191d5..6fe7b1585bb1 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.187 2012/04/01 11:14:15 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/libsdl/ChangeLog,v 1.188 2012/04/11 05:46:52 mr_bones_ Exp $ + +*libsdl-1.2.15-r1 (11 Apr 2012) + + 11 Apr 2012; Michael Sterrett <mr_bones_@gentoo.org> + +libsdl-1.2.15-r1.ebuild, +files/libsdl-1.2.15-resizing.patch: + add patch from Debian to work around resizing bug (bug #411539) 01 Apr 2012; Raúl Porcel <armin76@gentoo.org> libsdl-1.2.15.ebuild: alpha/ia64/sh/sparc stable wrt #405217 diff --git a/media-libs/libsdl/Manifest b/media-libs/libsdl/Manifest index f7dde5a02b69..98ea99495ce8 100644 --- a/media-libs/libsdl/Manifest +++ b/media-libs/libsdl/Manifest @@ -1,21 +1,13 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - AUX libsdl-1.2.13-sdl-config.patch 780 RMD160 63a3f86cd25011d0d1e983d89910d4bceb965e86 SHA1 01c8d54cb8a22ea2a1e898b3ca39f9baca07dc98 SHA256 1c73cc815ae4f6fdaee3dc899a9f38e9f29f88e3997070c9fba226b36dbed015 AUX libsdl-1.2.14-click.patch 625 RMD160 2b0f53e7214c828259743104e77473d287b50b3f SHA1 56031d605cef0468ee0552a42edcb0bb3703cb04 SHA256 e1ff242656caf11e7d554149da0c97840c4cd5d7833cd10c655282603e3846d8 AUX libsdl-1.2.14-glibc213.patch 246 RMD160 c3de39823107671b31293728ef59cce6d711d48d SHA1 b35bfedbbbe502c6446d2b03548f5493d6ff6160 SHA256 be5c1cf2d7405e03c59dcb2ee519b0546b59d67f6b4b2b3bc792143cfab3a109 AUX libsdl-1.2.14-joystick.patch 1477 RMD160 67bf6283dc54c5a7f3ed587d8f301b78904ab9e1 SHA1 87074ef0e694da1f895b45de75fb53229d30ba95 SHA256 a16b6e5af27921357bb082c68cc786b23209c2a5bd4e3ffa5e997709c26f36c8 +AUX libsdl-1.2.15-resizing.patch 2438 RMD160 84fcc50006bf33f196fa6c42029b6c28f8df2b25 SHA1 1ba49f7c160288360ec899fcc16ed7a4d7ca21ba SHA256 5160fb1c07b04480d98d45b89a0aa6e577f2ac4c3bace0c80b251e6aca1fb4a1 AUX libsdl-1.2.15-sdl-config.patch 780 RMD160 63a3f86cd25011d0d1e983d89910d4bceb965e86 SHA1 01c8d54cb8a22ea2a1e898b3ca39f9baca07dc98 SHA256 1c73cc815ae4f6fdaee3dc899a9f38e9f29f88e3997070c9fba226b36dbed015 DIST SDL-1.2.14.tar.gz 4014154 RMD160 a3a9a691f5510eb5327ca159a034f55a70cb5801 SHA1 ba625b4b404589b97e92d7acd165992debe576dd SHA256 5d927e287034cb6bb0ebccfa382cb1d185cb113c8ab5115a0759798642eed9b6 DIST SDL-1.2.15.tar.gz 3920622 RMD160 d4802a090cb4a24eeb0c8ce5690802f596d394c3 SHA1 0c5f193ced810b0d7ce3ab06d808cbb5eef03a2c SHA256 d6d316a793e5e348155f0dd93b979798933fb98aa1edebcc108829d6474aad00 EBUILD libsdl-1.2.14-r6.ebuild 4602 RMD160 d15ea01461931507f9b976bc14710db2b4598626 SHA1 33d3c05623dfce30d618129a88959c40050b8441 SHA256 721475233becb6a6893ed72480790ad2a477618f4bdb6566dae938e11d8b1975 +EBUILD libsdl-1.2.15-r1.ebuild 4113 RMD160 9ea1c2d06f18d8f07e7f6538b1a3d342816a70d1 SHA1 59ddc03d38097c4a724d5f0f9d4da41189e66eb4 SHA256 2c6198678380aaf5cb9eaeb74b2d7994c49373412314f266e2eb856345980f07 EBUILD libsdl-1.2.15.ebuild 4056 RMD160 3b7764da10814f46c296bb639861de8bdd0ac4ce SHA1 b52a714b400a1a3cf419742081ad1b07a448285c SHA256 9188148a9cd6af3da208cc03eaf4643ebe5762870035058c53317af4cc386883 -MISC ChangeLog 29126 RMD160 2b92148940eb8484266ff4bb6456939f80e4c9a6 SHA1 1aa913e146a492b36ece2c9d4f82e556068e4c48 SHA256 feaf6ac4b1b92a4a6cedd739ac5c8fe7a90c0406fc6b83c1d1efb754650287d7 +MISC ChangeLog 29348 RMD160 284e774f1e8eecff267db2d1e02ea3ab131d451e SHA1 9bf69334019b07c36f8cfddcb5b68743648a5c83 SHA256 e3015753be5fbfb5320d94bcb88049de7317aaadb6cbc700a9906e219809f3dd MISC metadata.xml 1357 RMD160 f76f0ef20941fc2c320b8a13f497dcb43f124cc9 SHA1 e5c05312f46bc682fc7fed1c7cec23bbdb59cd07 SHA256 a19b0d85c597bbe4d3dffa744d2ed9365660f8082145ab6b6f0813e36e174827 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.17 (GNU/Linux) - -iEYEARECAAYFAk94OI0ACgkQuQc30/atMkDm+QCfXwqB4HLtFSMEwoxJrHB4uwWH -q74AoIruF1+0rIA2klYn8p/I64sobswM -=nquY ------END PGP SIGNATURE----- diff --git a/media-libs/libsdl/files/libsdl-1.2.15-resizing.patch b/media-libs/libsdl/files/libsdl-1.2.15-resizing.patch new file mode 100644 index 000000000000..0655a13e137c --- /dev/null +++ b/media-libs/libsdl/files/libsdl-1.2.15-resizing.patch @@ -0,0 +1,63 @@ +Description: Revert change that breaks window corner resizing + http://bugzilla.libsdl.org/show_bug.cgi?id=1430 +Author: Andrew Caudwell <acaudwell@gmail.com> +Last-Update: 2012-04-10 +Bug-Debian: http://bugs.debian.org/665779 + +diff -r c787fb1b5699 src/video/x11/SDL_x11events.c +--- a/src/video/x11/SDL_x11events.c Mon Feb 20 23:51:08 2012 -0500 ++++ b/src/video/x11/SDL_x11events.c Mon Mar 26 12:26:52 2012 +1300 +@@ -57,12 +57,6 @@ + static SDLKey MISC_keymap[256]; + SDLKey X11_TranslateKeycode(Display *display, KeyCode kc); + +-/* +- Pending resize target for ConfigureNotify (so outdated events don't +- cause inappropriate resize events) +-*/ +-int X11_PendingConfigureNotifyWidth = -1; +-int X11_PendingConfigureNotifyHeight = -1; + + #ifdef X_HAVE_UTF8_STRING + Uint32 Utf8ToUcs4(const Uint8 *utf8) +@@ -825,16 +819,6 @@ + #ifdef DEBUG_XEVENTS + printf("ConfigureNotify! (resize: %dx%d)\n", xevent.xconfigure.width, xevent.xconfigure.height); + #endif +- if ((X11_PendingConfigureNotifyWidth != -1) && +- (X11_PendingConfigureNotifyHeight != -1)) { +- if ((xevent.xconfigure.width != X11_PendingConfigureNotifyWidth) && +- (xevent.xconfigure.height != X11_PendingConfigureNotifyHeight)) { +- /* Event is from before the resize, so ignore. */ +- break; +- } +- X11_PendingConfigureNotifyWidth = -1; +- X11_PendingConfigureNotifyHeight = -1; +- } + if ( SDL_VideoSurface ) { + if ((xevent.xconfigure.width != SDL_VideoSurface->w) || + (xevent.xconfigure.height != SDL_VideoSurface->h)) { +diff -r c787fb1b5699 src/video/x11/SDL_x11events_c.h +--- a/src/video/x11/SDL_x11events_c.h Mon Feb 20 23:51:08 2012 -0500 ++++ b/src/video/x11/SDL_x11events_c.h Mon Mar 26 12:26:52 2012 +1300 +@@ -27,8 +27,3 @@ + extern void X11_InitOSKeymap(_THIS); + extern void X11_PumpEvents(_THIS); + extern void X11_SetKeyboardState(Display *display, const char *key_vec); +- +-/* Variables to be exported */ +-extern int X11_PendingConfigureNotifyWidth; +-extern int X11_PendingConfigureNotifyHeight; +- +diff -r c787fb1b5699 src/video/x11/SDL_x11video.c +--- a/src/video/x11/SDL_x11video.c Mon Feb 20 23:51:08 2012 -0500 ++++ b/src/video/x11/SDL_x11video.c Mon Mar 26 12:26:52 2012 +1300 +@@ -1182,8 +1182,6 @@ + current = NULL; + goto done; + } +- X11_PendingConfigureNotifyWidth = width; +- X11_PendingConfigureNotifyHeight = height; + } else { + if (X11_CreateWindow(this,current,width,height,bpp,flags) < 0) { + current = NULL; diff --git a/media-libs/libsdl/libsdl-1.2.15-r1.ebuild b/media-libs/libsdl/libsdl-1.2.15-r1.ebuild new file mode 100644 index 000000000000..0638745daccf --- /dev/null +++ b/media-libs/libsdl/libsdl-1.2.15-r1.ebuild @@ -0,0 +1,145 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libsdl/libsdl-1.2.15-r1.ebuild,v 1.1 2012/04/11 05:46:52 mr_bones_ Exp $ + +EAPI=2 +inherit flag-o-matic multilib 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 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 nas X dga xv xinerama fbcon directfb ggi svga tslib aalib opengl libcaca +audio +video +joystick custom-cflags pulseaudio ps3 static-libs" + +RDEPEND="audio? ( >=media-libs/audiofile-0.1.9 ) + alsa? ( media-libs/alsa-lib ) + 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 ) + ppc64? ( ps3? ( sys-libs/libspe2 ) ) + 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 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() { + epatch \ + "${FILESDIR}"/${P}-sdl-config.patch \ + "${FILESDIR}"/${P}-resizing.patch + + 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 \ + --disable-arts \ + --disable-esd \ + --enable-events \ + --enable-cdrom \ + --enable-threads \ + --enable-timers \ + --enable-file \ + --enable-cpuinfo \ + --disable-alsa-shared \ + --disable-esd-shared \ + --disable-pulseaudio-shared \ + --disable-arts-shared \ + --disable-nas-shared \ + --disable-osmesa-shared \ + $(use_enable oss) \ + $(use_enable alsa) \ + $(use_enable pulseaudio) \ + $(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 ps3 video-ps3) \ + $(use_enable tslib input-tslib) \ + $(use_with X x) \ + $(use_enable static-libs static) \ + --disable-video-x11-xme \ + ${myconf} +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + use static-libs || rm -f "${D}"/usr/$(get_libdir)/lib*.la + dodoc BUGS CREDITS README README-SDL.txt README.HG TODO WhatsNew + dohtml -r ./ +} |