pkgsrc-Changes archive

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

CVS commit: pkgsrc/graphics/libkexiv2



Module Name:    pkgsrc
Committed By:   maya
Date:           Sat Nov  2 13:51:12 UTC 2019

Modified Files:
        pkgsrc/graphics/libkexiv2: distinfo
Added Files:
        pkgsrc/graphics/libkexiv2/patches: patch-CMakeLists.txt
            patch-libkexiv2_kexiv2__p.h patch-libkexiv2_kexiv2exif.cpp

Log Message:
libkexiv2: fix build with newer exiv2.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 pkgsrc/graphics/libkexiv2/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/graphics/libkexiv2/patches/patch-CMakeLists.txt \
    pkgsrc/graphics/libkexiv2/patches/patch-libkexiv2_kexiv2__p.h \
    pkgsrc/graphics/libkexiv2/patches/patch-libkexiv2_kexiv2exif.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/libkexiv2/distinfo
diff -u pkgsrc/graphics/libkexiv2/distinfo:1.19 pkgsrc/graphics/libkexiv2/distinfo:1.20
--- pkgsrc/graphics/libkexiv2/distinfo:1.19     Sun Jan 10 19:43:10 2016
+++ pkgsrc/graphics/libkexiv2/distinfo  Sat Nov  2 13:51:12 2019
@@ -1,6 +1,9 @@
-$NetBSD: distinfo,v 1.19 2016/01/10 19:43:10 markd Exp $
+$NetBSD: distinfo,v 1.20 2019/11/02 13:51:12 maya Exp $
 
 SHA1 (libkexiv2-15.08.3.tar.xz) = 09adf7887dc644431a6930ba645162707c16bb3d
 RMD160 (libkexiv2-15.08.3.tar.xz) = 190de195363cd668336efa8a0f1995d7f658a6c0
 SHA512 (libkexiv2-15.08.3.tar.xz) = f20463dc7d54404c933fb30d55702111aaa1238a521de066c18e91d54f8fe8cb56c51ff4b76100f7508c5b42e24895b864d7ce5b2032652154844f7522c1c1ad
 Size (libkexiv2-15.08.3.tar.xz) = 137376 bytes
+SHA1 (patch-CMakeLists.txt) = 321dcdb78b0c2cfbeb3b7237aa3a3cb7c8425a01
+SHA1 (patch-libkexiv2_kexiv2__p.h) = d906d1f970710ee99c290bcc9ecd06336ab7e116
+SHA1 (patch-libkexiv2_kexiv2exif.cpp) = b9a198f0c6a02f40bc8e962e9429ebf4f2772765

Added files:

