diff options
author | fhajny <fhajny@pkgsrc.org> | 2013-06-19 11:54:04 +0000 |
---|---|---|
committer | fhajny <fhajny@pkgsrc.org> | 2013-06-19 11:54:04 +0000 |
commit | cfe6b8677800f43ea598c77edd319fa36f2b396c (patch) | |
tree | f6beb9e2db5013a200c12c95e136898f5fc3f277 /graphics | |
parent | e24d787e6dde727da603d423461b8a8dcf01b3b8 (diff) | |
download | pkgsrc-cfe6b8677800f43ea598c77edd319fa36f2b396c.tar.gz |
Fix build with SunOS and GCC 4.7.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/opencv/distinfo | 4 | ||||
-rw-r--r-- | graphics/opencv/patches/patch-modules_ts_src_ts.cpp | 17 |
2 files changed, 15 insertions, 6 deletions
diff --git a/graphics/opencv/distinfo b/graphics/opencv/distinfo index 6b4440403f9..ff342ec4aa0 100644 --- a/graphics/opencv/distinfo +++ b/graphics/opencv/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.21 2013/06/14 21:28:42 wiz Exp $ +$NetBSD: distinfo,v 1.22 2013/06/19 11:54:04 fhajny Exp $ SHA1 (opencv-2.4.5.tar.gz) = 9e25f821db9e25aa454a31976ba6b5a3a50b6fa4 RMD160 (opencv-2.4.5.tar.gz) = 3b7dc9da2e0b616a19e50ed5999ca0dd65c45d5f @@ -10,4 +10,4 @@ SHA1 (patch-modules_core_src_system.cpp) = 3b7ac545585a430d28c7077f360357079f127 SHA1 (patch-modules_flann_include_opencv2_flann_defines.h) = ab848e67c4e03219670598ac2d21071a617a5c33 SHA1 (patch-modules_legacy_src_dpstereo.cpp) = da9955fb6cc81054427b69efb97a58160b64f262 SHA1 (patch-modules_ts_include_opencv2_ts_ts__perf.hpp) = 8a7f08b176cedec85fd613e715d7b12d666a3e45 -SHA1 (patch-modules_ts_src_ts.cpp) = c30482215db80285aa7a5ad039308cbfca033672 +SHA1 (patch-modules_ts_src_ts.cpp) = 61e4ab59f2ca57f75212743bf869616dfc9e5f13 diff --git a/graphics/opencv/patches/patch-modules_ts_src_ts.cpp b/graphics/opencv/patches/patch-modules_ts_src_ts.cpp index c417f021588..bc39ab17078 100644 --- a/graphics/opencv/patches/patch-modules_ts_src_ts.cpp +++ b/graphics/opencv/patches/patch-modules_ts_src_ts.cpp @@ -1,10 +1,10 @@ -$NetBSD: patch-modules_ts_src_ts.cpp,v 1.1 2013/06/12 10:13:58 jperkin Exp $ +$NetBSD: patch-modules_ts_src_ts.cpp,v 1.2 2013/06/19 11:54:04 fhajny Exp $ -Avoid std::string conflict. +Avoid std::foo conflict. ---- modules/ts/src/ts.cpp.orig 2012-07-25 22:55:31.000000000 +0000 +--- modules/ts/src/ts.cpp.orig 2013-04-05 09:00:20.000000000 +0000 +++ modules/ts/src/ts.cpp -@@ -557,7 +557,7 @@ void TS::vprintf( int streams, const cha +@@ -562,7 +562,7 @@ void TS::vprintf( int streams, const cha for( int i = 0; i < MAX_IDX; i++ ) if( (streams & (1 << i)) ) { @@ -13,3 +13,12 @@ Avoid std::string conflict. // in the new GTest-based framework we do not use // any output files (except for the automatically generated xml report). // if a test fails, all the buffers are printed, so we do not want to duplicate the information and +@@ -617,7 +617,7 @@ void smoothBorder(Mat& img, const Scalar + Scalar s; + uchar *p = NULL; + int n = 100/delta; +- int nR = std::min(n, (img.rows+1)/2), nC = std::min(n, (img.cols+1)/2); ++ int nR = ::std::min(n, (img.rows+1)/2), nC = ::std::min(n, (img.cols+1)/2); + + int r, c, i; + for(r=0; r<nR; r++) |