diff options
| author | kmowery | 2010-05-18 16:09:29 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-05-18 21:54:04 -0700 |
| commit | 995577c955bfd5823487a0544e989708ffb29609 (patch) | |
| tree | 0d0c65c66c09ddaeaa1f0702cd464fa4a51dc27d /Library/Formula | |
| parent | 5cfb0b38136367fa0331e196352cf1ca273eee48 (diff) | |
| download | homebrew-995577c955bfd5823487a0544e989708ffb29609.tar.bz2 | |
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>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/opencv.rb | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Library/Formula/opencv.rb b/Library/Formula/opencv.rb new file mode 100644 index 000000000..6743cc21f --- /dev/null +++ b/Library/Formula/opencv.rb @@ -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 |
