nixpkgs/pkgs/applications/gis/saga/opencv4.patch
Doron Behar adaf0065a0 saga: 7.6.3 -> 7.7.0
Other changes include:
- Reformat inputs and arguments to drv.
- Use autoreconfHook as upstream's generated ./configure has proved to
be not reliable (it didn't detect properly missing deps).
- Add many more dependencies that were detected now with autoreconfHook.
- Upgrade gui dep to wxGTK31-gtk3.
- Upgrade opencv dep to opencv4.
2020-08-08 15:54:33 +03:00

15 lines
686 B
Diff

--- a/src/tools/imagery/imagery_opencv/Makefile.am
+++ b/src/tools/imagery/imagery_opencv/Makefile.am
@@ -7,9 +7,9 @@
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
+CXX_INCS = -I$(top_srcdir)/src/saga_core `pkg-config opencv4 --cflags`
AM_CXXFLAGS = -fPIC $(CXX_INCS) $(DEF_SAGA) $(DBGFLAGS) $(GOMPFLAGS)
-AM_LDFLAGS = -fPIC -shared -avoid-version `pkg-config opencv --libs`
+AM_LDFLAGS = -fPIC -shared -avoid-version `pkg-config opencv4 --libs`
pkglib_LTLIBRARIES = libimagery_opencv.la
libimagery_opencv_la_SOURCES =\
MLB_Interface.cpp\