aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXiao Li2012-05-24 16:57:53 -0700
committerJack Nagel2012-06-07 16:00:21 -0500
commitb4ddeeab15f9fc5d2b3f7ecbf22ac4d8d2bae16f (patch)
treeeaf878a5a2ca7f39247f3576e8ca78f95e4a0efd
parent206858bf836aaeba533860a96bd4fd176ce5fc0d (diff)
downloadhomebrew-b4ddeeab15f9fc5d2b3f7ecbf22ac4d8d2bae16f.tar.bz2
opencv: add option for TBB support
TBB enables parallel code in OpenCV. Some task like opencv_traincascade will be slow without TBB enabled. Closes #12407. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
-rw-r--r--Library/Formula/opencv.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Formula/opencv.rb b/Library/Formula/opencv.rb
index ad87424fd..ce46a0bdc 100644
--- a/Library/Formula/opencv.rb
+++ b/Library/Formula/opencv.rb
@@ -30,7 +30,8 @@ class Opencv < Formula
def options
[
["--32-bit", "Build 32-bit only."],
- ["--with-qt", "Build qt backend."]
+ ["--with-qt", "Build qt backend."],
+ ["--with-tbb", "Build with TBB support."]
]
end
@@ -38,6 +39,7 @@ class Opencv < Formula
args = std_cmake_args
args << "-DOPENCV_EXTRA_C_FLAGS='-arch i386 -m32'" if ARGV.build_32_bit?
args << "-DWITH_QT=ON" if ARGV.include? "--with-qt"
+ args << "-DWITH_TBB=ON" if ARGV.include? "--with-tbb"
# The CMake `FindPythonLibs` Module is dumber than a bag of hammers when
# more than one python installation is available---for example, it clings