diff --git a/debian/patches/0001_opencv34.patch b/debian/patches/0001_opencv34.patch new file mode 100644 index 0000000..dab2b28 --- /dev/null +++ b/debian/patches/0001_opencv34.patch @@ -0,0 +1,29 @@ +Description: Include opencv2/imgproc.hpp for CV_RGB() + Since OpenCV-3.4, we need to include opencv2/imgproc.hpp for CV_RGB() +Author: Christoph Willing chris.willing@linux.com +Origin: upstream +Applied-Upstream: e1ecb144ca58cb4d68ef326d0ae224025a171fef +Last-Update: 2019-09-12 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- frei0r.orig/src/filter/facebl0r/facebl0r.cpp ++++ frei0r/src/filter/facebl0r/facebl0r.cpp +@@ -14,11 +14,17 @@ + * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +- ++#include ++#define CV_VERSION_NUM (CV_VERSION_MAJOR * 10000 \ ++ + CV_VERSION_MINOR * 100 \ ++ + CV_VERSION_REVISION) + #include + #include + #include + #include ++#if CV_VERSION_NUM > 30401 ++# include ++#endif + + #include + #include diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..6bd8b13 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +0001_opencv34.patch