aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorCharlie Sharpsteen2011-10-15 12:28:01 -0700
committerCharlie Sharpsteen2011-10-16 10:11:51 -0700
commitc15501ccdb25f9448611fe1e5ca957ddc206b0d4 (patch)
tree1012ca36e63ed97e2bfbcd13e1b11b8563ec61bc /Library/Formula
parent4f557acd39369f870797fa69e5e6064621800ab2 (diff)
downloadhomebrew-c15501ccdb25f9448611fe1e5ca957ddc206b0d4.tar.bz2
dcmtk: Fix Lion compilation by switching to CMake
The autotools build was failing to correctly identify some OS X type declarations.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/dcmtk.rb21
1 files changed, 11 insertions, 10 deletions
diff --git a/Library/Formula/dcmtk.rb b/Library/Formula/dcmtk.rb
index c5be9ea15..29788bff2 100644
--- a/Library/Formula/dcmtk.rb
+++ b/Library/Formula/dcmtk.rb
@@ -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