Ignore:
Timestamp:
Aug 14, 2005, 4:35:04 PM (14 years ago)
Author:
yves
Message:

new maintainer and version
Bug: 1876, 3764
Submitted by: yves@ & cssdev@…
Reviewed by:
Approved by:
Obtained from:

Location:
trunk/dports/graphics/vtk
Files:
10 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/graphics/vtk/Portfile

    r12652 r13522  
    1 # $Id: Portfile,v 1.6 2005/06/15 01:42:32 jmpp Exp $
     1# $Id: Portfile,v 1.7 2005/08/14 16:35:04 yves Exp $
    22
    33PortSystem 1.0
    44name            VTK
    5 version         4.2.1
     5version         4.2.6
    66categories      graphics
    7 maintainers     julian9@mac.com
     7maintainers     cssdev@mac.com
    88description     3D visualization toolkit
    9 long_description  an open source, freely available software system for 3D computer graphics, \
    10                   image processing, and visualization used by thousands of researchers and \
    11                   developers around the world. VTK consists of a C++ class library, and several \
    12                   interpreted interface layers including Tcl/Tk, Java, and Python.
     9long_description        an open source, freely available software system  \
     10        for 3D computer graphics, image processing, and visualization     \
     11        used by thousands of researchers and developers around the world. \
     12        VTK consists of a C++ class library, and several interpreted      \
     13        interface layers including Tcl/Tk, Java, and Python.
     14
    1315homepage        http://www.vtk.org/
    1416platforms       darwin freebsd
    15 master_sites    http://www.vtk.org/files/release/4.2/
    16 checksums       md5 a30fae7b969a11584517d28a937cb70a
     17master_sites    sourceforge:vtk
     18checksums       md5 41382fb3f8d15e76d7464c11045ee7a5
    1719
    1820depends_build   bin:cmake:cmake
     21distfiles       ${name}-4.2-LatestRelease${extract.suffix}
     22distname        ${name}
    1923
    20 configure       { system "cd ${worksrcpath} && cmake" }
     24post-extract {
     25    set fl [open "| grep VTK_BUILD_VERSION ${worksrcpath}/CMakeLists.txt | grep 6"]
     26    set data [read $fl]
     27    close $fl
     28    if {$data != "SET(VTK_BUILD_VERSION 6)\n"} { ui_msg "$data
     29================================================================
     30Warning : the Latest VTK version is not the same as the Portfile
     31The build may still succeed but this should be reported as a bug
     32================================================================"
     33    }
     34}
    2135
     36configure       { system "cd ${worksrcpath} && cmake ${worksrcpath}" }
    2237post-configure  {
    2338        reinplace "s;BUILD_SHARED_LIBS:BOOL=.*;BUILD_SHARED_LIBS:BOOL=ON;" ${worksrcpath}/CMakeCache.txt
     
    2843
    2944variant devel {
    30         version 4.3
     45        version 4.5.0
    3146        fetch.type      cvs
    32         cvs.root         :pserver:anonymous@public.kitware.com:/cvsroot/VTK
     47        cvs.root        :pserver:anonymous@public.kitware.com:/cvsroot/VTK
    3348        cvs.module      VTK
    34         cvs.password    VTK
     49        cvs.password    vtk
    3550}
     51
     52platform darwin 8 {
     53    patchfiles patch-vtkAbstractMapper.cxx \
     54               patch-vtkAbstractMapper3D.cxx \
     55               patch-vtkAppendFilter.cxx \
     56               patch-vtkBMPReader.cxx \
     57               patch-vtkBooleanTexture.cxx \
     58               patch-vtkCardinalSpline.cxx \
     59               patch-vtkCocoaGLView.h \
     60               patch-vtkCocoaGLView.mm \
     61               patch-vtkImageReader.cxx
     62
     63    pre-build {
     64            reinplace "s;VTK_APPLE_SHARED_FLAGS_NEEDED 1;VTK_APPLE_SHARED_FLAGS_NEEDED 0;" ${worksrcpath}/CMakeLists.txt
     65    }
     66}
Note: See TracChangeset for help on using the changeset viewer.