pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/gwenview gwenview: fix build with newer exiv2...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/902f3a42815c
branches:  trunk
changeset: 343334:902f3a42815c
user:      maya <maya%pkgsrc.org@localhost>
date:      Sat Nov 02 18:39:52 2019 +0000

description:
gwenview: fix build with newer exiv2. workaround cryptic cmake issue.

Bypass FindExiv2.cmake with pkgconfig. Use the big exiv2 header instead
of two headers that are no longer sufficient.

For some reason the test CMAKE_COMPILER_IS_GNUCXX doesn't pass, so
we don't know how to enable/disable exceptions. Use BUILDLINK_TRANSFORM
for this.

diffstat:

 graphics/gwenview/Makefile                                 |   7 +++-
 graphics/gwenview/distinfo                                 |   7 +++-
 graphics/gwenview/patches/patch-CMakeLists.txt             |  24 ++++++++++++++
 graphics/gwenview/patches/patch-lib_exiv2imageloader.cpp   |  16 +++++++++
 graphics/gwenview/patches/patch-lib_imagemetainfomodel.cpp |  17 +++++++++
 graphics/gwenview/patches/patch-lib_jpegcontent.cpp        |  16 +++++++++
 graphics/gwenview/patches/patch-lib_timeutils.cpp          |  16 +++++++++
 7 files changed, 101 insertions(+), 2 deletions(-)

diffs (145 lines):

diff -r 189103fd37ff -r 902f3a42815c graphics/gwenview/Makefile
--- a/graphics/gwenview/Makefile        Sat Nov 02 18:30:48 2019 +0000
+++ b/graphics/gwenview/Makefile        Sat Nov 02 18:39:52 2019 +0000
@@ -1,10 +1,15 @@
-# $NetBSD: Makefile,v 1.96 2019/08/22 12:23:18 ryoon Exp $
+# $NetBSD: Makefile,v 1.97 2019/11/02 18:39:52 maya Exp $
 
 DISTNAME=      gwenview-${_KDE_VERSION}
 PKGREVISION=   17
 CATEGORIES=    graphics
 COMMENT=       KDE image viewer
 
+# Workaround cryptic issue where cmake CMAKE_COMPILER_IS_GNUCXX is not
+# defined in this project (in FindKDE4Internal.cmake)
+BUILDLINK_TRANSFORM+=  opt:-fno-exceptions:-fexceptions
+BUILDLINK_TRANSFORM+=  opt:-DQT_NO_EXCEPTIONS:-UQT_EXCEPTIONS
+
 .include "../../meta-pkgs/kde4/Makefile.kde4"
 
 .include "../../meta-pkgs/kde4/kde4.mk"
diff -r 189103fd37ff -r 902f3a42815c graphics/gwenview/distinfo
--- a/graphics/gwenview/distinfo        Sat Nov 02 18:30:48 2019 +0000
+++ b/graphics/gwenview/distinfo        Sat Nov 02 18:39:52 2019 +0000
@@ -1,6 +1,11 @@
-$NetBSD: distinfo,v 1.29 2015/11/03 21:34:03 agc Exp $
+$NetBSD: distinfo,v 1.30 2019/11/02 18:39:52 maya Exp $
 
 SHA1 (gwenview-4.14.3.tar.xz) = dfa98856fbcd7e51050f23716d7f24dab264bf12
 RMD160 (gwenview-4.14.3.tar.xz) = 493754167864154be07772bc85be168fb5a2b755
 SHA512 (gwenview-4.14.3.tar.xz) = cb64b2278adb01f0fad92d861126ff8256c80ae8780de0a37bcc1e6a0e19e2f5b14c09fc884c6d759a0cd6b3a2611787235020745147c9fc66883d61ab4861c3
 Size (gwenview-4.14.3.tar.xz) = 2910652 bytes
