dcmtk: Fix Lion compilation by switching to CMake
The autotools build was failing to correctly identify some OS X type declarations.
This commit is contained in:
parent
d4ad820d54
commit
50b4ef0575
1 changed files with 11 additions and 10 deletions
|
@ -6,23 +6,24 @@ class Dcmtk < Formula
|
|||
md5 '19409e039e29a330893caea98715390e'
|
||||
|
||||
depends_on 'libtiff'
|
||||
depends_on 'doxygen' if ARGV.include? '--install-all'
|
||||
depends_on 'doxygen' if ARGV.include? '--with-docs'
|
||||
|
||||
def options
|
||||
[['--install-all', 'Install development libraries/headers and HTML docs']]
|
||||
[['--with-docs', 'Install development libraries/headers and HTML docs']]
|
||||
end
|
||||
|
||||
def install
|
||||
ENV.deparallelize
|
||||
ENV.m64 if MacOS.prefer_64_bit?
|
||||
ENV.x11
|
||||
system "./configure", "--disable-dependency-tracking", "--disable-debug",
|
||||
"--prefix=#{prefix}"
|
||||
system "make all"
|
||||
if ARGV.include? '--install-all'
|
||||
system "make install-all"
|
||||
else
|
||||
system "make install"
|
||||
|
||||
args = std_cmake_parameters.split
|
||||
args << '-DDCMTK_WITH_DOXYGEN=YES' if ARGV.include? '--with-docs'
|
||||
|
||||
mkdir 'build'
|
||||
Dir.chdir 'build' do
|
||||
system 'cmake', '..', *args
|
||||
system 'make DOXYGEN' if ARGV.include? '--with-docs'
|
||||
system 'make install'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue