mxcl/homebrew — pull request #14305 by 2bits (2012-08-20 06:01:33+00:00)
Title: opencv: fix --32-bit option, use HB libraries

opencv has a 32bit option meant to work with HB libraries
like libtiff, jpeg, and jasper when those are universal.
Add CMake flags to stop opencv from trying to build all
those from source. Instead let if find the HB libraries.
Add CMake flags to stop it building tests.
Add a dep on Eigen, which is used to speed up code. OpenCV
has it enabled by default.
Add a CMake flag to specify that CUDA is OFF.
Duplicate the 32bit extra_CFLAGS to extra_CXXFLAGS also.
When building 32bit specify `-DCMAKE_OSX_ARCHITECTURES=i386`
per the install docs.
Switch to an OOS build. Put the source dir last.

Tested with clang and llvm from XCode-4.4.1 against HB python
and system python on Mt. Lion, all options.

Fixes #14237 #13603