diff options
author | Memphiz <memphis@machzwo.de> | 2013-10-27 17:00:08 +0100 |
---|---|---|
committer | Memphiz <memphis@machzwo.de> | 2013-11-01 14:38:12 +0100 |
commit | 074bd78c7e3877a7f64a30237eed9723881265c5 (patch) | |
tree | e17954e26e1a82f1ad371483d8f1bfc17bcdbc76 /tools/depends | |
parent | 7cf271662b1cb10990ed09b2fbd9faa47c32ef46 (diff) |
[depends] - bump libsdl-native and libsdl (target) to 1.2.15 and add the mavericks compile patch on the top
Diffstat (limited to 'tools/depends')
-rw-r--r-- | tools/depends/native/libsdl-native/02-OSX_interpretKeyEvents.patch (renamed from tools/depends/target/libsdl/03-OSX_interpretKeyEvents.patch) | 0 | ||||
-rw-r--r-- | tools/depends/native/libsdl-native/02-mmx.patch | 12 | ||||
-rw-r--r-- | tools/depends/native/libsdl-native/03-mavericks-compile.patch | 12 | ||||
-rw-r--r-- | tools/depends/native/libsdl-native/Makefile | 7 | ||||
-rw-r--r-- | tools/depends/target/libsdl/02-OSX_interpretKeyEvents.patch | 15 | ||||
-rw-r--r-- | tools/depends/target/libsdl/02-mmx.patch | 12 | ||||
-rw-r--r-- | tools/depends/target/libsdl/03-mavericks-compile.patch | 41 | ||||
-rw-r--r-- | tools/depends/target/libsdl/Makefile | 8 |
8 files changed, 76 insertions, 31 deletions
diff --git a/tools/depends/target/libsdl/03-OSX_interpretKeyEvents.patch b/tools/depends/native/libsdl-native/02-OSX_interpretKeyEvents.patch index 7c4c8071e2..7c4c8071e2 100644 --- a/tools/depends/target/libsdl/03-OSX_interpretKeyEvents.patch +++ b/tools/depends/native/libsdl-native/02-OSX_interpretKeyEvents.patch diff --git a/tools/depends/native/libsdl-native/02-mmx.patch b/tools/depends/native/libsdl-native/02-mmx.patch deleted file mode 100644 index 82f51aa787..0000000000 --- a/tools/depends/native/libsdl-native/02-mmx.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- src/video/mmx.h Mon Feb 06 08:28:51 2006 +0000 -+++ src/video/mmx.h Sun Jan 30 13:38:57 2011 -0800 -@@ -355,7 +355,7 @@ - - #define mmx_r2m(op, reg, mem) \ - __asm__ __volatile__ (#op " %%" #reg ", %0" \ -- : "=X" (mem) \ -+ : "=m" (mem) \ - : /* nothing */ ) - - #define mmx_r2r(op, regs, regd) \ - diff --git a/tools/depends/native/libsdl-native/03-mavericks-compile.patch b/tools/depends/native/libsdl-native/03-mavericks-compile.patch new file mode 100644 index 0000000000..254b9e2c94 --- /dev/null +++ b/tools/depends/native/libsdl-native/03-mavericks-compile.patch @@ -0,0 +1,12 @@ +--- src/video/quartz/SDL_QuartzVideo.h.orig 2013-10-27 16:51:48.000000000 +0100 ++++ src/video/quartz/SDL_QuartzVideo.h 2013-10-27 16:52:13.000000000 +0100 +@@ -91,7 +91,9 @@ + CGDirectDisplayID display; /* 0 == main display (only support single display) */ + const void *mode; /* current mode of the display */ + const void *save_mode; /* original mode of the display */ ++#if (MAC_OS_X_VERSION_MIN_REQUIRED < 1070) + CGDirectPaletteRef palette; /* palette of an 8-bit display */ ++#endif + NSOpenGLContext *gl_context; /* OpenGL rendering context */ + NSGraphicsContext *nsgfx_context; /* Cocoa graphics context */ + Uint32 width, height, bpp; /* frequently used data about the display */ diff --git a/tools/depends/native/libsdl-native/Makefile b/tools/depends/native/libsdl-native/Makefile index db5b88d0f2..12bc560097 100644 --- a/tools/depends/native/libsdl-native/Makefile +++ b/tools/depends/native/libsdl-native/Makefile @@ -1,11 +1,11 @@ include ../../Makefile.include PREFIX=$(NATIVEPREFIX) PLATFORM=$(NATIVEPLATFORM) -DEPS= ../../Makefile.include.in 01-SDL_SetWidthHeight.patch 02-mmx.patch Makefile +DEPS= ../../Makefile.include.in 01-SDL_SetWidthHeight.patch 02-OSX_interpretKeyEvents.patch 03-mavericks-compile.patch Makefile # lib name, version LIBNAME=SDL -VERSION=1.2.14 +VERSION=1.2.15 SOURCE=$(LIBNAME)-$(VERSION) ARCHIVE=$(SOURCE).tar.gz @@ -24,7 +24,8 @@ $(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS) rm -rf $(PLATFORM); mkdir -p $(PLATFORM) cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE) cd $(PLATFORM); patch -p0 < ../01-SDL_SetWidthHeight.patch - cd $(PLATFORM); patch -p0 < ../02-mmx.patch + cd $(PLATFORM); patch -p0 < ../02-OSX_interpretKeyEvents.patch + cd $(PLATFORM); patch -p0 < ../03-mavericks-compile.patch cd $(PLATFORM); $(CONFIGURE) $(LIBDYLIB): $(PLATFORM) diff --git a/tools/depends/target/libsdl/02-OSX_interpretKeyEvents.patch b/tools/depends/target/libsdl/02-OSX_interpretKeyEvents.patch new file mode 100644 index 0000000000..7c4c8071e2 --- /dev/null +++ b/tools/depends/target/libsdl/02-OSX_interpretKeyEvents.patch @@ -0,0 +1,15 @@ +--- src/video/quartz/SDL_QuartzEvents.m 2009-10-13 07:07:14.000000000 +0800 ++++ src/video/quartz/SDL_QuartzEvents.m 2013-08-03 09:12:27.000000000 +0800 +@@ -280,7 +280,11 @@ + the scancode/keysym. + */ + if (SDL_TranslateUNICODE && state == SDL_PRESSED) { +- [field_edit interpretKeyEvents:[NSArray arrayWithObject:event]]; ++ NSResponder *firstResponder = [[NSApp keyWindow] firstResponder]; ++ if ([NSStringFromClass([firstResponder class]) isEqual:@"OSXTextInputResponder"]) ++ [firstResponder interpretKeyEvents:[NSArray arrayWithObject:event]]; ++ else ++ [field_edit interpretKeyEvents:[NSArray arrayWithObject:event]]; + chars = [ event characters ]; + numChars = [ chars length ]; + if (numChars > 0) diff --git a/tools/depends/target/libsdl/02-mmx.patch b/tools/depends/target/libsdl/02-mmx.patch deleted file mode 100644 index 82f51aa787..0000000000 --- a/tools/depends/target/libsdl/02-mmx.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- src/video/mmx.h Mon Feb 06 08:28:51 2006 +0000 -+++ src/video/mmx.h Sun Jan 30 13:38:57 2011 -0800 -@@ -355,7 +355,7 @@ - - #define mmx_r2m(op, reg, mem) \ - __asm__ __volatile__ (#op " %%" #reg ", %0" \ -- : "=X" (mem) \ -+ : "=m" (mem) \ - : /* nothing */ ) - - #define mmx_r2r(op, regs, regd) \ - diff --git a/tools/depends/target/libsdl/03-mavericks-compile.patch b/tools/depends/target/libsdl/03-mavericks-compile.patch new file mode 100644 index 0000000000..a2c40ce605 --- /dev/null +++ b/tools/depends/target/libsdl/03-mavericks-compile.patch @@ -0,0 +1,41 @@ +--- src/video/quartz/SDL_QuartzVideo.h 2012-01-19 07:30:06.000000000 +0100 ++++ src/video/quartz/SDL_QuartzVideo.h 2013-10-30 16:35:02.000000000 +0100 +@@ -91,7 +91,9 @@ + CGDirectDisplayID display; /* 0 == main display (only support single display) */ + const void *mode; /* current mode of the display */ + const void *save_mode; /* original mode of the display */ ++#ifdef CGDirectPaletteRef + CGDirectPaletteRef palette; /* palette of an 8-bit display */ ++#endif + NSOpenGLContext *gl_context; /* OpenGL rendering context */ + NSGraphicsContext *nsgfx_context; /* Cocoa graphics context */ + Uint32 width, height, bpp; /* frequently used data about the display */ +--- src/video/quartz/SDL_QuartzVideo.m 2012-01-19 07:30:06.000000000 +0100 ++++ src/video/quartz/SDL_QuartzVideo.m 2013-10-30 16:39:21.000000000 +0100 +@@ -336,7 +336,7 @@ + } + #endif + +-#if (MAC_OS_X_VERSION_MIN_REQUIRED < 1070) ++#if (MAC_OS_X_VERSION_MIN_REQUIRED < 1070) && defined(CGDirectPaletteRef) + if (!IS_LION_OR_LATER(this)) { + palette = CGPaletteCreateDefaultColorPalette(); + } +@@ -1244,7 +1244,7 @@ + static int QZ_SetColors (_THIS, int first_color, int num_colors, + SDL_Color *colors) + { +-#if (MAC_OS_X_VERSION_MIN_REQUIRED < 1070) ++#if (MAC_OS_X_VERSION_MIN_REQUIRED < 1070) && defined(CGDirectPaletteRef) + /* we shouldn't have an 8-bit mode on Lion! */ + if (!IS_LION_OR_LATER(this)) { + CGTableCount index; +@@ -1554,7 +1554,7 @@ + else + QZ_UnsetVideoMode (this, TRUE, FALSE); + +-#if (MAC_OS_X_VERSION_MIN_REQUIRED < 1070) ++#if (MAC_OS_X_VERSION_MIN_REQUIRED < 1070) && defined(CGDirectPaletteRef) + if (!IS_LION_OR_LATER(this)) { + CGPaletteRelease(palette); + } diff --git a/tools/depends/target/libsdl/Makefile b/tools/depends/target/libsdl/Makefile index b4c3504b88..0a57105356 100644 --- a/tools/depends/target/libsdl/Makefile +++ b/tools/depends/target/libsdl/Makefile @@ -1,9 +1,9 @@ include ../../Makefile.include -DEPS= ../../Makefile.include 01-SDL_SetWidthHeight.patch 02-mmx.patch Makefile +DEPS= ../../Makefile.include 01-SDL_SetWidthHeight.patch 02-OSX_interpretKeyEvents.patch 03-mavericks-compile.patch Makefile # lib name, version LIBNAME=SDL -VERSION=1.2.14 +VERSION=1.2.15 SOURCE=$(LIBNAME)-$(VERSION) ARCHIVE=$(SOURCE).tar.gz @@ -24,8 +24,8 @@ $(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS) rm -rf $(PLATFORM); mkdir -p $(PLATFORM) cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE) cd $(PLATFORM); patch -p0 < ../01-SDL_SetWidthHeight.patch - cd $(PLATFORM); patch -p0 < ../02-mmx.patch - cd $(PLATFORM); patch -p0 < ../03-OSX_interpretKeyEvents.patch + cd $(PLATFORM); patch -p0 < ../02-OSX_interpretKeyEvents.patch + cd $(PLATFORM); patch -p0 < ../03-mavericks-compile.patch cd $(PLATFORM); $(CONFIGURE) $(LIBDYLIB): $(PLATFORM) |