aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorsaskathex2012-05-24 20:33:23 +0300
committerAdam Vandenberg2012-05-30 21:15:22 -0700
commitdcc0b662db9add9b2ea17ee9164ca5a0491fe9bd (patch)
tree7d70bb6122228cce5a3762a75c81d508f08a2a2e /Library/Formula
parent5fb5115f58b245e073b570dd11d2f84246d39774 (diff)
downloadhomebrew-dcc0b662db9add9b2ea17ee9164ca5a0491fe9bd.tar.bz2
opencv 2.4.0
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/opencv.rb97
1 files changed, 2 insertions, 95 deletions
diff --git a/Library/Formula/opencv.rb b/Library/Formula/opencv.rb
index 1d6926b47..ad87424fd 100644
--- a/Library/Formula/opencv.rb
+++ b/Library/Formula/opencv.rb
@@ -10,8 +10,8 @@ end
class Opencv < Formula
homepage 'http://opencv.willowgarage.com/wiki/'
- url 'http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.3.1/OpenCV-2.3.1a.tar.bz2'
- md5 '82e4b6bfa349777233eea09b075e931e'
+ url 'http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.0/OpenCV-2.4.0.tar.bz2'
+ md5 '1fcda4ed3d0655f033ac30be8bad4882'
depends_on 'cmake' => :build
depends_on 'pkg-config' => :build
@@ -23,20 +23,10 @@ class Opencv < Formula
depends_on 'numpy' => :python
-
# Can also depend on ffmpeg, but this pulls in a lot of extra stuff that
# you don't need unless you're doing video analysis, and some of it isn't
# in Homebrew anyway.
- # Fix conflict when OpenEXR is installed. See:
- # http://tech.groups.yahoo.com/group/OpenCV/message/83201
- # Fix compile on llvm-gcc-4.2. See
- # "https://code.ros.org/trac/opencv/ticket/1431"
- # "https://code.ros.org/trac/opencv/ticket/1432"
- def patches
- DATA
- end
-
def options
[
["--32-bit", "Build 32-bit only."],
@@ -87,86 +77,3 @@ class Opencv < Formula
EOS
end
end
-
-__END__
-
-Fix conflict when OpenEXR is installed. See:
- http://tech.groups.yahoo.com/group/OpenCV/message/83201
-
-diff --git a/modules/highgui/src/grfmt_exr.hpp b/modules/highgui/src/grfmt_exr.hpp
-index 642000b..b1414f1 100644
---- a/modules/highgui/src/grfmt_exr.hpp
-+++ b/modules/highgui/src/grfmt_exr.hpp
-@@ -56,6 +56,7 @@ namespace cv
-
- using namespace Imf;
- using namespace Imath;
-+using Imf::PixelType;
-
- /* libpng version only */
-
-
-Fix compile on llvm-gcc-4.2. See
- https://code.ros.org/trac/opencv/ticket/1431
- https://code.ros.org/trac/opencv/ticket/1432
-
-diff --git a/modules/flann/include/opencv2/flann/any.h b/modules/flann/include/opencv2/flann/any.h
-index 46e1116..0a5f468 100644
---- a/modules/flann/include/opencv2/flann/any.h
-+++ b/modules/flann/include/opencv2/flann/any.h
-@@ -114,7 +114,7 @@ struct choose_policy<any>
- #define SMALL_POLICY(TYPE) \
- template<> \
- struct choose_policy<TYPE> { typedef small_any_policy<TYPE> type; \
-- };
-+ }
-
- SMALL_POLICY(signed char);
- SMALL_POLICY(unsigned char);
-diff --git a/modules/flann/include/opencv2/flann/defines.h b/modules/flann/include/opencv2/flann/defines.h
-index c71e149..7bd8964 100644
---- a/modules/flann/include/opencv2/flann/defines.h
-+++ b/modules/flann/include/opencv2/flann/defines.h
-@@ -120,7 +120,7 @@ enum flann_log_level_t
- FLANN_LOG_FATAL = 1,
- FLANN_LOG_ERROR = 2,
- FLANN_LOG_WARN = 3,
-- FLANN_LOG_INFO = 4,
-+ FLANN_LOG_INFO = 4
- };
-
- enum flann_distance_t
-
-
-diff --git a/modules/flann/include/opencv2/flann/any.h b/modules/flann/include/opencv2/flann/any.h
-index 0a5f468..9f9a4dd 100644
---- a/modules/flann/include/opencv2/flann/any.h
-+++ b/modules/flann/include/opencv2/flann/any.h
-@@ -30,6 +30,12 @@ struct empty_any
- {
- };
-
-+inline std::ostream& operator <<(std::ostream& out, const empty_any&)
-+{
-+ out<<"[empty_any]";
-+ return out;
-+}
-+
- struct base_any_policy
- {
- virtual void static_delete(void** x) = 0;
-diff --git a/modules/flann/include/opencv2/flann/lsh_index.h b/modules/flann/include/opencv2/flann/lsh_index.h
-index a777990..77f15d5 100644
---- a/modules/flann/include/opencv2/flann/lsh_index.h
-+++ b/modules/flann/include/opencv2/flann/lsh_index.h
-@@ -56,6 +56,10 @@ namespace cvflann
-
- struct LshIndexParams : public IndexParams
- {
-+ LshIndexParams()
-+ {
-+ }
-+
- LshIndexParams(unsigned int table_number, unsigned int key_size, unsigned int multi_probe_level)
- {
- (* this)["algorithm"] = FLANN_INDEX_LSH;