2010-11-07 20:32:53 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Dcmtk < Formula
|
2010-11-07 20:32:53 +00:00
|
|
|
homepage 'http://dicom.offis.de/dcmtk.php.en'
|
2011-02-17 13:45:44 +00:00
|
|
|
url 'ftp://dicom.offis.de/pub/dicom/offis/software/dcmtk/dcmtk360/dcmtk-3.6.0.tar.gz'
|
|
|
|
md5 '19409e039e29a330893caea98715390e'
|
2010-11-07 20:32:53 +00:00
|
|
|
|
|
|
|
depends_on 'libtiff'
|
2011-03-04 14:22:38 +00:00
|
|
|
depends_on 'doxygen' if ARGV.include? '--install-all'
|
|
|
|
|
|
|
|
def options
|
|
|
|
[['--install-all', 'Install development libraries/headers and HTML docs']]
|
|
|
|
end
|
2010-11-07 20:32:53 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.deparallelize
|
2011-03-18 17:30:47 +00:00
|
|
|
ENV.m64 if MacOS.prefer_64_bit?
|
2010-11-12 19:54:16 +00:00
|
|
|
ENV.x11
|
2010-11-07 20:32:53 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking", "--disable-debug",
|
2011-03-28 14:01:11 +00:00
|
|
|
"--prefix=#{prefix}"
|
2010-11-07 20:32:53 +00:00
|
|
|
system "make all"
|
2011-03-04 14:22:38 +00:00
|
|
|
if ARGV.include? '--install-all'
|
|
|
|
system "make install-all"
|
|
|
|
else
|
|
|
|
system "make install"
|
|
|
|
end
|
2010-11-07 20:32:53 +00:00
|
|
|
end
|
|
|
|
end
|