[46423] trunk/dports/x11/mesa

jeremyhu at macports.org jeremyhu at macports.org
Wed Feb 4 11:19:52 PST 2009


Revision: 46423
          http://trac.macports.org/changeset/46423
Author:   jeremyhu at macports.org
Date:     2009-02-04 11:19:52 -0800 (Wed, 04 Feb 2009)
Log Message:
-----------
mesa: Another Tiger fix for hw_render -- Need to include <OpenGL/gl.h> for GLint and GLsizei

Modified Paths:
--------------
    trunk/dports/x11/mesa/Portfile

Added Paths:
-----------
    trunk/dports/x11/mesa/files/asglx-tiger-types.patch

Modified: trunk/dports/x11/mesa/Portfile
===================================================================
--- trunk/dports/x11/mesa/Portfile	2009-02-04 19:08:36 UTC (rev 46422)
+++ trunk/dports/x11/mesa/Portfile	2009-02-04 19:19:52 UTC (rev 46423)
@@ -76,7 +76,7 @@
 
 variant hw_render conflicts system_x11 description {Install a libGL.dylib that} {
 	post-patch {
-		system "cd ${worksrcpath}/../AppleSGLX-${ASGLX_version} && patch -p0 < ${filespath}/asglx-x11dir.patch"
+		system "cd ${worksrcpath}/../AppleSGLX-${ASGLX_version} && cat ${filespath}/asglx-*.patch | patch -p0"
 	}
 	post-build {
 		system "cd ${worksrcpath}/../AppleSGLX-${ASGLX_version} && ${build.cmd} ${build.args}"

Added: trunk/dports/x11/mesa/files/asglx-tiger-types.patch
===================================================================
--- trunk/dports/x11/mesa/files/asglx-tiger-types.patch	                        (rev 0)
+++ trunk/dports/x11/mesa/files/asglx-tiger-types.patch	2009-02-04 19:19:52 UTC (rev 46423)
@@ -0,0 +1,14 @@
+Index: apple_cgl.h
+===================================================================
+--- apple_cgl.h	(revision 96)
++++ apple_cgl.h	(revision 97)
+@@ -35,6 +35,9 @@
+ #include <OpenGL/CGLTypes.h>
+ #include <OpenGL/OpenGL.h>
+ 
++/* For GLint and GLsizei on Tiger */
++#include <OpenGL/gl.h>
++
+ struct apple_cgl_api {
+     CGLError (*choose_pixel_format)(const CGLPixelFormatAttribute *attribs, 
+ 				    CGLPixelFormatObj *pix, GLint *npix);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090204/d3af7c3c/attachment.html>


More information about the macports-changes mailing list