2012-09-17 08:53:37 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Insighttoolkit < Formula
|
|
|
|
homepage 'http://www.itk.org'
|
2013-01-03 04:39:22 +00:00
|
|
|
url 'http://sourceforge.net/projects/itk/files/itk/4.3/InsightToolkit-4.3.1.tar.gz'
|
|
|
|
sha1 '85375a316dd39f7f70dee5a2bd022f768db28eeb'
|
2012-09-17 08:53:37 +00:00
|
|
|
|
|
|
|
head 'git://itk.org/ITK.git'
|
|
|
|
|
|
|
|
option 'examples', 'Compile and install various examples'
|
|
|
|
|
|
|
|
depends_on 'cmake' => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
args = std_cmake_args + %W[
|
|
|
|
-DBUILD_TESTING=OFF
|
|
|
|
-DBUILD_SHARED_LIBS=ON
|
|
|
|
]
|
|
|
|
args << ".."
|
|
|
|
args << '-DBUILD_EXAMPLES=' + ((build.include? 'examples') ? 'ON' : 'OFF')
|
|
|
|
|
|
|
|
mkdir 'itk-build' do
|
|
|
|
system "cmake", *args
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|