media-gfx/nomacs: Fix configure with >=opencv-3
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>
Sun, 31 Jan 2016 17:05:26 +0000 (18:05 +0100)
committerMichael Palimaka <kensington@gentoo.org>
Sun, 31 Jan 2016 17:28:20 +0000 (04:28 +1100)
Package-Manager: portage-2.2.27

media-gfx/nomacs/files/nomacs-3.0.0-opencv3.patch [new file with mode: 0644]
media-gfx/nomacs/nomacs-2.4.2.ebuild
media-gfx/nomacs/nomacs-2.4.4.ebuild
media-gfx/nomacs/nomacs-2.4.6.ebuild
media-gfx/nomacs/nomacs-3.0.0.ebuild

diff --git a/media-gfx/nomacs/files/nomacs-3.0.0-opencv3.patch b/media-gfx/nomacs/files/nomacs-3.0.0-opencv3.patch
new file mode 100644 (file)
index 0000000..a13d90f
--- /dev/null
@@ -0,0 +1,21 @@
+commit aa3fffc15bb6cbec8ef140a070dc12e6888e79df
+Author: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
+Date:   Sun Jan 31 17:38:21 2016 +0100
+
+    Drop minimum OpenCV version messing with detection of >=3.0.0
+    
+    Similar to commit 624a2fa7fba25a9432dc15031f3fd569367927bd
+
+diff --git a/ImageLounge/cmake/Unix.cmake b/ImageLounge/cmake/Unix.cmake
+index 4e91135..e9ec436 100644
+--- a/ImageLounge/cmake/Unix.cmake
++++ b/ImageLounge/cmake/Unix.cmake
+@@ -43,7 +43,7 @@ endif(NOT EXIV2_FOUND)
+ # search for opencv
+ unset(OpenCV_FOUND CACHE)
+ if(ENABLE_OPENCV)
+-      find_package(OpenCV 2.1.0 REQUIRED core imgproc)
++      find_package(OpenCV REQUIRED core imgproc)
+       if (NOT OpenCV_LIBRARIES) # OpenCV_FOUND can not be used since it is set in Ubuntu 12.04 (without finding opencv)
+               # Older OpenCV versions only supplied pkg-config files
+               if(PKG_CONFIG_FOUND)
index b3ef73bdc7590e169f5b0e6f509b81dcbac93ec1..f666011ebc78eacf6a6cef31292fc934dbee5601 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -31,7 +31,10 @@ DEPEND="${RDEPEND}
        virtual/pkgconfig
 "
 
-PATCHES=( "${FILESDIR}/${P}-include.patch" )
+PATCHES=(
+       "${FILESDIR}/${P}-include.patch"
+       "${FILESDIR}/${PN}-3.0.0-opencv3.patch"
+)
 
 src_configure() {
        local mycmakeargs=(
index dee2bc0a009b515085b1a9a6c638661fde36c427..d267681f4fc65b1647ab16dec30c1e5d522e07a9 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -34,6 +34,8 @@ DEPEND="${RDEPEND}
        virtual/pkgconfig
 "
 
+PATCHES=( "${FILESDIR}/${PN}-3.0.0-opencv3.patch" )
+
 src_configure() {
        local mycmakeargs=(
                -DENABLE_QT5=OFF
index 01cf47ad35d2cb951934b48f79a04c00dc73c506..ecda8a17d14dd55e4cb50c94954e5526ddda8b57 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -47,6 +47,8 @@ DEPEND="${RDEPEND}
        virtual/pkgconfig
 "
 
+PATCHES=( "${FILESDIR}/${PN}-3.0.0-opencv3.patch" )
+
 src_configure() {
        local mycmakeargs=(
                $(cmake-utils_use_enable opencv)
index 67552f9e543835f6b80d54ad3ed9c97927b14e75..3915d6dc5b155ee67cc92123583c57f42ae3485a 100644 (file)
@@ -44,6 +44,7 @@ PATCHES=(
        "${FILESDIR}/${P}-tiff-build.patch"
        "${FILESDIR}/${P}-quazip-build.patch"
        "${FILESDIR}/${P}-quazip-link.patch"
+       "${FILESDIR}/${P}-opencv3.patch"
 )
 
 src_configure() {