+SHA1 (patch-CMakeLists.txt) = b0a28c3b1504dc1cb7ab1403cc89518bf2d14022
+SHA1 (patch-lib_exiv2imageloader.cpp) = fdcec8772c464561fee30a79fb1d41e141638cab
+SHA1 (patch-lib_imagemetainfomodel.cpp) = cbccab9c83c4998ade81ba1dc44226b5d84f4a30
+SHA1 (patch-lib_jpegcontent.cpp) = f2701a9c41e97012607cc9c43969f018b040f425
+SHA1 (patch-lib_timeutils.cpp) = a0ed38eaffd907f19a53abbb79ab182a8dbe623a
diff -r 189103fd37ff -r 902f3a42815c graphics/gwenview/patches/patch-CMakeLists.txt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/gwenview/patches/patch-CMakeLists.txt    Sat Nov 02 18:39:52 2019 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-CMakeLists.txt,v 1.1 2019/11/02 18:39:52 maya Exp $
+
+kdelibs4's FindExiv2.cmake is wrong about new exiv2.
+Workaround using pkgconfig.
+
+--- CMakeLists.txt.orig        2014-09-30 09:11:42.000000000 +0000
++++ CMakeLists.txt
+@@ -3,6 +3,7 @@ project(gwenview)
+ set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake )
+ 
+ find_package(KDE4 4.6.41 REQUIRED)
++find_package(PkgConfig)
+ include(KDE4Defaults)
+ include(MacroLibrary)
+ include(MacroOptionalAddSubdirectory)
+@@ -32,7 +33,7 @@ macro_log_feature(JPEG_FOUND "libjpeg" "
+ find_package(PNG)
+ macro_log_feature(PNG_FOUND "libpng" "PNG image manipulation support" "http://www.libpng.org"; TRUE)
+ 
+-find_package(Exiv2)
++pkg_check_modules(EXIV2 exiv2>=0.19)
+ macro_log_feature(EXIV2_FOUND "Exiv2" "Image metadata support" "http://www.exiv2.org"; TRUE "0.19")
+ 
+ macro_optional_find_package(Kipi)
diff -r 189103fd37ff -r 902f3a42815c graphics/gwenview/patches/patch-lib_exiv2imageloader.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/gwenview/patches/patch-lib_exiv2imageloader.cpp  Sat Nov 02 18:39:52 2019 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-lib_exiv2imageloader.cpp,v 1.1 2019/11/02 18:39:52 maya Exp $
+
+exiv2 0.27.0 fixes
+
+--- lib/exiv2imageloader.cpp.orig      2014-09-30 09:11:42.000000000 +0000
++++ lib/exiv2imageloader.cpp
+@@ -28,8 +28,7 @@ Foundation, Inc., 51 Franklin Street, Fi
+ // KDE
+ 
+ // Exiv2
+-#include <exiv2/error.hpp>
+-#include <exiv2/types.hpp>
++#include <exiv2/exiv2.hpp>
+ 
+ // Local
+ 
diff -r 189103fd37ff -r 902f3a42815c graphics/gwenview/patches/patch-lib_imagemetainfomodel.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/gwenview/patches/patch-lib_imagemetainfomodel.cpp        Sat Nov 02 18:39:52 2019 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-lib_imagemetainfomodel.cpp,v 1.1 2019/11/02 18:39:52 maya Exp $
+
+Newer exiv2 fixes. (0.27.0)
+
+--- lib/imagemetainfomodel.cpp.orig    2014-09-30 09:11:42.000000000 +0000
++++ lib/imagemetainfomodel.cpp
+@@ -30,9 +30,7 @@ Foundation, Inc., 51 Franklin Street, Fi
+ #include <KLocale>
+ 
+ // Exiv2
+-#include <exiv2/exif.hpp>
+-#include <exiv2/image.hpp>
+-#include <exiv2/iptc.hpp>
++#include <exiv2/exiv2.hpp>
+ 
+ // Local
+ 
diff -r 189103fd37ff -r 902f3a42815c graphics/gwenview/patches/patch-lib_jpegcontent.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/gwenview/patches/patch-lib_jpegcontent.cpp       Sat Nov 02 18:39:52 2019 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-lib_jpegcontent.cpp,v 1.1 2019/11/02 18:39:52 maya Exp $
+
+exiv2 0.27.0 fixes
+
+--- lib/jpegcontent.cpp.orig   2014-09-30 09:11:42.000000000 +0000
++++ lib/jpegcontent.cpp
+@@ -42,8 +42,7 @@ extern "C" {
+ #include <KLocale>
+ 
+ // Exiv2
+-#include <exiv2/exif.hpp>
+-#include <exiv2/image.hpp>
++#include <exiv2/exiv2.hpp>
+ 
+ // Local
+ #include "jpegerrormanager.h"
diff -r 189103fd37ff -r 902f3a42815c graphics/gwenview/patches/patch-lib_timeutils.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/gwenview/patches/patch-lib_timeutils.cpp Sat Nov 02 18:39:52 2019 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-lib_timeutils.cpp,v 1.1 2019/11/02 18:39:52 maya Exp $
+
+exiv2 0.27.0 fixes
+
+--- lib/timeutils.cpp.orig     2014-09-30 09:11:42.000000000 +0000
++++ lib/timeutils.cpp
+@@ -30,8 +30,7 @@ Foundation, Inc., 51 Franklin Street, Fi
+ #include <KFileItem>
+ 
+ // Exiv2
+-#include <exiv2/exif.hpp>
+-#include <exiv2/image.hpp>
++#include <exiv2/exiv2.hpp>
+ 
+ // Local
+ #include <lib/exiv2imageloader.h>



Home | Main Index | Thread Index | Old Index