pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/darktable darktable: fix for openexr3



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8bc544436463
branches:  trunk
changeset: 455877:8bc544436463
user:      markd <markd%pkgsrc.org@localhost>
date:      Tue Jul 13 12:36:30 2021 +0000

description:
darktable: fix for openexr3

diffstat:

 graphics/darktable/Makefile                                        |   4 +-
 graphics/darktable/distinfo                                        |   5 +-
 graphics/darktable/patches/patch-src_CMakeLists.txt                |  40 +++++++++-
 graphics/darktable/patches/patch-src_imageio_format_CMakeLists.txt |  19 ++++
 4 files changed, 62 insertions(+), 6 deletions(-)

diffs (107 lines):

diff -r 7bfda051c994 -r 8bc544436463 graphics/darktable/Makefile
--- a/graphics/darktable/Makefile       Tue Jul 13 12:35:09 2021 +0000
+++ b/graphics/darktable/Makefile       Tue Jul 13 12:36:30 2021 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.121 2021/04/21 13:24:46 adam Exp $
+# $NetBSD: Makefile,v 1.122 2021/07/13 12:36:30 markd Exp $
 
 DISTNAME=      darktable-3.0.0
-PKGREVISION=   14
+PKGREVISION=   15
 CATEGORIES=    graphics
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=darktable-org/}
 GITHUB_PROJECT=        darktable
diff -r 7bfda051c994 -r 8bc544436463 graphics/darktable/distinfo
--- a/graphics/darktable/distinfo       Tue Jul 13 12:35:09 2021 +0000
+++ b/graphics/darktable/distinfo       Tue Jul 13 12:36:30 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.32 2020/01/05 02:30:08 ryoon Exp $
+$NetBSD: distinfo,v 1.33 2021/07/13 12:36:30 markd Exp $
 
 SHA1 (darktable-3.0.0.tar.xz) = 468ea6cbc313ec899b448f5c9c8ce4144d5f35c7
 RMD160 (darktable-3.0.0.tar.xz) = b7d1c358250a950548a01d2de9bee9f551cf5dee
@@ -6,6 +6,7 @@
 Size (darktable-3.0.0.tar.xz) = 3827412 bytes
 SHA1 (patch-CMakeLists.txt) = 2b2c6c0733af56e61e5be598a59644b40e8f26a6
 SHA1 (patch-cmake_compiler-warnings.cmake) = b65fbb5222cca791088137e823402df6b9423121
-SHA1 (patch-src_CMakeLists.txt) = 4535599cf1d0f6aae1909bd4dc09281311e23e0c
+SHA1 (patch-src_CMakeLists.txt) = cfab8ea6b70400f9d9234ddbbca9cc1ecbd6e782
 SHA1 (patch-src_common_system__signal__handling.c) = 296f5618c618a9b16af2ca5a1d9ff408c437c220
+SHA1 (patch-src_imageio_format_CMakeLists.txt) = c292604a1b92262af874af6b806488ad27d9a4df
 SHA1 (patch-tools_noise_benchmark.sh) = 1e26ebbbc73e44ec41c092297d681f33fb55155d
diff -r 7bfda051c994 -r 8bc544436463 graphics/darktable/patches/patch-src_CMakeLists.txt
--- a/graphics/darktable/patches/patch-src_CMakeLists.txt       Tue Jul 13 12:35:09 2021 +0000
+++ b/graphics/darktable/patches/patch-src_CMakeLists.txt       Tue Jul 13 12:36:30 2021 +0000
@@ -1,11 +1,47 @@
-$NetBSD: patch-src_CMakeLists.txt,v 1.8 2018/02/06 12:55:52 jperkin Exp $
+$NetBSD: patch-src_CMakeLists.txt,v 1.9 2021/07/13 12:36:30 markd Exp $
 
 Don't link with the C compiler, CMake's CXXABI detection may insert
 C++ libraries into LIBS.
+fix for openexr3
 
 --- src/CMakeLists.txt.orig    2017-05-28 14:22:21.000000000 +0000
 +++ src/CMakeLists.txt
-@@ -684,7 +684,7 @@ if(APPLE)
+@@ -300,13 +300,18 @@ if(USE_CAMERA_SUPPORT)
+ endif(USE_CAMERA_SUPPORT)
+ 
+ if(USE_OPENEXR)
+-  find_package(OpenEXR)
+-  if(OPENEXR_FOUND)
++  find_package(OpenEXR 3.0 CONFIG)
++  if(TARGET OpenEXR::OpenEXR)
++    set(OpenEXR_LIBRARIES OpenEXR::OpenEXR)
++  else()
++    find_package(OpenEXR)
++  endif()
++  if(OpenEXR_FOUND)
+     include_directories(SYSTEM ${OpenEXR_INCLUDE_DIRS})
+     list(APPEND LIBS ${OpenEXR_LIBRARIES})
+     add_definitions(${OpenEXR_DEFINITIONS})
+     list(APPEND SOURCES "common/imageio_exr.cc")
+-  endif(OPENEXR_FOUND)
++  endif(OpenEXR_FOUND)
+ endif(USE_OPENEXR)
+ 
+ if(USE_WEBP)
+@@ -430,10 +435,10 @@ if(LENSFUN_FOUND)
+   add_definitions("-DHAVE_LENSFUN")
+ endif(LENSFUN_FOUND)
+ 
+-if(OPENEXR_FOUND)
++if(OpenEXR_FOUND)
+   add_definitions("-DHAVE_OPENEXR")
+   set(DT_SUPPORTED_EXTENSIONS ${DT_SUPPORTED_EXTENSIONS} j2c j2k jp2 jpc CACHE INTERNAL "")
+-endif(OPENEXR_FOUND)
++endif(OpenEXR_FOUND)
+ 
+ if(USE_OPENCL)
+   add_definitions("-DHAVE_OPENCL")
+@@ -800,7 +805,7 @@ if(APPLE)
    set_target_properties(lib_darktable PROPERTIES MACOSX_RPATH TRUE)
  endif(APPLE)
  set_target_properties(lib_darktable PROPERTIES OUTPUT_NAME darktable)
diff -r 7bfda051c994 -r 8bc544436463 graphics/darktable/patches/patch-src_imageio_format_CMakeLists.txt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/darktable/patches/patch-src_imageio_format_CMakeLists.txt        Tue Jul 13 12:36:30 2021 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-src_imageio_format_CMakeLists.txt,v 1.1 2021/07/13 12:36:30 markd Exp $
+
+openexr3 fix
+
+--- src/imageio/format/CMakeLists.txt.orig     2019-12-21 09:57:37.000000000 +0000
++++ src/imageio/format/CMakeLists.txt
+@@ -21,10 +21,10 @@ if(WEBP_FOUND)
+         add_library(webp MODULE "webp.c")
+ endif(WEBP_FOUND)
+ 
+-if(OPENEXR_FOUND)
++if(OpenEXR_FOUND)
+       list(APPEND MODULES "exr")
+       add_library(exr MODULE "exr.cc")
+-endif(OPENEXR_FOUND)
++endif(OpenEXR_FOUND)
+ 
+ if(OpenJPEG_FOUND)
+       list(APPEND MODULES "j2k")



Home | Main Index | Thread Index | Old Index