opencv - --build32 option; needed for some cameras

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Christopher Denter 2010-07-30 19:51:05 +02:00 committed by Adam Vandenberg
parent 2aeec40120
commit a9ccec70c4
1 changed files with 7 additions and 1 deletions

View File

@ -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