OpenCV 2.1.0

Open source Computer Vision is a library of programming functions for real time computer vision.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
kmowery 2010-05-18 16:09:29 -07:00 committed by Adam Vandenberg
parent b5302cc530
commit 52918cfe85
1 changed files with 40 additions and 0 deletions

40
Formula/opencv.rb Normal file
View File

@ -0,0 +1,40 @@
require 'formula'
class Opencv <Formula
url 'http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.1/OpenCV-2.1.0.tar.bz2/download'
homepage 'http://opencv.willowgarage.com/wiki/'
md5 '1d71584fb4e04214c0085108f95e24c8'
version '2.1.0'
depends_on 'cmake'
depends_on 'pkg-config'
# Optional.
depends_on 'libtiff'
depends_on 'jasper'
depends_on 'tbb'
# Very Optional? Pulls in lots of dependencies but maybe not needed unless you're doing video analysis
# Video analysis requires a bunch more things which we don't have: libgstreamer, libxine, unicap, libdc1394 2.x (or libdc1394 1.x + libraw1394).
# We can leave this disabled for now.
# Maybe we could add a flag?
#depends_on 'ffmpeg'
# There are other optional dependencies but they don't currently exist in Homebrew.
def install
system "cmake -G 'Unix Makefiles' -DCMAKE_INSTALL_PREFIX:PATH=#{prefix} ."
system "make"
system "make install"
end
def caveats
return <<-EOS
The OpenCV Python module will not work until you edit your PYTHONPATH like so:
export PYTHONPATH="#{HOMEBREW_PREFIX}/lib/python2.6/site-packages/:$PYTHONPATH"
To make this permanent, put it in your shell's profile (e.g. ~/.profile).
EOS
end
end