aboutsummaryrefslogtreecommitdiff
path: root/libraries/frei0r
diff options
context:
space:
mode:
authorChristoph Willing <chris.willing@linux.com>2018-07-14 21:13:42 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-07-17 07:15:48 +0700
commitb713dd84748597d155191efbaab80416ac671aad (patch)
tree6af1b98990f0ce71a8d5d816a3a53c9545d9afce /libraries/frei0r
parent3df98bd82ba174e153b74b34a224a0a429a75392 (diff)
libraries/frei0r: Patch for the newer opencv.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/frei0r')
-rw-r--r--libraries/frei0r/frei0r.SlackBuild3
-rw-r--r--libraries/frei0r/patch_imgproc.diff10
2 files changed, 13 insertions, 0 deletions
diff --git a/libraries/frei0r/frei0r.SlackBuild b/libraries/frei0r/frei0r.SlackBuild
index 875cac4bc0178..0814b29a70ab5 100644
--- a/libraries/frei0r/frei0r.SlackBuild
+++ b/libraries/frei0r/frei0r.SlackBuild
@@ -87,6 +87,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# Needed by opencv >= 3.4.2
+patch -p0 < $CWD/patch_imgproc.diff
+
# Fix installation paths
sed -i \
-e "s|lib/|lib$LIBDIRSUFFIX/|" \
diff --git a/libraries/frei0r/patch_imgproc.diff b/libraries/frei0r/patch_imgproc.diff
new file mode 100644
index 0000000000000..55449f84a8e26
--- /dev/null
+++ b/libraries/frei0r/patch_imgproc.diff
@@ -0,0 +1,10 @@
+--- src/filter/facebl0r/facebl0r.cpp.orig 2018-07-14 20:49:01.564511495 +1000
++++ src/filter/facebl0r/facebl0r.cpp 2018-07-14 18:47:44.430685507 +1000
+@@ -19,6 +19,7 @@
+ #include <stdlib.h>
+ #include <opencv/cv.h>
+ #include <opencv/highgui.h>
++#include <opencv2/imgproc.hpp>
+
+
+ #include <frei0r.hpp>