pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/vigra vigra: build with openexr3



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9265221ebb25
branches:  trunk
changeset: 455697:9265221ebb25
user:      markd <markd%pkgsrc.org@localhost>
date:      Thu Jul 08 21:31:13 2021 +0000

description:
vigra: build with openexr3

diffstat:

 graphics/vigra/Makefile                                             |   4 +-
 graphics/vigra/distinfo                                             |   5 +-
 graphics/vigra/patches/patch-config_FindOpenEXR.cmake               |  23 ++++++++++
 graphics/vigra/patches/patch-include_vigra_separableconvolution.hxx |  21 +++++++++
 graphics/vigra/patches/patch-include_vigra_stdconvolution.hxx       |  21 +++++++++
 5 files changed, 71 insertions(+), 3 deletions(-)

diffs (106 lines):

diff -r 6a750fc76189 -r 9265221ebb25 graphics/vigra/Makefile
--- a/graphics/vigra/Makefile   Thu Jul 08 21:30:44 2021 +0000
+++ b/graphics/vigra/Makefile   Thu Jul 08 21:31:13 2021 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.31 2020/05/21 20:53:44 ryoon Exp $
+# $NetBSD: Makefile,v 1.32 2021/07/08 21:31:13 markd Exp $
 
 DISTNAME=      vigra-1.11.1-src
 PKGNAME=       ${DISTNAME:S/-src//}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    graphics
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=ukoethe/}
 
diff -r 6a750fc76189 -r 9265221ebb25 graphics/vigra/distinfo
--- a/graphics/vigra/distinfo   Thu Jul 08 21:30:44 2021 +0000
+++ b/graphics/vigra/distinfo   Thu Jul 08 21:31:13 2021 +0000
@@ -1,7 +1,10 @@
-$NetBSD: distinfo,v 1.14 2017/05/29 12:35:06 wiz Exp $
+$NetBSD: distinfo,v 1.15 2021/07/08 21:31:13 markd Exp $
 
 SHA1 (vigra-1.11.1-src.tar.gz) = b50e8f57116948c85a42770d9188453e6052c8e0
 RMD160 (vigra-1.11.1-src.tar.gz) = 7dfb92a2c9a0e29a5075baa5d491c2f09640697e
 SHA512 (vigra-1.11.1-src.tar.gz) = 9c1638d626d658fa4b13069e5850b628d91db02bb18b8a9f0a4642fee501ede8a6f4f267d79ca5cd5baf3991e704163345cd18ab7919ff2a93db6bd496096de3
 Size (vigra-1.11.1-src.tar.gz) = 55119047 bytes
+SHA1 (patch-config_FindOpenEXR.cmake) = 8649351dc0a3e1df4827214b53431358c1b70972
 SHA1 (patch-include-vigra-mathutil.hxx) = 45a3e37c24d28a5a5ff9f70281f93c9e0e77348d
+SHA1 (patch-include_vigra_separableconvolution.hxx) = e193577ccd6e75c213403e852a253d15a3187d1f
+SHA1 (patch-include_vigra_stdconvolution.hxx) = 0adf8bd9e9bde2b15463a6a448b0265b5ff95072
diff -r 6a750fc76189 -r 9265221ebb25 graphics/vigra/patches/patch-config_FindOpenEXR.cmake
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/vigra/patches/patch-config_FindOpenEXR.cmake     Thu Jul 08 21:31:13 2021 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-config_FindOpenEXR.cmake,v 1.1 2021/07/08 21:31:13 markd Exp $
+
+openexr3 patch
+
+--- config/FindOpenEXR.cmake.orig      2017-05-19 15:01:08.000000000 +0000
++++ config/FindOpenEXR.cmake
+@@ -23,6 +23,16 @@
+ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ 
++find_package(OpenEXR 3.0 CONFIG QUIET)
++if(TARGET OpenEXR::OpenEXR)
++    find_package(Threads)
++    SET(OPENEXR_FOUND TRUE)
++    SET(OPENEXR_INCLUDE_DIR OpenEXR::OpenEXR)
++    SET(OPENEXR_LIBRARIES OpenEXR::OpenEXR)
++    SET(OPENEXR_VERSION ${OpenEXR_VERSION})
++    return()
++endif()
++
+ FIND_PATH(OPENEXR_INCLUDE_DIR ImfRgbaFile.h PATH_SUFFIXES OpenEXR)
+ 
+ FOREACH(V "" -2_2 -2_1 -2_0 -1_7)
diff -r 6a750fc76189 -r 9265221ebb25 graphics/vigra/patches/patch-include_vigra_separableconvolution.hxx
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/vigra/patches/patch-include_vigra_separableconvolution.hxx       Thu Jul 08 21:31:13 2021 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-include_vigra_separableconvolution.hxx,v 1.1 2021/07/08 21:31:13 markd Exp $
+
+fixed noexcept declaration
+commit/dc730be49fc8def4304a651fa525e43b7754955e
+
+--- include/vigra/separableconvolution.hxx.orig        2017-05-19 15:01:08.000000000 +0000
++++ include/vigra/separableconvolution.hxx
+@@ -1409,10 +1409,10 @@ class Kernel1D
+         {}
+ 
+         ~InitProxy()
+-#ifndef _MSC_VER
+-            throw(PreconditionViolation)
+-#elif _MSC_VER >= 1900
++#if _MSC_VER >= 1900 || __cplusplus >= 201103L
+             noexcept(false)
++#else
++          throw(PreconditionViolation)
+ #endif
+         {
+             vigra_precondition(count_ == 1 || count_ == sum_,
diff -r 6a750fc76189 -r 9265221ebb25 graphics/vigra/patches/patch-include_vigra_stdconvolution.hxx
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/vigra/patches/patch-include_vigra_stdconvolution.hxx     Thu Jul 08 21:31:13 2021 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-include_vigra_stdconvolution.hxx,v 1.1 2021/07/08 21:31:13 markd Exp $
+
+fixed noexcept declaration
+commit/dc730be49fc8def4304a651fa525e43b7754955e
+
+--- include/vigra/stdconvolution.hxx.orig      2017-05-19 15:01:08.000000000 +0000
++++ include/vigra/stdconvolution.hxx
+@@ -792,10 +792,10 @@ public:
+         {}
+ 
+         ~InitProxy()
+-#ifndef _MSC_VER
+-            throw(PreconditionViolation)
+-#elif _MSC_VER >= 1900
++#if _MSC_VER >= 1900 || __cplusplus >= 201103L
+             noexcept(false)
++#else
++          throw(PreconditionViolation)
+ #endif
+         {
+             vigra_precondition(count_ == 1 || count_ == sum_,



Home | Main Index | Thread Index | Old Index