Ticket #16613: Portfile.diff

File Portfile.diff, 2.0 KB (added by tdflavius@…, 16 years ago)
  • Portfile

    old new  
    33PortSystem 1.0
    44
    55name            vtk5
    6 version         5.0.3
     6version         5.2.0
    77categories      graphics devel
    88maintainers     rene.donner@mac.com
    99description     3D visualization toolkit
     
    1616homepage        http://www.vtk.org/
    1717platforms       darwin freebsd
    1818master_sites    http://www.vtk.org/files/release/5.0/
    19 checksums       vtk-${version}.tar.gz md5 0148a3d3c46d0599ab63e79f7f406609 \
    20                 vtkdata-${version}.tar.gz md5 4752aa5a363eae72abf3cb5c1f0fe4d9
     19checksums       vtk-${version}.tar.gz md5 eb8c3b463c027490164538b0fc3b35ad \
     20                vtkdata-${version}.tar.gz md5 4da83c829cf38663f9c77b681f29a921
    2121
    2222
    23 depends_build   bin:cmake:cmake
     23depends_build   bin:cmake:cmake \
     24                port:readline
    2425distfiles       vtk-${version}.tar.gz \
    2526                vtkdata-${version}.tar.gz
    2627distname        VTK
    2728
    28 #post-extract {
     29post-extract {
     30        delete ${worksrcpath}/Utilities/vtktiff/tif_fax3sm.c
    2931#    set fl [open "| grep VTK_BUILD_VERSION ${worksrcpath}/CMakeLists.txt | grep 6"]
    3032#    set data [read $fl]
    3133#    close $fl
     
    3537#The build may still succeed but this should be reported as a bug
    3638#================================================================"
    3739#    }
    38 #}
    39 
    40 patchfiles      patch-Rendering-vtkCocoaRenderWindow.mm
     40}
    4141
    4242configure       { system "cd ${worksrcpath} && ${configure.env} cmake ${configure.args} ${worksrcpath}" }
    4343configure.args  -DBUILD_SHARED_LIBS:BOOL=OFF \
     
    5858configure.env   LDFLAGS="-L${prefix}/lib" \
    5959                CPPFLAGS="-I${prefix}/include"
    6060
     61post-configure {
     62        reinplace "s|c++|c++ -L${prefix}/lib |" ${worksrcpath}/Infovis/Testing/Cxx/CMakeFiles/InfovisCxxTests.dir/link.txt \
     63                                                ${worksrcpath}/IO/Testing/Cxx/CMakeFiles/IOCxxTests.dir/link.txt \
     64                                                ${worksrcpath}/Views/Testing/Cxx/CMakeFiles/ViewsCxxTests.dir/link.txt \
     65                                                ${worksrcpath}/Wrapping/Tcl/CMakeFiles/vtk.dir/link.txt
     66}
     67
    6168platform darwin 8 {
    6269        configure.env-append    CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 MACOSX_DEPLOYMENT_TARGET=10.4
    6370}