homebrew-core/Formula/dcmtk.rb

34 lines
855 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Dcmtk < Formula
homepage 'http://dicom.offis.de/dcmtk.php.en'
url 'ftp://dicom.offis.de/pub/dicom/offis/software/dcmtk/dcmtk360/dcmtk-3.6.0.tar.gz'
sha1 '469e017cffc56f36e834aa19c8612111f964f757'
2012-08-27 05:25:33 +00:00
option 'with-docs', 'Install development libraries/headers and HTML docs'
depends_on 'cmake' => :build
depends_on :libpng
depends_on 'libtiff'
2012-08-27 05:25:33 +00:00
depends_on 'doxygen' if build.include? 'with-docs'
fails_with :clang do
2013-05-06 19:38:52 +00:00
build 425
cause "error: use of undeclared identifier 'scaleData'"
end
2012-03-13 04:58:59 +00:00
def install
2011-03-18 17:30:47 +00:00
ENV.m64 if MacOS.prefer_64_bit?
args = std_cmake_args
2012-08-27 05:25:33 +00:00
args << '-DDCMTK_WITH_DOXYGEN=YES' if build.include? 'with-docs'
args << '..'
2012-02-22 04:48:36 +00:00
mkdir 'build' do
system 'cmake', *args
2012-08-27 05:25:33 +00:00
system 'make DOXYGEN' if build.include? 'with-docs'
system 'make install'
end
end
end