aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorChristopher Denter2010-07-30 19:51:05 +0200
committerAdam Vandenberg2010-10-02 08:45:47 -0700
commit958ad791977f21e2e1afa7e03ae33243b1c681fb (patch)
tree33cde9a6b30824058bbd027d5847849c1e0aa083 /Library
parent3e7a07b9c2642a08691a1260986de62e97ff4f84 (diff)
downloadhomebrew-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.rb8
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