Index: pkgsrc/graphics/libkexiv2/patches/patch-CMakeLists.txt
diff -u /dev/null pkgsrc/graphics/libkexiv2/patches/patch-CMakeLists.txt:1.1
--- /dev/null   Sat Nov  2 13:51:12 2019
+++ pkgsrc/graphics/libkexiv2/patches/patch-CMakeLists.txt      Sat Nov  2 13:51:12 2019
@@ -0,0 +1,25 @@
+$NetBSD: patch-CMakeLists.txt,v 1.1 2019/11/02 13:51:12 maya Exp $
+
+Workaround kdelibs4's FindExiv2.cmake not matching for newer exiv2.
+Use pkgconfig instead.
+
+--- CMakeLists.txt.orig        2015-04-30 19:04:22.000000000 +0000
++++ CMakeLists.txt
+@@ -10,6 +10,7 @@ message(STATUS "------------------------
+ message(STATUS "Starting CMake configuration for: libkexiv2")
+ 
+ find_package(KDE4 REQUIRED)
++find_package(PkgConfig)
+ 
+ include(KDE4Defaults)
+ include(MacroLibrary)
+@@ -23,8 +24,7 @@ include_directories(${QDBUS_INCLUDE_DIRS
+ set(LIBKEXIV2_AREA_CODE_GENERAL 51003)
+ add_definitions(-DKDE_DEFAULT_DEBUG_AREA=${LIBKEXIV2_AREA_CODE_GENERAL})
+ 
+-set(EXIV2_MIN_VERSION "0.24")
+-find_package(Exiv2)
++pkg_check_modules(EXIV2 exiv2>=0.25)
+ MACRO_LOG_FEATURE(EXIV2_FOUND "Exiv2" "Required to build libkexiv2." "http://www.exiv2.org";
+                   TRUE ${EXIV2_MIN_VERSION} "")
+ 
Index: pkgsrc/graphics/libkexiv2/patches/patch-libkexiv2_kexiv2__p.h
diff -u /dev/null pkgsrc/graphics/libkexiv2/patches/patch-libkexiv2_kexiv2__p.h:1.1
--- /dev/null   Sat Nov  2 13:51:12 2019
+++ pkgsrc/graphics/libkexiv2/patches/patch-libkexiv2_kexiv2__p.h       Sat Nov  2 13:51:12 2019
@@ -0,0 +1,26 @@
+$NetBSD: patch-libkexiv2_kexiv2__p.h,v 1.1 2019/11/02 13:51:12 maya Exp $
+
+New exiv2 support.
+from https://github.com/KDE/libkexiv2/commit/d1be9298c7f2b9c717cda154d41732f230ea13a6
+
+--- libkexiv2/kexiv2_p.h.orig  2015-04-30 19:04:22.000000000 +0000
++++ libkexiv2/kexiv2_p.h
+@@ -74,17 +74,7 @@
+ #pragma GCC visibility push(default)
+ #endif
+ 
+-#include <exiv2/exv_conf.h>
+-#include <exiv2/error.hpp>
+-#include <exiv2/image.hpp>
+-#include <exiv2/jpgimage.hpp>
+-#include <exiv2/datasets.hpp>
+-#include <exiv2/tags.hpp>
+-#include <exiv2/preview.hpp>
+-#include <exiv2/properties.hpp>
+-#include <exiv2/types.hpp>
+-#include <exiv2/exif.hpp>
+-#include <exiv2/xmpsidecar.hpp>
++#include <exiv2/exiv2.hpp>
+ 
+ // Check if Exiv2 support XMP
+ 
Index: pkgsrc/graphics/libkexiv2/patches/patch-libkexiv2_kexiv2exif.cpp
diff -u /dev/null pkgsrc/graphics/libkexiv2/patches/patch-libkexiv2_kexiv2exif.cpp:1.1
--- /dev/null   Sat Nov  2 13:51:12 2019
+++ pkgsrc/graphics/libkexiv2/patches/patch-libkexiv2_kexiv2exif.cpp    Sat Nov  2 13:51:12 2019
@@ -0,0 +1,20 @@
+$NetBSD: patch-libkexiv2_kexiv2exif.cpp,v 1.1 2019/11/02 13:51:12 maya Exp $
+
+New exiv2 support.
+From https://github.com/KDE/libkexiv2/commit/d1be9298c7f2b9c717cda154d41732f230ea13a6
+
+--- libkexiv2/kexiv2exif.cpp.orig      2015-04-30 19:04:22.000000000 +0000
++++ libkexiv2/kexiv2exif.cpp
+@@ -986,7 +986,12 @@ bool KExiv2::setTiffThumbnail(const QIma
+ 
+         if (pos == d->exifMetadata().end() || pos->count() != 1 || pos->toLong() != 0)
+         {
++
++#if EXIV2_TEST_VERSION(0,27,0)
++            throw Exiv2::Error(Exiv2::kerErrorMessage, "Exif.Image.NewSubfileType missing or not set as main image");
++#else
+             throw Exiv2::Error(1, "Exif.Image.NewSubfileType missing or not set as main image");
++#endif
+         }
+ 
+         // Remove sub-IFD tags



Home | Main Index | Thread Index | Old Index