From 2449cb476e3b8ad9dc53b5ce796913b1a626c8d1 Mon Sep 17 00:00:00 2001 From: Jose V Beneyto Date: Fri, 21 Jun 2013 18:29:01 +0200 Subject: [PATCH] libsdl: added patch to fix build (FS#933) --- libsdl/.md5sum | 1 + libsdl/Pkgfile | 7 +++++-- libsdl/libsdl-1.2.x-libx11.patch | 11 +++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 libsdl/libsdl-1.2.x-libx11.patch diff --git a/libsdl/.md5sum b/libsdl/.md5sum index 8857a0799..17dc47c22 100644 --- a/libsdl/.md5sum +++ b/libsdl/.md5sum @@ -1 +1,2 @@ 9d96df8417572a2afb781a7c4c811a85 SDL-1.2.15.tar.gz +ebff7a0aef0b79a0199e394ff9b212ab libsdl-1.2.x-libx11.patch diff --git a/libsdl/Pkgfile b/libsdl/Pkgfile index f7424e065..3e264f932 100644 --- a/libsdl/Pkgfile +++ b/libsdl/Pkgfile @@ -6,12 +6,15 @@ name=libsdl version=1.2.15 -release=1 -source=(http://www.libsdl.org/release/SDL-$version.tar.gz) +release=2 +source=(http://www.libsdl.org/release/SDL-$version.tar.gz \ + $name-1.2.x-libx11.patch) build () { cd SDL-$version + patch -p1 -i $SRC/$name-1.2.x-libx11.patch + ./configure --prefix=/usr \ --enable-alsa \ --mandir=/usr/man diff --git a/libsdl/libsdl-1.2.x-libx11.patch b/libsdl/libsdl-1.2.x-libx11.patch new file mode 100644 index 000000000..2dca32250 --- /dev/null +++ b/libsdl/libsdl-1.2.x-libx11.patch @@ -0,0 +1,11 @@ +--- a/src/video/x11/SDL_x11sym.h Wed Feb 27 15:20:31 2013 -0800 ++++ a/src/video/x11/SDL_x11sym.h Wed Mar 27 16:07:23 2013 +0100 +@@ -165,7 +165,7 @@ + */ + #ifdef LONG64 + SDL_X11_MODULE(IO_32BIT) +-SDL_X11_SYM(int,_XData32,(Display *dpy,register long *data,unsigned len),(dpy,data,len),return) ++SDL_X11_SYM(int,_XData32,(Display *dpy,register _Xconst long *data,unsigned len),(dpy,data,len),return) + SDL_X11_SYM(void,_XRead32,(Display *dpy,register long *data,long len),(dpy,data,len),) + #endif +