aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/opencv.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-21 14:46:32 -0700
committerAdam Vandenberg2012-08-21 14:46:32 -0700
commitd7d8a39acdef250f1f7e99988127affe4b609541 (patch)
tree33f05fdaa9d2ae0cb436c5235cab4ae58bc58471 /Library/Formula/opencv.rb
parentc50e3c11cded3cf28a1e2e5cfcb8dc2e660d96a6 (diff)
downloadhomebrew-d7d8a39acdef250f1f7e99988127affe4b609541.tar.bz2
OpenCV: style nits
Diffstat (limited to 'Library/Formula/opencv.rb')
-rw-r--r--Library/Formula/opencv.rb13
1 files changed, 6 insertions, 7 deletions
diff --git a/Library/Formula/opencv.rb b/Library/Formula/opencv.rb
index 7d74e417a..f5b00d2b3 100644
--- a/Library/Formula/opencv.rb
+++ b/Library/Formula/opencv.rb
@@ -13,25 +13,24 @@ class Opencv < Formula
url 'http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.2/OpenCV-2.4.2.tar.bz2'
sha1 '96ff27b87e0f028d1d16201afebabec4e0c72367'
+ option '32-bit'
+ option 'with-qt', 'Build the Qt4 backend to HighGUI'
+ option 'with-tbb', 'Enable parallel code in OpenCV using Intel TBB'
+
depends_on 'cmake' => :build
depends_on 'pkg-config' => :build
+ depends_on 'numpy' => :python
depends_on 'eigen' => :optional
depends_on 'libtiff' => :optional
depends_on 'jasper' => :optional
depends_on 'tbb' => :optional
- depends_on 'qt' if ARGV.include? '--with-qt'
-
- depends_on 'numpy' => :python
+ depends_on 'qt' if build.include? 'with-qt'
# Can also depend on ffmpeg, but this pulls in a lot of extra stuff that
# you don't need unless you're doing video analysis, and some of it isn't
# in Homebrew anyway. Will depend on openexr if it's installed.
- option '32-bit'
- option 'with-qt', 'Build the Qt4 backend to HighGUI'
- option 'with-tbb', 'Enable parallel code in OpenCV using Intel TBB'
-
def install
args = std_cmake_args + %w[
-DWITH_CUDA=OFF