[saga] 01/01: Add opencv module

Johan Van de Wauw johanvdw-guest at moszumanska.debian.org
Thu Jul 9 16:05:59 UTC 2015


This is an automated email from the git hooks/post-receive script.

johanvdw-guest pushed a commit to branch master
in repository saga.

commit 221617af258954c968e1edd730ef51a9c451e098
Author: Johan Van de Wauw <johan.vandewauw at gmail.com>
Date:   Tue Jul 7 23:06:29 2015 +0200

    Add opencv module
---
 debian/control                              |  5 +-
 debian/patches/0007-Fix-opencv-module.patch | 81 +++++++++++++++++++++++++++++
 debian/patches/series                       |  1 +
 3 files changed, 86 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index fd05809..5182760 100644
--- a/debian/control
+++ b/debian/control
@@ -18,7 +18,10 @@ Build-Depends: libwxgtk3.0-dev,
                python-dev,
                dh-autoreconf,
                libsvm-dev,
-               libvigraimpex-dev
+               libvigraimpex-dev,
+               libopencv-core-dev,
+               libopencv-imgproc-dev,
+               libopencv-legacy-dev,
 Standards-Version: 3.9.6
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-grass/saga.git
 Vcs-Git: git://anonscm.debian.org/pkg-grass/saga.git -b experimental
diff --git a/debian/patches/0007-Fix-opencv-module.patch b/debian/patches/0007-Fix-opencv-module.patch
new file mode 100644
index 0000000..1d8e339
--- /dev/null
+++ b/debian/patches/0007-Fix-opencv-module.patch
@@ -0,0 +1,81 @@
+From: Johan Van de Wauw <johan.vandewauw at gmail.com>
+Date: Thu, 9 Jul 2015 17:56:07 +0200
+Subject: Fix opencv module
+
+---
+ configure.ac                                       | 2 +-
+ src/modules/imagery/imagery_opencv/Makefile.am     | 2 +-
+ src/modules/imagery/imagery_opencv/opencv.h        | 2 ++
+ src/modules/imagery/imagery_opencv/opencv_nnet.cpp | 4 ++--
+ src/modules/imagery/imagery_opencv/opencv_nnet.h   | 4 ++--
+ 5 files changed, 8 insertions(+), 6 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 64c88ad..45db13f 100755
+--- a/configure.ac
++++ b/configure.ac
+@@ -17,7 +17,7 @@ AC_PROG_INSTALL
+ AC_PROG_LIBTOOL
+ 
+ # Checks for libraries.
+-AC_CHECK_LIB([cv], [cvGetRows], CVFOUND=1,,)
++AC_CHECK_LIB([opencv_core], [cvGetRows], CVFOUND=1,,)
+ AC_CHECK_LIB([geotrans], [Set_Mercator_Coordinates])
+ AC_CHECK_LIB([fftw3],[fftw_execute],FFTWFOUND=1,)
+ AC_CHECK_LIB([jasper], [jas_calloc],JASPERFOUND=1,,)
+diff --git a/src/modules/imagery/imagery_opencv/Makefile.am b/src/modules/imagery/imagery_opencv/Makefile.am
+index e3210ee..0fa0202 100644
+--- a/src/modules/imagery/imagery_opencv/Makefile.am
++++ b/src/modules/imagery/imagery_opencv/Makefile.am
+@@ -11,7 +11,7 @@ if HAVE_CV
+ DEF_SAGA           = -D_SAGA_LINUX -D_TYPEDEF_BYTE -D_TYPEDEF_WORD
+ CXX_INCS           = -I$(top_srcdir)/src/saga_core -I/usr/include/opencv
+ AM_CXXFLAGS        = -fPIC $(CXX_INCS) $(DEF_SAGA) $(UC_DEFS) $(DBGFLAGS) $(GOMPFLAGS)
+-AM_LDFLAGS         = -fPIC -shared -avoid-version -lcv
++AM_LDFLAGS         = -fPIC -shared -avoid-version -lopencv_core -lopencv_imgproc -lopencv_flann
+ pkglib_LTLIBRARIES = libimagery_opencv.la
+ libimagery_opencv_la_SOURCES =\
+ MLB_Interface.cpp\
+diff --git a/src/modules/imagery/imagery_opencv/opencv.h b/src/modules/imagery/imagery_opencv/opencv.h
+index 99399cd..d6c4dad 100644
+--- a/src/modules/imagery/imagery_opencv/opencv.h
++++ b/src/modules/imagery/imagery_opencv/opencv.h
+@@ -75,6 +75,8 @@
+ //---------------------------------------------------------
+ #include <opencv/cv.h>
+ 
++#include <opencv2/core/core_c.h>
++#include <opencv2/imgproc/imgproc_c.h>
+ 
+ ///////////////////////////////////////////////////////////
+ //														 //
+diff --git a/src/modules/imagery/imagery_opencv/opencv_nnet.cpp b/src/modules/imagery/imagery_opencv/opencv_nnet.cpp
+index f123d16..6bbe376 100644
+--- a/src/modules/imagery/imagery_opencv/opencv_nnet.cpp
++++ b/src/modules/imagery/imagery_opencv/opencv_nnet.cpp
+@@ -60,8 +60,8 @@
+ 
+ //---------------------------------------------------------
+ #include "opencv_nnet.h"
+-#include "opencv\cxcore.h"
+-#include "opencv\ml.h"
++#include "opencv/cxcore.h"
++#include "opencv/ml.h"
+ 
+ ///////////////////////////////////////////////////////////
+ //														 //
+diff --git a/src/modules/imagery/imagery_opencv/opencv_nnet.h b/src/modules/imagery/imagery_opencv/opencv_nnet.h
+index ed22567..e1e1f1d 100644
+--- a/src/modules/imagery/imagery_opencv/opencv_nnet.h
++++ b/src/modules/imagery/imagery_opencv/opencv_nnet.h
+@@ -64,8 +64,8 @@
+ 
+ //---------------------------------------------------------
+ #include "MLB_Interface.h"
+-#include "opencv\cxcore.h"
+-#include "opencv\ml.h"
++#include "opencv/cxcore.h"
++#include "opencv/ml.h"
+ 
+ ///////////////////////////////////////////////////////////
+ //														 //
diff --git a/debian/patches/series b/debian/patches/series
index 75a96ba..cebe656 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@
 0004-Use-debian-version-of-libsvm.patch
 0005-0099-no-hdf5.patch
 0006-Fix-vigra-path.patch
+0007-Fix-opencv-module.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/saga.git



More information about the Pkg-grass-devel mailing list