[47258] trunk/dports/x11/mesa/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Tue Feb 24 00:08:40 PST 2009


Revision: 47258
          http://trac.macports.org/changeset/47258
Author:   jeremyhu at macports.org
Date:     2009-02-24 00:08:32 -0800 (Tue, 24 Feb 2009)
Log Message:
-----------
mesa: ASGLX_version 52... now with Tiger support

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

Modified: trunk/dports/x11/mesa/Portfile
===================================================================
--- trunk/dports/x11/mesa/Portfile	2009-02-24 05:52:43 UTC (rev 47257)
+++ trunk/dports/x11/mesa/Portfile	2009-02-24 08:08:32 UTC (rev 47258)
@@ -4,8 +4,8 @@
 
 name                mesa
 version             7.2
-revision            4
-set ASGLX_version   50
+revision            5
+set ASGLX_version   52
 categories          x11 graphics
 maintainers         jeremyhu andrea.damore openmaintainer
 description         Mesa 3D Graphics Library
@@ -24,10 +24,10 @@
                     md5     04d379292e023df0b0266825cb0dbde5 \
                     sha1    a6dce814cc56a562890ab79cf4e205f62459a29c \
                     rmd160  1e7c2cc6aa27ebaf7e726ac2086c10a5155d0832 \
-                    AppleSGLX-50.tar.bz2 \
-                    md5     baa5a60e562d6a582666d0c592504436 \
-                    sha1    9ef4a0a6ae295e9af29637e97e3d87630e075bef \
-                    rmd160  2160bdedaed0a1c06ec5caf4149aef81333a3500
+                    AppleSGLX-52.tar.bz2 \
+                    md5     08e8387baaa4e87d6e160a07767667f6 \
+                    sha1    f55c05db96e5cde2848e61eabf597413b0db7715 \
+                    rmd160  0ef07b8c1be227c3cb03f810557a15fbf0367f87
 
 patch.pre_args -p1
 patchfiles \
@@ -63,9 +63,7 @@
 }
 
 if {! [variant_isset system_x11]} {
-	if {${os.major} >= 9} {
-		default_variants +hw_render
-	}
+	default_variants +hw_render
 
 	post-extract {
 		if {! [file exists "${worksrcpath}/configs/current"]} { 
@@ -81,28 +79,20 @@
 }
 
 variant hw_render conflicts system_x11 description {Install a libGL.dylib that uses OpenGL.framework to allow rendering on your graphics hardware} {
-	if {${os.major} < 9} {
-		ui_error "+hw_render requires Mac OS X 10.5 or greater"
-		error "+hw_render requires Mac OS X 10.5 or greater"
-	}
-
 	#post-patch {
 	#	system "cd ${worksrcpath}/../AppleSGLX-${ASGLX_version} && cat ${filespath}/asglx-*.patch | patch -p0"
 	#}
 
 	post-build {
-		system "cd ${worksrcpath}/../AppleSGLX-${ASGLX_version} && ${build.cmd} libGL.1.2.dylib ${build.args} LDFLAGS='-L\$(X11_DIR)/lib -Wl,-single_module' INCLUDE='-I. -Iinclude -Iinclude/internal -DGLX_ALIAS_UNSUPPORTED -Igl ${configure.cppflags}'"
+		system "cd ${worksrcpath}/../AppleSGLX-${ASGLX_version} && ${build.cmd} builds/libGL.1.2.dylib ${build.args} LDFLAGS='${configure.ldflags}' CFLAGS='${configure.cppflags} ${configure.cflags}' INSTALL_DIR='${prefix}'"
 	}
 
 	post-destroot {
-		system "cd ${worksrcpath}/../AppleSGLX-${ASGLX_version} && ${destroot.cmd} ${destroot.target} ${destroot.destdir} ${destroot.args}"
+		system "cd ${worksrcpath}/../AppleSGLX-${ASGLX_version} && ${destroot.cmd} ${destroot.target} ${destroot.destdir} ${destroot.args} INSTALL_DIR='${prefix}'"
 	}
 }
 
 variant system_x11 conflicts hw_render description {Install a stub package to use the system X11 libraries rather than MacPorts} {
-	build.args-append X11_DIR=${x11prefix}
-	destroot.args-append X11_DIR=${x11prefix}
-
 	if { [file exists ${x11prefix}/lib/libGLU.dylib] && ! [string equal ${prefix} ${x11prefix}] } {
 		depends_build
 		depends_lib
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090224/ac7aa8d7/attachment.html>


More information about the macports-changes mailing list