summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2019-12-12 11:24:24 +0100
committerAlexis Ballier <aballier@gentoo.org>2019-12-12 11:42:06 +0100
commit4b71037afa32a69ff3709a1f986362f688e2e7c8 (patch)
treef448f6147bc6a382d394a825384a3f2327921cf5 /dev-ros/visp_auto_tracker
parentdev-ros/amcl: really fix build with latest cmake (diff)
downloadgentoo-4b71037afa32a69ff3709a1f986362f688e2e7c8.tar.gz
gentoo-4b71037afa32a69ff3709a1f986362f688e2e7c8.tar.bz2
gentoo-4b71037afa32a69ff3709a1f986362f688e2e7c8.zip
dev-ros/visp_auto_tracker: fix build with opencv 4
Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'dev-ros/visp_auto_tracker')
-rw-r--r--dev-ros/visp_auto_tracker/files/ocv4.patch25
-rw-r--r--dev-ros/visp_auto_tracker/visp_auto_tracker-0.11.1-r1.ebuild (renamed from dev-ros/visp_auto_tracker/visp_auto_tracker-0.11.1.ebuild)3
-rw-r--r--dev-ros/visp_auto_tracker/visp_auto_tracker-9999.ebuild5
3 files changed, 31 insertions, 2 deletions
diff --git a/dev-ros/visp_auto_tracker/files/ocv4.patch b/dev-ros/visp_auto_tracker/files/ocv4.patch
new file mode 100644
index 000000000000..79a6970af9f7
--- /dev/null
+++ b/dev-ros/visp_auto_tracker/files/ocv4.patch
@@ -0,0 +1,25 @@
+Index: visp_auto_tracker/flashcode_mbt/libauto_tracker/states.hpp
+===================================================================
+--- visp_auto_tracker.orig/flashcode_mbt/libauto_tracker/states.hpp
++++ visp_auto_tracker/flashcode_mbt/libauto_tracker/states.hpp
+@@ -1,6 +1,6 @@
+ #ifndef __EVENTS_H__
+ #define __EVENTS_H__
+-#include "cv.h"
++#include <opencv2/core/core_c.h>
+ // back-end
+ #include <boost/msm/back/state_machine.hpp>
+ //front-end
+Index: visp_auto_tracker/flashcode_mbt/libauto_tracker/tracking.cpp
+===================================================================
+--- visp_auto_tracker.orig/flashcode_mbt/libauto_tracker/tracking.cpp
++++ visp_auto_tracker/flashcode_mbt/libauto_tracker/tracking.cpp
+@@ -1,6 +1,6 @@
+ #include "ros/ros.h"
+-#include "cv.h"
+-#include "highgui.h"
++#include <opencv2/core/core_c.h>
++#include <opencv2/highgui/highgui_c.h>
+ #include "tracking.h"
+ #include <visp3/core/vpImageConvert.h>
+ #include <visp3/core/vpPixelMeterConversion.h>
diff --git a/dev-ros/visp_auto_tracker/visp_auto_tracker-0.11.1.ebuild b/dev-ros/visp_auto_tracker/visp_auto_tracker-0.11.1-r1.ebuild
index dcd584eb2644..0b8d39209953 100644
--- a/dev-ros/visp_auto_tracker/visp_auto_tracker-0.11.1.ebuild
+++ b/dev-ros/visp_auto_tracker/visp_auto_tracker-0.11.1-r1.ebuild
@@ -25,10 +25,11 @@ RDEPEND="
dev-ros/visp_tracker
sci-libs/ViSP:=[dmtx,zbar]
dev-libs/boost:=[threads]
+ media-libs/opencv:=
"
DEPEND="${RDEPEND}"
if [ "${PV#9999}" = "${PV}" ] ; then
S="${WORKDIR}/vision_visp-kinetic-${PV}/${ROS_SUBDIR}"
fi
-PATCHES=( "${FILESDIR}/boost170.patch" )
+PATCHES=( "${FILESDIR}/boost170.patch" "${FILESDIR}/ocv4.patch" )
diff --git a/dev-ros/visp_auto_tracker/visp_auto_tracker-9999.ebuild b/dev-ros/visp_auto_tracker/visp_auto_tracker-9999.ebuild
index 119d92d4d319..0b8d39209953 100644
--- a/dev-ros/visp_auto_tracker/visp_auto_tracker-9999.ebuild
+++ b/dev-ros/visp_auto_tracker/visp_auto_tracker-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
@@ -25,8 +25,11 @@ RDEPEND="
dev-ros/visp_tracker
sci-libs/ViSP:=[dmtx,zbar]
dev-libs/boost:=[threads]
+ media-libs/opencv:=
"
DEPEND="${RDEPEND}"
if [ "${PV#9999}" = "${PV}" ] ; then
S="${WORKDIR}/vision_visp-kinetic-${PV}/${ROS_SUBDIR}"
fi
+
+PATCHES=( "${FILESDIR}/boost170.patch" "${FILESDIR}/ocv4.patch" )