summaryrefslogtreecommitdiffstats
path: root/src/opencv-3-fix-in-bad-dir.patch
diff options
context:
space:
mode:
authorGregorio Litenstein <g.litenstein@gmail.com>2017-09-02 21:26:29 (GMT)
committerBoris Nagaev <bnagaev@gmail.com>2017-09-24 15:06:41 (GMT)
commit4560f79e70b41f9b3143115d6cfe684527bf8f48 (patch)
tree8b83b5cbb8be1d4c6b5a7061e09374982476c05e /src/opencv-3-fix-in-bad-dir.patch
parent9971cb923a799a68635661ff1308fb8098c88ba1 (diff)
downloadmxe-4560f79e70b41f9b3143115d6cfe684527bf8f48.zip
mxe-4560f79e70b41f9b3143115d6cfe684527bf8f48.tar.gz
mxe-4560f79e70b41f9b3143115d6cfe684527bf8f48.tar.bz2
Update opencv to 3.3.0
Diffstat (limited to 'src/opencv-3-fix-in-bad-dir.patch')
-rw-r--r--src/opencv-3-fix-in-bad-dir.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/opencv-3-fix-in-bad-dir.patch b/src/opencv-3-fix-in-bad-dir.patch
new file mode 100644
index 0000000..794c8e6
--- /dev/null
+++ b/src/opencv-3-fix-in-bad-dir.patch
@@ -0,0 +1,39 @@
+This file is part of MXE. See LICENSE.md for licensing information.
+
+Contains ad hoc patches for cross building.
+
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Gregorio Litenstein <g.litenstein@gmail.com>
+Date: Thu, 31 Aug 2017 18:35:23 -0300
+Subject: [PATCH] Update patch-3 for opencv-3.3.0
+
+Originally From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Boris Nagaev <bnagaev@gmail.com>
+Date: Sun, 20 Dec 2015 18:14:56 +0300
+Subject: [PATCH] fix CMake error if a directory contains ++
+
+See https://github.com/mxe/mxe/issues/1091
+
+diff --git a/cmake/OpenCVModule.cmake b/cmake/OpenCVModule.cmake
+index 1111111..2222222 100644
+--- a/cmake/OpenCVModule.cmake
++++ b/cmake/OpenCVModule.cmake
+@@ -491,12 +491,16 @@ function(__ocv_resolve_dependencies)
+ # process private deps
+ foreach(m ${OPENCV_MODULES_BUILD})
+ foreach(d ${OPENCV_MODULE_${m}_PRIVATE_REQ_DEPS})
+- if(NOT (";${deps_${m}};" MATCHES ";${d};"))
++ # can't use MATCH because file paths can include regexp special chars
++ string(FIND ";${deps_${m}};" ";${d};" d_offset)
++ if(${d_offset} EQUAL -1)
+ list(APPEND deps_${m} ${d})
+ endif()
+ endforeach()
+ foreach(d ${OPENCV_MODULE_${m}_PRIVATE_OPT_DEPS})
+- if(NOT (";${deps_${m}};" MATCHES ";${d};"))
++ # can't use MATCH because file paths can include regexp special chars
++ string(FIND ";${deps_${m}};" ";${d};" d_offset)
++ if(${d_offset} EQUAL -1)
+ if(HAVE_${d} OR TARGET ${d})
+ list(APPEND deps_${m} ${d})
+ endif()