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.
Use the new `option` DSL.
Adjust python includes to support XCode-only installs.
Use their new homepage `opencv.org`
Tested with clang and llvm from XCode-4.4.1 against HB python
and system python on Mt. Lion, all options.
FixesHomebrew/homebrew#14237Homebrew/homebrew#13603ClosesHomebrew/homebrew#14305.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
TBB enables parallel code in OpenCV. Some task like opencv_traincascade
will be slow without TBB enabled.
ClosesHomebrew/homebrew#12407.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Removed extra space at the start of -DOPENCV_EXTRA_C_FLAGS parameter that was
killing the 32bit build on Mac OS X Lion.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
OpenCV relies on the CMake FindPythonLibs module which get pwned pretty hard if
more than one Python installation is available. Copied some code from the VTK
formula that straightens things out manually.
Also added a numpy dependency.
FixesHomebrew/homebrew#7740.
"brew audit" will now warn about commented-out dependencies.
Updated formulae that had these to either take them out or rewrite
the comments around them.
Seems to work good. Memory leak from 2.1.0 is fixed. Some later revisions don't compile on OSX, though
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews