pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/kio-extras kio-extras: build with openexr3



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9e64c74a2cad
branches:  trunk
changeset: 455693:9e64c74a2cad
user:      markd <markd%pkgsrc.org@localhost>
date:      Thu Jul 08 21:28:32 2021 +0000

description:
kio-extras: build with openexr3

diffstat:

 devel/kio-extras/Makefile                               |   4 +-
 devel/kio-extras/distinfo                               |   4 +-
 devel/kio-extras/patches/patch-thumbnail_CMakeLists.txt |  33 +++++++++++++++++
 devel/kio-extras/patches/patch-thumbnail_exrcreator.cpp |  14 +++++++
 4 files changed, 52 insertions(+), 3 deletions(-)

diffs (82 lines):

diff -r b8af53efc46c -r 9e64c74a2cad devel/kio-extras/Makefile
--- a/devel/kio-extras/Makefile Thu Jul 08 21:27:39 2021 +0000
+++ b/devel/kio-extras/Makefile Thu Jul 08 21:28:32 2021 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.6 2021/05/24 19:49:59 wiz Exp $
+# $NetBSD: Makefile,v 1.7 2021/07/08 21:28:32 markd Exp $
 
 DISTNAME=      kio-extras-${KAPPSVER}
-PKGREVISION=   3
+PKGREVISION=   4
 CATEGORIES=    misc
 
 HOMEPAGE=      https://kde.org/applications/internet/
diff -r b8af53efc46c -r 9e64c74a2cad devel/kio-extras/distinfo
--- a/devel/kio-extras/distinfo Thu Jul 08 21:27:39 2021 +0000
+++ b/devel/kio-extras/distinfo Thu Jul 08 21:28:32 2021 +0000
@@ -1,7 +1,9 @@
-$NetBSD: distinfo,v 1.2 2021/04/05 06:53:13 markd Exp $
+$NetBSD: distinfo,v 1.3 2021/07/08 21:28:32 markd Exp $
 
 SHA1 (kio-extras-20.12.3.tar.xz) = bf36af39998208b43b680070ad46872d33c879a5
 RMD160 (kio-extras-20.12.3.tar.xz) = 7dee21ac69081a924eb902a58c2984d2c3db3853
 SHA512 (kio-extras-20.12.3.tar.xz) = a419f7fa92ff876802e8b53eef9b5756108dd3f30fee4f1e1d25f4c8f4468181b9565a92ec07c832aa175368763adcd512f7732666f09a4e534e8d1af6abd13e
 Size (kio-extras-20.12.3.tar.xz) = 636012 bytes
 SHA1 (patch-info_kde-info2html.conf) = cad6874771fc5862b2bde6e3f2d49f9dcaf48924
+SHA1 (patch-thumbnail_CMakeLists.txt) = fe481415b8ba599eceb697725694e00701e43f48
+SHA1 (patch-thumbnail_exrcreator.cpp) = 4ce17e0af20d554f7570d0ef94d4946f39f05b78
diff -r b8af53efc46c -r 9e64c74a2cad devel/kio-extras/patches/patch-thumbnail_CMakeLists.txt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/kio-extras/patches/patch-thumbnail_CMakeLists.txt   Thu Jul 08 21:28:32 2021 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-thumbnail_CMakeLists.txt,v 1.1 2021/07/08 21:28:32 markd Exp $
+
+openexr3
+
+--- thumbnail/CMakeLists.txt.orig      2021-02-24 23:05:55.000000000 +0000
++++ thumbnail/CMakeLists.txt
+@@ -1,6 +1,9 @@
+ add_definitions(-DTRANSLATION_DOMAIN=\"kio5_thumbnail\")
+ 
+-find_package(OpenEXR)
++find_package(OpenEXR 3.0 CONFIG)
++if(NOT OpenEXR_FOUND)
++    find_package(OpenEXR)
++endif()
+ set_package_properties(OpenEXR PROPERTIES DESCRIPTION "API for accessing OpenEXR formatted images"
+                        URL "https://www.openexr.com";
+                        TYPE OPTIONAL
+@@ -144,9 +147,13 @@ if(OpenEXR_FOUND)
+     target_link_libraries(exrthumbnail
+             KF5::KIOCore
+             KF5::KIOWidgets
+-            ${OpenEXR_LIBRARIES}
+     )
+-    target_include_directories(exrthumbnail SYSTEM PRIVATE ${OpenEXR_INCLUDE_DIRS})
++    if(TARGET OpenEXR::OpenEXR)
++        target_link_libraries(exrthumbnail OpenEXR::OpenEXR)
++    else()
++        target_include_directories(exrthumbnail SYSTEM PRIVATE ${OpenEXR_INCLUDE_DIRS})
++        target_link_libraries(exrthumbnail OpenEXR::OpenEXR)
++    endif()
+ 
+     # OpenEXR headers use exceptions; at least clang refuses to build the target
+     # when exceptions are not enabled.
diff -r b8af53efc46c -r 9e64c74a2cad devel/kio-extras/patches/patch-thumbnail_exrcreator.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/kio-extras/patches/patch-thumbnail_exrcreator.cpp   Thu Jul 08 21:28:32 2021 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-thumbnail_exrcreator.cpp,v 1.1 2021/07/08 21:28:32 markd Exp $
+
+openexr3
+
+--- thumbnail/exrcreator.cpp.orig      2021-02-24 23:05:55.000000000 +0000
++++ thumbnail/exrcreator.cpp
+@@ -23,6 +23,7 @@
+ #include <QImage>
+ #include <QFile>
+ 
++#include <ImfHeader.h>
+ #include <ImfInputFile.h>
+ #include <ImfPreviewImage.h>
+ 



Home | Main Index | Thread Index | Old Index