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'
|
2012-08-23 05:53:20 +00:00
|
|
|
sha1 '469e017cffc56f36e834aa19c8612111f964f757'
|
2010-11-07 20:32:53 +00:00
|
|
|
|
2012-08-27 05:25:33 +00:00
|
|
|
option 'with-docs', 'Install development libraries/headers and HTML docs'
|
|
|
|
|
2012-11-15 21:55:13 +00:00
|
|
|
depends_on 'cmake' => :build
|
2012-08-23 05:53:20 +00:00
|
|
|
depends_on :libpng
|
2010-11-07 20:32:53 +00:00
|
|
|
depends_on 'libtiff'
|
2012-08-27 05:25:33 +00:00
|
|
|
depends_on 'doxygen' if build.include? 'with-docs'
|
2010-11-07 20:32:53 +00:00
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
fails_with :clang do
|
2012-08-01 19:38:26 +00:00
|
|
|
build 421
|
2012-03-18 20:33:24 +00:00
|
|
|
end
|
2012-03-13 04:58:59 +00:00
|
|
|
|
2010-11-07 20:32:53 +00:00
|
|
|
def install
|
2011-03-18 17:30:47 +00:00
|
|
|
ENV.m64 if MacOS.prefer_64_bit?
|
2011-10-15 19:28:01 +00:00
|
|
|
|
2012-05-22 21:37:04 +00:00
|
|
|
args = std_cmake_args
|
2012-08-27 05:25:33 +00:00
|
|
|
args << '-DDCMTK_WITH_DOXYGEN=YES' if build.include? 'with-docs'
|
2012-11-15 21:55:13 +00:00
|
|
|
args << '..'
|
2011-10-15 19:28:01 +00:00
|
|
|
|
2012-02-22 04:48:36 +00:00
|
|
|
mkdir 'build' do
|
2012-11-15 21:55:13 +00:00
|
|
|
system 'cmake', *args
|
2012-08-27 05:25:33 +00:00
|
|
|
system 'make DOXYGEN' if build.include? 'with-docs'
|
2011-10-15 19:28:01 +00:00
|
|
|
system 'make install'
|
2011-03-04 14:22:38 +00:00
|
|
|
end
|
2010-11-07 20:32:53 +00:00
|
|
|
end
|
|
|
|
end
|