diff options
| author | Jack Nagel | 2013-01-31 18:21:13 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-01-31 18:21:13 -0600 |
| commit | 3f8e64cb4edd2e1209a7b598bfe56b60ddfce00a (patch) | |
| tree | 6ec713c5107d2bc1fda0be4769fe4e2c6aba52ae /Library/Formula/opencv.rb | |
| parent | 4c9220e87f90453d75d85f5871e306a6aaaed854 (diff) | |
| download | homebrew-3f8e64cb4edd2e1209a7b598bfe56b60ddfce00a.tar.bz2 | |
opencv: update optional deps
Diffstat (limited to 'Library/Formula/opencv.rb')
| -rw-r--r-- | Library/Formula/opencv.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Formula/opencv.rb b/Library/Formula/opencv.rb index e82bbf76e..004f27df2 100644 --- a/Library/Formula/opencv.rb +++ b/Library/Formula/opencv.rb @@ -26,7 +26,7 @@ class Opencv < Formula depends_on 'libtiff' => :optional depends_on 'jasper' => :optional depends_on 'tbb' => :optional - depends_on 'qt' if build.include? 'with-qt' + depends_on 'qt' => :optional depends_on :libpng # Can also depend on ffmpeg, but this pulls in a lot of extra stuff that @@ -49,9 +49,9 @@ class Opencv < Formula args << "-DOPENCV_EXTRA_C_FLAGS='-arch i386 -m32'" args << "-DOPENCV_EXTRA_CXX_FLAGS='-arch i386 -m32'" end - args << '-DWITH_QT=ON' if build.include? 'with-qt' - args << '-DWITH_TBB=ON' if build.include? 'with-tbb' - args << '-DWITH_OPENCL=ON' if build.include? 'with-opencl' + args << '-DWITH_QT=ON' if build.with? 'qt' + args << '-DWITH_TBB=ON' if build.with? 'tbb' + args << '-DWITH_OPENCL=ON' if build.with? 'opencl' # The CMake `FindPythonLibs` Module is dumber than a bag of hammers when # more than one python installation is available---for example, it clings |
