[51912] trunk/dports/graphics/vtk-devel/Portfile

toby at macports.org toby at macports.org
Sat Jun 6 02:00:07 PDT 2009


Revision: 51912
          http://trac.macports.org/changeset/51912
Author:   toby at macports.org
Date:     2009-06-06 02:00:07 -0700 (Sat, 06 Jun 2009)
Log Message:
-----------
protect against universal_sysroot removal

Modified Paths:
--------------
    trunk/dports/graphics/vtk-devel/Portfile

Modified: trunk/dports/graphics/vtk-devel/Portfile
===================================================================
--- trunk/dports/graphics/vtk-devel/Portfile	2009-06-06 08:57:40 UTC (rev 51911)
+++ trunk/dports/graphics/vtk-devel/Portfile	2009-06-06 09:00:07 UTC (rev 51912)
@@ -71,7 +71,6 @@
 #sudo ccmake ../vtk-${branch}
 
 configure.args \
-    -DCMAKE_OSX_SYSROOT=${universal_sysroot} \
     -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
     -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
     -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
@@ -98,6 +97,10 @@
     -DVTK_WRAP_PYTHON:BOOL=OFF \
     -DVTK_WRAP_TCL:BOOL=OFF
 
+if {[info exists universal_sysroot]} {
+    configure.args-append \
+        -DCMAKE_OSX_SYSROOT=${universal_sysroot}
+}
 
 # -----------------------------------------------------------------------------
 # PLATFORMS: platform darwin <version>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090606/feb8c74f/attachment.html>


More information about the macports-changes mailing list