aboutsummaryrefslogtreecommitdiffstats
path: root/meta-multimedia/recipes-multimedia/vlc/vlc/0001-make-opencv-configurable.patch
blob: d6ff0b2dbaf718dc66f365c4dd52014f0f823898 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Recent opencv API changes break upstream filter and example.
Make opencv explicitly configurable.

Upstream-Status: Inappropriate [configuration]

Signed-off-by: Tim Orling <TicoTimo@gmail.com>

--- a/configure.ac
+++ b/configure.ac
@@ -1891,7 +1891,16 @@ PKG_ENABLE_MODULES_VLC([BLURAY], [libblu
 dnl
 dnl  OpenCV wrapper and example filters
 dnl
-PKG_ENABLE_MODULES_VLC([OPENCV], [opencv_example opencv_wrapper], [opencv > 2.0], (OpenCV (computer vision) filter), [auto])
+AC_ARG_ENABLE(opencv,
+  [AS_HELP_STRING([--disable-opencv],
+    [disable OpenCV computer vision filter and example (default auto)])])
+if test "${enable_opencv}" != "no"
+then
+    PKG_ENABLE_MODULES_VLC([OPENCV], 
+                           [opencv_example opencv_wrapper], 
+                           [opencv > 2.0], 
+                           (OpenCV (computer vision) filter), [auto])
+fi
 
 
 dnl