Modified: trunk/dports/devel/libsdl/Portfile (102438 => 102439)
--- trunk/dports/devel/libsdl/Portfile 2013-02-02 22:40:06 UTC (rev 102438)
+++ trunk/dports/devel/libsdl/Portfile 2013-02-03 02:01:55 UTC (rev 102439)
@@ -39,11 +39,10 @@
configure.args --disable-nasm \
--without-x
+patchfiles \
+ no-CGDirectPaletteRef.patch
+
platform darwin {
- # Uses deprecated APIs? See ticket #37562
- if {${os.major} > 12} {
- configure.args-append --disable-video-cocoa
- }
configure.ldflags-append -framework Carbon
post-destroot {
Added: trunk/dports/devel/libsdl/files/no-CGDirectPaletteRef.patch (0 => 102439)
--- trunk/dports/devel/libsdl/files/no-CGDirectPaletteRef.patch (rev 0)
+++ trunk/dports/devel/libsdl/files/no-CGDirectPaletteRef.patch 2013-02-03 02:01:55 UTC (rev 102439)
@@ -0,0 +1,12 @@
+--- src/video/quartz/SDL_QuartzVideo.h.orig 2013-02-02 17:53:45.000000000 -0800
++++ src/video/quartz/SDL_QuartzVideo.h 2013-02-02 17:54:15.000000000 -0800
+@@ -91,7 +91,9 @@ typedef struct SDL_PrivateVideoData {
+ 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 */