aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDavid Coeurjolly2012-09-17 10:53:37 +0200
committerAdam Vandenberg2012-10-23 20:28:30 -0700
commit83aa63c65cd48aa0dc74487b47a7c379f991dbe5 (patch)
tree37eebc2bcafdac0dd3799797bbaa802fa351a096 /Library
parente75c31094a4a85c1e2e369ba1a2f3f4b0ad91305 (diff)
downloadhomebrew-83aa63c65cd48aa0dc74487b47a7c379f991dbe5.tar.bz2
InsightToolkit (itk) 4.2.0
Closes #14981. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/insighttoolkit.rb27
1 files changed, 27 insertions, 0 deletions
diff --git a/Library/Formula/insighttoolkit.rb b/Library/Formula/insighttoolkit.rb
new file mode 100644
index 000000000..6794e17c2
--- /dev/null
+++ b/Library/Formula/insighttoolkit.rb
@@ -0,0 +1,27 @@
+require 'formula'
+
+class Insighttoolkit < Formula
+ homepage 'http://www.itk.org'
+ url 'http://sourceforge.net/projects/itk/files/itk/4.2/InsightToolkit-4.2.0.tar.gz'
+ sha1 '5d1fb109cc8b8648772b654f898a531d9af01e38'
+
+ 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