aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authornibbles 2bits2012-11-15 13:55:13 -0800
committerAdam Vandenberg2012-11-18 13:15:43 -0800
commite65f03d831a093dd3f12b6ec0878d34e2b9ce453 (patch)
tree921751ae8bff159fee4aa4cc61a33ad1128c4367 /Library
parent00b2c2bc7ec94898316f6ccbd60c9f1b7170cf80 (diff)
downloadhomebrew-e65f03d831a093dd3f12b6ec0878d34e2b9ce453.tar.bz2
dcmtk: add missing dep on cmake
- Add a dep on cmake. Fixes build errors. - Adjust the args to correctly create the array by appending '..' - This error is unreported, but it works now with superenv. Closes #16099. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/dcmtk.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Formula/dcmtk.rb b/Library/Formula/dcmtk.rb
index ff7d2b803..acc88379f 100644
--- a/Library/Formula/dcmtk.rb
+++ b/Library/Formula/dcmtk.rb
@@ -7,6 +7,7 @@ class Dcmtk < Formula
option 'with-docs', 'Install development libraries/headers and HTML docs'
+ depends_on 'cmake' => :build
depends_on :libpng
depends_on 'libtiff'
depends_on 'doxygen' if build.include? 'with-docs'
@@ -20,9 +21,10 @@ class Dcmtk < Formula
args = std_cmake_args
args << '-DDCMTK_WITH_DOXYGEN=YES' if build.include? 'with-docs'
+ args << '..'
mkdir 'build' do
- system 'cmake', '..', *args
+ system 'cmake', *args
system 'make DOXYGEN' if build.include? 'with-docs'
system 'make install'
end