[102439] trunk/dports/devel/libsdl
jeremyhu at macports.org
jeremyhu at macports.org
Sat Feb 2 18:01:55 PST 2013
Revision: 102439
https://trac.macports.org/changeset/102439
Author: jeremyhu at macports.org
Date: 2013-02-02 18:01:55 -0800 (Sat, 02 Feb 2013)
Log Message:
-----------
libsdl: Remove CGDirectPaletteRef when it's not used.
Modified Paths:
--------------
trunk/dports/devel/libsdl/Portfile
Added Paths:
-----------
trunk/dports/devel/libsdl/files/no-CGDirectPaletteRef.patch
Modified: trunk/dports/devel/libsdl/Portfile
===================================================================
--- 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
===================================================================
--- 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 */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130202/4ef4d783/attachment.html>
More information about the macports-changes
mailing list