mxcl/homebrew — pull request #12407 by xli (2012-05-24 16:56:11+00:00)
Title: Compile opencv with "WITH_TBB=ON" option by passing --with-tbb option to brew install

TBB enables parallel code in OpenCV. Without TBB, OpenCV code only run in 1 thread.
Some task like opencv_traincascade will be really slow without TBB enabled.

Hence it's general requirement to enable TBB with OpenCV so that OpenCV code can use all CPU cores to parallel tasks and complete the task faster.
--------------

The change is adding a new option "--with-tbb" for brew install opencv, so that user can decide to turn on tbb if it was installed. For example: brew install opencv --with-tbb