Index: opencv/files/patch-modules__ts__include__opencv2__ts__ts_gtest.h =================================================================== --- opencv/files/patch-modules__ts__include__opencv2__ts__ts_gtest.h (revision 0) +++ opencv/files/patch-modules__ts__include__opencv2__ts__ts_gtest.h (working copy) @@ -0,0 +1,268 @@ +--- ./modules/ts/include/opencv2/ts/ts_gtest.h.orig 2013-09-01 01:03:57.000000000 +0100 ++++ ./modules/ts/include/opencv2/ts/ts_gtest.h 2013-09-01 01:03:38.000000000 +0100 +@@ -53,6 +53,7 @@ + + #include + #include ++#include + + // Copyright 2005, Google Inc. + // All rights reserved. +@@ -543,7 +544,7 @@ + // Author: wan@google.com (Zhanyong Wan) + + // Implements a subset of TR1 tuple needed by Google Test and Google Mock. +- ++#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_TUPLE_H_ 1 + #ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_TUPLE_H_ + #define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_TUPLE_H_ + +@@ -1504,11 +1505,31 @@ + // . Hence the following #define is a hack to prevent + // from being included. + #define _TR1_FUNCTIONAL 1 ++#if __has_include() ++#include ++namespace gtest { ++ using ::std::tuple; ++} ++#else + #include ++namespace gtest { ++ using ::std::tr1::tuple; ++} ++#endif + #undef _TR1_FUNCTIONAL // Allows the user to #include + // if he chooses to. + #else +-#include // NOLINT ++#if __has_include() ++#include ++namespace gtest { ++ using ::std::tuple; ++} ++#else ++#include ++namespace gtest { ++ using ::std::tr1::tuple; ++} ++#endif + #endif // !GTEST_HAS_RTTI && GTEST_GCC_VER_ < 40302 + + #else +@@ -11951,9 +11972,9 @@ + // + template + class CartesianProductGenerator2 +- : public ParamGeneratorInterface< ::std::tr1::tuple > { ++ : public ParamGeneratorInterface< gtest::tuple > { + public: +- typedef ::std::tr1::tuple ParamType; ++ typedef gtest::tuple ParamType; + + CartesianProductGenerator2(const ParamGenerator& g1, + const ParamGenerator& g2) +@@ -12066,9 +12087,9 @@ + + template + class CartesianProductGenerator3 +- : public ParamGeneratorInterface< ::std::tr1::tuple > { ++ : public ParamGeneratorInterface< gtest::tuple > { + public: +- typedef ::std::tr1::tuple ParamType; ++ typedef gtest::tuple ParamType; + + CartesianProductGenerator3(const ParamGenerator& g1, + const ParamGenerator& g2, const ParamGenerator& g3) +@@ -12198,9 +12219,9 @@ + + template + class CartesianProductGenerator4 +- : public ParamGeneratorInterface< ::std::tr1::tuple > { ++ : public ParamGeneratorInterface< gtest::tuple > { + public: +- typedef ::std::tr1::tuple ParamType; ++ typedef gtest::tuple ParamType; + + CartesianProductGenerator4(const ParamGenerator& g1, + const ParamGenerator& g2, const ParamGenerator& g3, +@@ -12349,9 +12370,9 @@ + + template + class CartesianProductGenerator5 +- : public ParamGeneratorInterface< ::std::tr1::tuple > { ++ : public ParamGeneratorInterface< gtest::tuple > { + public: +- typedef ::std::tr1::tuple ParamType; ++ typedef gtest::tuple ParamType; + + CartesianProductGenerator5(const ParamGenerator& g1, + const ParamGenerator& g2, const ParamGenerator& g3, +@@ -12517,10 +12538,10 @@ + template + class CartesianProductGenerator6 +- : public ParamGeneratorInterface< ::std::tr1::tuple > { + public: +- typedef ::std::tr1::tuple ParamType; ++ typedef gtest::tuple ParamType; + + CartesianProductGenerator6(const ParamGenerator& g1, + const ParamGenerator& g2, const ParamGenerator& g3, +@@ -12703,10 +12724,10 @@ + template + class CartesianProductGenerator7 +- : public ParamGeneratorInterface< ::std::tr1::tuple > { + public: +- typedef ::std::tr1::tuple ParamType; ++ typedef gtest::tuple ParamType; + + CartesianProductGenerator7(const ParamGenerator& g1, + const ParamGenerator& g2, const ParamGenerator& g3, +@@ -12906,10 +12927,10 @@ + template + class CartesianProductGenerator8 +- : public ParamGeneratorInterface< ::std::tr1::tuple > { + public: +- typedef ::std::tr1::tuple ParamType; ++ typedef gtest::tuple ParamType; + + CartesianProductGenerator8(const ParamGenerator& g1, + const ParamGenerator& g2, const ParamGenerator& g3, +@@ -13128,10 +13149,10 @@ + template + class CartesianProductGenerator9 +- : public ParamGeneratorInterface< ::std::tr1::tuple > { + public: +- typedef ::std::tr1::tuple ParamType; ++ typedef gtest::tuple ParamType; + + CartesianProductGenerator9(const ParamGenerator& g1, + const ParamGenerator& g2, const ParamGenerator& g3, +@@ -13367,10 +13388,10 @@ + template + class CartesianProductGenerator10 +- : public ParamGeneratorInterface< ::std::tr1::tuple > { + public: +- typedef ::std::tr1::tuple ParamType; ++ typedef gtest::tuple ParamType; + + CartesianProductGenerator10(const ParamGenerator& g1, + const ParamGenerator& g2, const ParamGenerator& g3, +@@ -13632,8 +13653,8 @@ + CartesianProductHolder2(const Generator1& g1, const Generator2& g2) + : g1_(g1), g2_(g2) {} + template +- operator ParamGenerator< ::std::tr1::tuple >() const { +- return ParamGenerator< ::std::tr1::tuple >( ++ operator ParamGenerator< gtest::tuple >() const { ++ return ParamGenerator< gtest::tuple >( + new CartesianProductGenerator2( + static_cast >(g1_), + static_cast >(g2_))); +@@ -13654,8 +13675,8 @@ + const Generator3& g3) + : g1_(g1), g2_(g2), g3_(g3) {} + template +- operator ParamGenerator< ::std::tr1::tuple >() const { +- return ParamGenerator< ::std::tr1::tuple >( ++ operator ParamGenerator< gtest::tuple >() const { ++ return ParamGenerator< gtest::tuple >( + new CartesianProductGenerator3( + static_cast >(g1_), + static_cast >(g2_), +@@ -13679,8 +13700,8 @@ + const Generator3& g3, const Generator4& g4) + : g1_(g1), g2_(g2), g3_(g3), g4_(g4) {} + template +- operator ParamGenerator< ::std::tr1::tuple >() const { +- return ParamGenerator< ::std::tr1::tuple >( ++ operator ParamGenerator< gtest::tuple >() const { ++ return ParamGenerator< gtest::tuple >( + new CartesianProductGenerator4( + static_cast >(g1_), + static_cast >(g2_), +@@ -13706,8 +13727,8 @@ + const Generator3& g3, const Generator4& g4, const Generator5& g5) + : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5) {} + template +- operator ParamGenerator< ::std::tr1::tuple >() const { +- return ParamGenerator< ::std::tr1::tuple >( ++ operator ParamGenerator< gtest::tuple >() const { ++ return ParamGenerator< gtest::tuple >( + new CartesianProductGenerator5( + static_cast >(g1_), + static_cast >(g2_), +@@ -13737,8 +13758,8 @@ + : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6) {} + template +- operator ParamGenerator< ::std::tr1::tuple >() const { +- return ParamGenerator< ::std::tr1::tuple >( ++ operator ParamGenerator< gtest::tuple >() const { ++ return ParamGenerator< gtest::tuple >( + new CartesianProductGenerator6( + static_cast >(g1_), + static_cast >(g2_), +@@ -13770,9 +13791,9 @@ + : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6), g7_(g7) {} + template +- operator ParamGenerator< ::std::tr1::tuple >() const { +- return ParamGenerator< ::std::tr1::tuple >( ++ return ParamGenerator< gtest::tuple >( + new CartesianProductGenerator7( + static_cast >(g1_), + static_cast >(g2_), +@@ -13808,9 +13829,9 @@ + g8_(g8) {} + template +- operator ParamGenerator< ::std::tr1::tuple >() const { +- return ParamGenerator< ::std::tr1::tuple >( ++ return ParamGenerator< gtest::tuple >( + new CartesianProductGenerator8( + static_cast >(g1_), + static_cast >(g2_), +@@ -13849,9 +13870,9 @@ + g9_(g9) {} + template +- operator ParamGenerator< ::std::tr1::tuple >() const { +- return ParamGenerator< ::std::tr1::tuple >( + new CartesianProductGenerator9( + static_cast >(g1_), +@@ -13893,9 +13914,9 @@ + g9_(g9), g10_(g10) {} + template +- operator ParamGenerator< ::std::tr1::tuple >() const { +- return ParamGenerator< ::std::tr1::tuple >( + new CartesianProductGenerator10( Property changes on: opencv/files/patch-modules__ts__include__opencv2__ts__ts_gtest.h ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: opencv-core/Makefile =================================================================== --- opencv-core/Makefile (revision 326482) +++ opencv-core/Makefile (working copy) @@ -4,4 +4,9 @@ _BUILDING_OPENCV_CORE= yes MASTERDIR= ${.CURDIR}/../opencv +_COMPVERSION!= ${CC} --version +.if ${_COMPVERSION:Mclang} +CXXFLAGS+= -std=gnu++11 -Wno-error -Wno-c++11-narrowing +.endif + .include "${MASTERDIR}/Makefile"