[145985] trunk/dports/graphics/glew
jmr at macports.org
jmr at macports.org
Tue Feb 23 11:24:22 PST 2016
Revision: 145985
https://trac.macports.org/changeset/145985
Author: jmr at macports.org
Date: 2016-02-23 11:24:22 -0800 (Tue, 23 Feb 2016)
Log Message:
-----------
glew: build fix for < 10.7 (#49848)
Modified Paths:
--------------
trunk/dports/graphics/glew/Portfile
Added Paths:
-----------
trunk/dports/graphics/glew/files/src_glewinfo.c.patch
Modified: trunk/dports/graphics/glew/Portfile
===================================================================
--- trunk/dports/graphics/glew/Portfile 2016-02-23 19:14:37 UTC (rev 145984)
+++ trunk/dports/graphics/glew/Portfile 2016-02-23 19:24:22 UTC (rev 145985)
@@ -25,7 +25,8 @@
sha1 d5b1c499f429aa91c466193b4e8ea94a84019e37 \
rmd160 4ed99bea403cbe72d05cfca25694b31209922f9f
-patchfiles config_Makefile.darwin.patch
+patchfiles config_Makefile.darwin.patch \
+ src_glewinfo.c.patch
post-patch {
reinplace "s:/usr/X11R6:${prefix}:g" ${worksrcpath}/config/Makefile.darwin
Added: trunk/dports/graphics/glew/files/src_glewinfo.c.patch
===================================================================
--- trunk/dports/graphics/glew/files/src_glewinfo.c.patch (rev 0)
+++ trunk/dports/graphics/glew/files/src_glewinfo.c.patch 2016-02-23 19:24:22 UTC (rev 145985)
@@ -0,0 +1,11 @@
+--- src/glewinfo.c.orig 2015-08-10 21:47:22.000000000 +1000
++++ src/glewinfo.c 2016-02-24 06:17:57.000000000 +1100
+@@ -11847,7 +11847,7 @@ GLboolean glewCreateContext (struct crea
+ i = 0;
+ contextAttrs[i++] = kCGLPFAAccelerated; /* No software rendering */
+
+- #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7
++ #if MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
+ if (params->profile & GL_CONTEXT_CORE_PROFILE_BIT)
+ {
+ if (params->major==3 && params->minor>=2)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160223/b8cde895/attachment.html>
More information about the macports-changes
mailing list