[53228] users/dweber/graphics/vtk-devel/Portfile

dweber at macports.org dweber at macports.org
Wed Jul 1 11:17:51 PDT 2009


Revision: 53228
          http://trac.macports.org/changeset/53228
Author:   dweber at macports.org
Date:     2009-07-01 11:17:50 -0700 (Wed, 01 Jul 2009)
Log Message:
-----------
Adding variants for build type.  Added note about post-configure phase that could make things easier.  Revision 4 needs testing, esp. on Tiger.

Revision Links:
--------------
    http://trac.macports.org/changeset/4

Modified Paths:
--------------
    users/dweber/graphics/vtk-devel/Portfile

Modified: users/dweber/graphics/vtk-devel/Portfile
===================================================================
--- users/dweber/graphics/vtk-devel/Portfile	2009-07-01 18:04:46 UTC (rev 53227)
+++ users/dweber/graphics/vtk-devel/Portfile	2009-07-01 18:17:50 UTC (rev 53228)
@@ -65,6 +65,22 @@
     system "cd ${build.dir} && cmake ${configure.args} ${worksrcpath}"
 }
 
+
+# From vtk5 - look into how this works and whether it will replace the need to
+# call install_name_tool in many variants.  Disabled until it can be checked.
+#post-configure {
+#    reinplace "s|c++|c++ -L${prefix}/lib |" \
+#    ${worksrcpath}/Infovis/Testing/Cxx/CMakeFiles/InfovisCxxTests.dir/link.txt \
+#    ${worksrcpath}/IO/Testing/Cxx/CMakeFiles/IOCxxTests.dir/link.txt \
+#    ${worksrcpath}/Views/Testing/Cxx/CMakeFiles/ViewsCxxTests.dir/link.txt
+#
+#    if {[variant_isset tcltk]} {
+#      reinplace "s|c++|c++ -L${prefix}/lib |" \
+#      ${worksrcpath}/Wrapping/Tcl/CMakeFiles/vtk.dir/link.txt
+#    }
+#}
+
+
 # To double-check all the cmake variable settings after the configure
 #cd ${build.dir}
 #sudo cmake -LAH ../vtk-${branch} > ~/cmake_vars.txt
@@ -141,12 +157,28 @@
     default_variants-append +cocoa
 }
 
-
 variant huge \
     requires cocoa data doc examples shared testing wrap database mpi boost \
     description "provide cocoa data doc examples shared testing wrap database mpi boost" {}
 
 
+# --- Build variants
+
+variant debug conflicts release description "debug build setting" {
+    configure.args-delete \
+        -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo
+    configure.args-append \
+        -DCMAKE_BUILD_TYPE:STRING=Debug
+}
+
+variant release conflicts debug description "release build setting" {
+    configure.args-delete \
+        -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo
+    configure.args-append \
+        -DCMAKE_BUILD_TYPE:STRING=Release
+}
+
+
 # --- "Core" variants for VTK: data, doc, examples, shared libs, testing
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090701/f8abf5fc/attachment.html>


More information about the macports-changes mailing list