VTK: Update to 5.8.0

Closes Homebrew/homebrew#7531.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
This commit is contained in:
Lars Bilke 2011-09-09 09:06:17 +02:00 committed by Charlie Sharpsteen
parent 6e3c769e52
commit 43ed3b843d

View file

@ -1,9 +1,9 @@
require 'formula'
class Vtk < Formula
url 'http://www.vtk.org/files/release/5.6/vtk-5.6.1.tar.gz'
url 'http://www.vtk.org/files/release/5.8/vtk-5.8.0.tar.gz'
homepage 'http://www.vtk.org'
md5 'b80a76435207c5d0f74dfcab15b75181'
md5 '37b7297d02d647cc6ca95b38174cb41f'
depends_on 'cmake' => :build
depends_on 'qt' if ARGV.include? '--qt'
@ -17,11 +17,6 @@ class Vtk < Formula
]
end
def patches
# fixes compilation issue on Mac OS X 10.7
"http://vtk.org/gitweb?p=VTK.git;a=patch;h=70db254a59c18a5e565c3232813dc821bb337563;hp=0c5990f503fe8f6e5f1a07b85b804dcc4262a6ed"
end
def install
args = std_cmake_parameters.split + [
"-DVTK_REQUIRED_OBJCXX_FLAGS:STRING=''",
@ -30,8 +25,8 @@ class Vtk < Formula
"-DBUILD_TESTING:BOOL=OFF",
"-DBUILD_EXAMPLES:BOOL=OFF",
"-DBUILD_SHARED_LIBS:BOOL=ON",
"-DCMAKE_INSTALL_RPATH:STRING='#{lib}/vtk-5.6'",
"-DCMAKE_INSTALL_NAME_DIR:STRING='#{lib}/vtk-5.6'"]
"-DCMAKE_INSTALL_RPATH:STRING='#{lib}/vtk-5.8'",
"-DCMAKE_INSTALL_NAME_DIR:STRING='#{lib}/vtk-5.8'"]
if ARGV.include? '--python'
python_prefix = `python-config --prefix`.strip