[124135] trunk/dports/graphics/vtk5/Portfile

petr at macports.org petr at macports.org
Tue Aug 19 13:47:20 PDT 2014


Revision: 124135
          https://trac.macports.org/changeset/124135
Author:   petr at macports.org
Date:     2014-08-19 13:47:20 -0700 (Tue, 19 Aug 2014)
Log Message:
-----------
vtk5: whitespace and formating

Modified Paths:
--------------
    trunk/dports/graphics/vtk5/Portfile

Modified: trunk/dports/graphics/vtk5/Portfile
===================================================================
--- trunk/dports/graphics/vtk5/Portfile	2014-08-19 20:45:59 UTC (rev 124134)
+++ trunk/dports/graphics/vtk5/Portfile	2014-08-19 20:47:20 UTC (rev 124135)
@@ -1,74 +1,81 @@
 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
-PortSystem 1.0
-PortGroup   cmake 1.0
+PortSystem          1.0
+PortGroup           cmake 1.0
 
-name        vtk5
-version     5.10.1
-revision    1
-set branch  [join [lrange [split ${version} .] 0 1] .]
+name                vtk5
+version             5.10.1
+revision            1
+set branch          [join [lrange [split ${version} .] 0 1] .]
 #
-# There was a stealth-update of vtkdata-5.10.1 that invalidated the checksums of that file.
-# (see https://trac.macports.org/wiki/PortfileRecipes#stealth-updates) Remove the 'dist_subdir'
-# line when the next proper version of vtk5 is released...
+# There was a stealth-update of vtkdata-5.10.1 that invalidated the checksums 
+# of that file.
+# (see https://trac.macports.org/wiki/PortfileRecipes#stealth-updates) 
+# Remove the 'dist_subdir' line when the next proper version of vtk5 is 
+# released...
 #
-dist_subdir   ${name}/${version}_1
-#
-categories  graphics devel
-maintainers nomaintainer
-description 3D visualization toolkit
+dist_subdir         ${name}/${version}_1
+
+categories          graphics devel
+platforms           darwin freebsd
+license             BSD
+maintainers         nomaintainer
+
+description         3D visualization toolkit
 long_description    an open source, freely available software system  \
     for 3D computer graphics, image processing, and visualization     \
     used by thousands of researchers and developers around the world. \
     VTK consists of a C++ class library, and several interpreted      \
     interface layers including Tcl/Tk, Java, and Python.
-license     BSD
 
-homepage    http://www.vtk.org/
-platforms   darwin freebsd
-master_sites    http://www.vtk.org/files/release/${branch}/
+homepage            http://www.vtk.org/
+master_sites        http://www.vtk.org/files/release/${branch}/
 
+distname            VTK${version}
 distfiles           vtk-${version}${extract.suffix}
 checksums           vtk-${version}${extract.suffix} \
                     md5     264b0052e65bd6571a84727113508789 \
                     sha1    deb834f46b3f7fc3e122ddff45e2354d69d2adc3 \
                     rmd160  3b0b138bf45743e925a905fb2eccb6b3ab3dada4
 
+
 depends_build-append    port:readline
-distname    VTK${version}
 
-patchfiles  patch-tiff-inline.diff
-
+patchfiles          patch-tiff-inline.diff
 post-patch {
     # Xcode 5.1 breaks vtk build. A backwards compatible fix is to remove
     # -fobjc-gc; see http://review.source.kitware.com/#/c/14424/
     reinplace -W ${worksrcpath} "s,-fobjc-gc,,g" CMakeLists.txt
 }
 
-use_parallel_build yes
-
 configure.args-append  \
