Package: auto-multiple-choice / 1.3.0-2

fix-build-with-opencv-3.1.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Bug: https://bugs.debian.org/841244
Subject: Fix build with OpenCV 3.1

Index: auto-multiple-choice-1.3.0/Makefile
===================================================================
--- auto-multiple-choice-1.3.0.orig/Makefile
+++ auto-multiple-choice-1.3.0/Makefile
@@ -44,7 +44,11 @@ CXXFLAGS ?= -O2
 
 ifeq ($(GCC_OPENCV_LIBS),auto)
 ifeq ($(shell echo 'int main(){}' | gcc -xc -lopencv_core - && ( rm -f a.out ; echo "OK")),OK)
+ifeq ($(shell echo 'int main(){}' | gcc -xc -lopencv_imgcodecs - && ( rm -f a.out ; echo "OK")),OK)
+  GCC_OPENCV_LIBS:=-lopencv_core -lopencv_highgui -lopencv_imgproc -lopencv_imgcodecs
+else
   GCC_OPENCV_LIBS:=-lopencv_core -lopencv_highgui -lopencv_imgproc
+endif
 else
   GCC_OPENCV_LIBS:=-lcv -lhighgui -lcxcore
 endif