[50908] trunk/dports/graphics/glew/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Tue May 12 10:33:16 PDT 2009
Revision: 50908
http://trac.macports.org/changeset/50908
Author: jeremyhu at macports.org
Date: 2009-05-12 10:33:15 -0700 (Tue, 12 May 2009)
Log Message:
-----------
glew: Build libGLEW for GLX if variannt x11 is set.
Modified Paths:
--------------
trunk/dports/graphics/glew/Portfile
Modified: trunk/dports/graphics/glew/Portfile
===================================================================
--- trunk/dports/graphics/glew/Portfile 2009-05-12 16:53:24 UTC (rev 50907)
+++ trunk/dports/graphics/glew/Portfile 2009-05-12 17:33:15 UTC (rev 50908)
@@ -5,7 +5,7 @@
name glew
version 1.5.1
-revision 1
+revision 2
categories graphics devel
platforms darwin
maintainers jmr openmaintainer
@@ -29,10 +29,13 @@
build.args CC=${configure.cc} LD=${configure.cc}
destroot.env GLEW_DEST=${destroot}${prefix}
+patchfiles darwin-glx.patch
+
pre-patch {
# CRLF line endings confuse patch and sh
reinplace "s|\r||" ${worksrcpath}/config/config.guess \
${worksrcpath}/Makefile
+ reinplace "s:/usr/X11R6:${prefix}:g" ${worksrcpath}/config/Makefile.darwin
}
variant universal {
@@ -40,3 +43,9 @@
build.args-append CFLAGS.EXTRA="${configure.universal_cflags}" \
LDFLAGS.EXTRA="${configure.universal_ldflags}"
}
+
+variant x11 description {Build libGLEW for GLX rather than OpenGL.framework} {
+ depends_lib-append port:mesa
+ build.args-append GLEW_APPLE_GLX=1
+ destroot.args-append GLEW_APPLE_GLX=1
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090512/4e5906ca/attachment-0001.html>
More information about the macports-changes
mailing list