diff options
| author | Christopher Denter | 2010-07-30 19:51:05 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2010-10-02 08:45:47 -0700 |
| commit | 958ad791977f21e2e1afa7e03ae33243b1c681fb (patch) | |
| tree | 33cde9a6b30824058bbd027d5847849c1e0aa083 /Library | |
| parent | 3e7a07b9c2642a08691a1260986de62e97ff4f84 (diff) | |
| download | homebrew-958ad791977f21e2e1afa7e03ae33243b1c681fb.tar.bz2 | |
opencv - --build32 option; needed for some cameras
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/opencv.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Formula/opencv.rb b/Library/Formula/opencv.rb index 0697ad7d3..e16d56734 100644 --- a/Library/Formula/opencv.rb +++ b/Library/Formula/opencv.rb @@ -21,8 +21,14 @@ class Opencv <Formula # you don't need unless you're doing video analysis, and some of it isn't # in Homebrew anyway. + def options + [['--build32', 'Force a 32-bit build.']] + end + def install - system "cmake -G 'Unix Makefiles' -DCMAKE_INSTALL_PREFIX:PATH=#{prefix} ." + makefiles = "cmake -G 'Unix Makefiles' -DCMAKE_INSTALL_PREFIX:PATH=#{prefix} ." + makefiles += " -DOPENCV_EXTRA_C_FLAGS='-arch i386 -m32'" if ARGV.include? '--build32' + system makefiles system "make" system "make install" end |
