summaryrefslogtreecommitdiffstats
path: root/import-layers/meta-openembedded/meta-multimedia/recipes-multimedia/vlc/vlc/0006-make-opencv-configurable.patch
blob: 950c09b8aed1af62406e08eeb2e18f724d8efb99 (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
28
29
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>

Index: vlc-2.1.4/configure.ac
===================================================================
--- vlc-2.1.4.orig/configure.ac
+++ vlc-2.1.4/configure.ac
@@ -1693,7 +1693,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
OpenPOWER on IntegriCloud