Ticket #16613: Portfile.diff
File Portfile.diff, 2.0 KB (added by tdflavius@…, 16 years ago) |
---|
-
Portfile
old new 3 3 PortSystem 1.0 4 4 5 5 name vtk5 6 version 5. 0.36 version 5.2.0 7 7 categories graphics devel 8 8 maintainers rene.donner@mac.com 9 9 description 3D visualization toolkit … … 16 16 homepage http://www.vtk.org/ 17 17 platforms darwin freebsd 18 18 master_sites http://www.vtk.org/files/release/5.0/ 19 checksums vtk-${version}.tar.gz md5 0148a3d3c46d0599ab63e79f7f406609\20 vtkdata-${version}.tar.gz md5 4 752aa5a363eae72abf3cb5c1f0fe4d919 checksums vtk-${version}.tar.gz md5 eb8c3b463c027490164538b0fc3b35ad \ 20 vtkdata-${version}.tar.gz md5 4da83c829cf38663f9c77b681f29a921 21 21 22 22 23 depends_build bin:cmake:cmake 23 depends_build bin:cmake:cmake \ 24 port:readline 24 25 distfiles vtk-${version}.tar.gz \ 25 26 vtkdata-${version}.tar.gz 26 27 distname VTK 27 28 28 #post-extract { 29 post-extract { 30 delete ${worksrcpath}/Utilities/vtktiff/tif_fax3sm.c 29 31 # set fl [open "| grep VTK_BUILD_VERSION ${worksrcpath}/CMakeLists.txt | grep 6"] 30 32 # set data [read $fl] 31 33 # close $fl … … 35 37 #The build may still succeed but this should be reported as a bug 36 38 #================================================================" 37 39 # } 38 #} 39 40 patchfiles patch-Rendering-vtkCocoaRenderWindow.mm 40 } 41 41 42 42 configure { system "cd ${worksrcpath} && ${configure.env} cmake ${configure.args} ${worksrcpath}" } 43 43 configure.args -DBUILD_SHARED_LIBS:BOOL=OFF \ … … 58 58 configure.env LDFLAGS="-L${prefix}/lib" \ 59 59 CPPFLAGS="-I${prefix}/include" 60 60 61 post-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 61 68 platform darwin 8 { 62 69 configure.env-append CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 MACOSX_DEPLOYMENT_TARGET=10.4 63 70 }