-        -DBUILD_SHARED_LIBS:BOOL=ON \
-        -DVTK_USE_RPATH:BOOL=ON \
-        -DCMAKE_INSTALL_RPATH:STRING=${prefix}/lib/vtk-${branch} \
-        -DCMAKE_INSTALL_NAME_DIR:STRING=${prefix}/lib/vtk-${branch} \
-        -DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=ON \
-        -DVTK_INSTALL_PREFIX:PATH=${prefix} \
-        -DVTK_USE_HYBRID:BOOL=ON \
-        -DVTK_USE_TK:BOOL=OFF \
-        -DVTK_WRAP_TCL:BOOL=OFF \
-        -DTK_INCLUDE_PATH=${prefix}/include \
-        -DTK_LIBRARY=${prefix}/lib/libtk.dylib \
-        -DVTK_USE_CARBON:BOOL=OFF \
-        -DVTK_USE_COCOA:BOOL=ON \
-        -DVTK_DATA_ROOT:PATH=${prefix}/share/VTKData \
-        -DVTK_USE_GL2PS:BOOL=ON \
-        -DVTK_WRAP_PYTHON:BOOL=OFF
+    -DBUILD_SHARED_LIBS:BOOL=ON \
+    -DVTK_USE_RPATH:BOOL=ON \
+    -DCMAKE_INSTALL_RPATH:STRING=${prefix}/lib/vtk-${branch} \
+    -DCMAKE_INSTALL_NAME_DIR:STRING=${prefix}/lib/vtk-${branch} \
+    -DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=ON \
+    -DVTK_INSTALL_PREFIX:PATH=${prefix} \
+    -DVTK_USE_HYBRID:BOOL=ON \
+    -DVTK_USE_TK:BOOL=OFF \
+    -DVTK_WRAP_TCL:BOOL=OFF \
+    -DTK_INCLUDE_PATH=${prefix}/include \
+    -DTK_LIBRARY=${prefix}/lib/libtk.dylib \
+    -DVTK_USE_CARBON:BOOL=OFF \
+    -DVTK_USE_COCOA:BOOL=ON \
+    -DVTK_DATA_ROOT:PATH=${prefix}/share/VTKData \
+    -DVTK_USE_GL2PS:BOOL=ON \
+    -DVTK_WRAP_PYTHON:BOOL=OFF
 configure.cxxflags-append \
-        -DUSE_INTERP_ERRORLINE
-configure.cppflags-replace -I${prefix}/include -isystem${prefix}/include
+    -DUSE_INTERP_ERRORLINE
+configure.cppflags-replace \
+    -I${prefix}/include -isystem${prefix}/include
 
+if {${os.major} <= 10} {
+    configure.args-append  \
+        -DIOKit:FILEPATH=/System/Library/Frameworks/IOKit.framework
+}
+
 post-configure {
     reinplace "s|c++|c++ -L${prefix}/lib |" \
     ${worksrcpath}/Infovis/Testing/Cxx/CMakeFiles/InfovisCxxTests.dir/link.txt \
@@ -81,12 +88,10 @@
     }
 }
 
-build.env-append DYLD_LIBRARY_PATH=${worksrcpath}/bin
+use_parallel_build  yes
 
-if {${os.major} <= 10} {
-    configure.args-append  \
-        -DIOKit:FILEPATH=/System/Library/Frameworks/IOKit.framework
-}
+build.env-append \
+    DYLD_LIBRARY_PATH=${worksrcpath}/bin
 
 if {![variant_isset carbon] && ![variant_isset qt4_mac]} {
     default_variants +x11 +tcltk
@@ -100,8 +105,9 @@
 
 variant x11 conflicts carbon qt4_mac {
     depends_lib-append port:mesa port:Xft2 port:xorg-libXScrnSaver port:xorg-libXt
-    configure.args-delete   -DVTK_USE_COCOA:BOOL=ON
-    configure.args-append   \
+    configure.args-delete \
+        -DVTK_USE_COCOA:BOOL=ON
+    configure.args-append \
         -DVTK_USE_COCOA:BOOL=OFF \
         -DVTK_USE_X:BOOL=ON \
         -DOPENGL_gl_LIBRARY:FILEPATH=${prefix}/lib/libGL.dylib \
@@ -168,7 +174,6 @@
                 file mkdir ${destroot}${prefix}/lib/python${v}/site-packages
                 system "cd ${worksrcpath}/Wrapping/Python && ${prefix}/bin/python${v} setup.py install --prefix=${frameworks_dir}/Python.framework/Versions/${v} --root=${destroot}"
             }
-
         }
     }]
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140819/6e2696d4/attachment.html>


More information about the macports-changes mailing list