mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
graphics/exiv2: update to 0.27.1
Exp-run by: antoine PR: 239028
This commit is contained in:
parent
a3289277ff
commit
6dc0b2cfc8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=506383
13
astro/gpscorrelate/files/patch-exif-gps.cpp
Normal file
13
astro/gpscorrelate/files/patch-exif-gps.cpp
Normal file
@ -0,0 +1,13 @@
|
||||
--- exif-gps.cpp.orig 2019-07-07 08:26:16 UTC
|
||||
+++ exif-gps.cpp
|
||||
@@ -40,9 +40,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
|
||||
-
|
||||
-#include "exiv2/image.hpp"
|
||||
-#include "exiv2/exif.hpp"
|
||||
+#include <exiv2/exiv2.hpp>
|
||||
|
||||
#include "gpsstructure.h"
|
||||
#include "exif-gps.h"
|
@ -6,7 +6,7 @@ Date: Mon Jul 27 14:22:37 2015 +0200
|
||||
|
||||
--- src/Docks/GeoImageDock.cpp.orig 2015-07-19 14:50:09 UTC
|
||||
+++ src/Docks/GeoImageDock.cpp
|
||||
@@ -458,7 +458,7 @@ void GeoImageDock::loadImages(QStringLis
|
||||
@@ -458,7 +458,7 @@ void GeoImageDock::loadImages(QStringList fileNames)
|
||||
|
||||
Exiv2::Image::AutoPtr image;
|
||||
Exiv2::ExifData exifData;
|
||||
@ -15,7 +15,7 @@ Date: Mon Jul 27 14:22:37 2015 +0200
|
||||
|
||||
Layer *theLayer;
|
||||
if (photoLayer == NULL) {
|
||||
@@ -894,7 +894,7 @@ Coord GeoImageDock::getGeoDataFromImage(
|
||||
@@ -894,7 +894,7 @@ Coord GeoImageDock::getGeoDataFromImage(const QString
|
||||
double lat = 0.0, lon = 0.0;
|
||||
Exiv2::Image::AutoPtr image;
|
||||
Exiv2::ExifData exifData;
|
||||
@ -26,10 +26,13 @@ Date: Mon Jul 27 14:22:37 2015 +0200
|
||||
return pos;
|
||||
--- src/Docks/GeoImageDock.h.orig 2015-07-19 14:50:09 UTC
|
||||
+++ src/Docks/GeoImageDock.h
|
||||
@@ -9,6 +9,7 @@
|
||||
@@ -7,8 +7,8 @@
|
||||
#include <QtWidgets/QDockWidget>
|
||||
#include <QtGui/QMouseEvent>
|
||||
#include <QtWidgets/QShortcut>
|
||||
#include <exiv2/image.hpp>
|
||||
#include <exiv2/exif.hpp>
|
||||
-#include <exiv2/image.hpp>
|
||||
-#include <exiv2/exif.hpp>
|
||||
+#include <exiv2/exiv2.hpp>
|
||||
+#include <QDrag>
|
||||
|
||||
class ImageView;
|
||||
|
@ -2,9 +2,8 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= exiv2
|
||||
DISTVERSION= 0.27.0
|
||||
DISTVERSIONSUFFIX= a-Source
|
||||
PORTREVISION= 1
|
||||
DISTVERSION= 0.27.1
|
||||
DISTVERSIONSUFFIX= -Source
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= graphics
|
||||
MASTER_SITES= http://www.exiv2.org/builds/
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1550640374
|
||||
SHA256 (exiv2-0.27.0a-Source.tar.gz) = a4adfa7aaf295b0383adead476f8e0493b9d6c6c7570d5884d2ebf8a2871902f
|
||||
SIZE (exiv2-0.27.0a-Source.tar.gz) = 27168207
|
||||
TIMESTAMP = 1557685573
|
||||
SHA256 (exiv2-0.27.1-Source.tar.gz) = f125286980fd1bcb28e188c02a93946951c61e10784720be2301b661a65b3081
|
||||
SIZE (exiv2-0.27.1-Source.tar.gz) = 27210365
|
||||
|
@ -1,88 +0,0 @@
|
||||
Slightly modified:
|
||||
|
||||
From 04c9b181cc2c7741fcb134ccc43f2bafc1f86f19 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Luis=20D=C3=ADaz=20M=C3=A1s?= <piponazo@gmail.com>
|
||||
Date: Sat, 12 Jan 2019 12:15:27 +0000
|
||||
Subject: [PATCH] Fix #644. Export specializations of BasicError
|
||||
|
||||
- Only export BasicError::setMsg which is the only implementation present in the .cpp
|
||||
- Only export BasicError specialization on __APPLE__
|
||||
|
||||
It seems that gcc automatically adds the attribute when the visibility
|
||||
settings are set to hidden. See this link for more information:
|
||||
https://reviews.llvm.org/D35388
|
||||
---
|
||||
cmake/mainSetup.cmake | 6 ++++--
|
||||
include/exiv2/error.hpp | 3 ++-
|
||||
src/error.cpp | 6 ++++--
|
||||
3 files changed, 10 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/cmake/mainSetup.cmake b/cmake/mainSetup.cmake
|
||||
index 05c16004d..a4d983d4c 100644
|
||||
--- cmake/mainSetup.cmake
|
||||
+++ cmake/mainSetup.cmake
|
||||
@@ -13,8 +13,10 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
|
||||
|
||||
-set(CMAKE_CXX_VISIBILITY_PRESET hidden)
|
||||
-set(CMAKE_VISIBILITY_INLINES_HIDDEN 1)
|
||||
+if (NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
+ set(CMAKE_CXX_VISIBILITY_PRESET hidden)
|
||||
+ set(CMAKE_VISIBILITY_INLINES_HIDDEN 1)
|
||||
+endif()
|
||||
|
||||
set(CMAKE_CXX_STANDARD 98)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
diff --git a/include/exiv2/error.hpp b/include/exiv2/error.hpp
|
||||
index 0f9714e5b..42a0959c4 100644
|
||||
--- include/exiv2/error.hpp
|
||||
+++ include/exiv2/error.hpp
|
||||
@@ -315,7 +315,7 @@ namespace Exiv2 {
|
||||
std::basic_string<charT> arg3_; //!< Third argument
|
||||
std::string msg_; //!< Complete error message
|
||||
#ifdef EXV_UNICODE_PATH
|
||||
- std::wstring wmsg_; //!< Complete error message as a wide string
|
||||
+ std::wstring wmsg_; //!< Complete error message as a wide string
|
||||
#endif
|
||||
}; // class BasicError
|
||||
|
||||
@@ -389,6 +389,7 @@ namespace Exiv2 {
|
||||
return wmsg_.c_str();
|
||||
}
|
||||
#endif
|
||||
+
|
||||
#ifdef _MSC_VER
|
||||
# pragma warning( default : 4275 )
|
||||
#endif
|
||||
diff --git a/src/error.cpp b/src/error.cpp
|
||||
index 6d3a24bd8..c8e2d9e0d 100644
|
||||
--- src/error.cpp
|
||||
+++ src/error.cpp
|
||||
@@ -224,7 +224,6 @@ namespace Exiv2 {
|
||||
{
|
||||
}
|
||||
|
||||
- //! @cond IGNORE
|
||||
template<>
|
||||
void BasicError<char>::setMsg()
|
||||
{
|
||||
@@ -257,7 +256,9 @@ namespace Exiv2 {
|
||||
wmsg_ = s2ws(msg);
|
||||
#endif
|
||||
}
|
||||
- //! @endcond
|
||||
+#ifdef __FreeBSD__
|
||||
+ template class EXIV2API BasicError<char>;
|
||||
+#endif
|
||||
|
||||
#ifdef EXV_UNICODE_PATH
|
||||
template<>
|
||||
@@ -291,6 +292,7 @@ namespace Exiv2 {
|
||||
wmsg_ = wmsg;
|
||||
msg_ = ws2s(wmsg);
|
||||
}
|
||||
+ template class EXIV2API BasicError<wchar_t>;
|
||||
#endif
|
||||
|
||||
const char* errMsg(int code)
|
@ -82,15 +82,16 @@ include/exiv2/version.hpp
|
||||
include/exiv2/webpimage.hpp
|
||||
include/exiv2/xmp_exiv2.hpp
|
||||
include/exiv2/xmpsidecar.hpp
|
||||
lib/exiv2/cmake/exiv2Config-%%CMAKE_BUILD_TYPE%%.cmake
|
||||
lib/exiv2/cmake/exiv2Config.cmake
|
||||
lib/exiv2/cmake/exiv2ConfigVersion.cmake
|
||||
lib/libexiv2.so
|
||||
lib/libexiv2.so.0.27.0
|
||||
lib/libexiv2.so.0.27.1
|
||||
lib/libexiv2.so.27
|
||||
lib/libxmp.a
|
||||
lib/libexiv2-xmp.a
|
||||
libdata/pkgconfig/exiv2.pc
|
||||
man/man1/exiv2.1.gz
|
||||
%%SAMPLE%%man/man1/exiv2samples.1.gz
|
||||
%%DATADIR%%/cmake/exiv2Config-%%CMAKE_BUILD_TYPE%%.cmake
|
||||
%%DATADIR%%/cmake/exiv2Config.cmake
|
||||
share/locale/bs/LC_MESSAGES/exiv2.mo
|
||||
share/locale/ca/LC_MESSAGES/exiv2.mo
|
||||
share/locale/de/LC_MESSAGES/exiv2.mo
|
||||
|
12
graphics/gimp-lensfun-plugin/files/patch-src_gimplensfun.cpp
Normal file
12
graphics/gimp-lensfun-plugin/files/patch-src_gimplensfun.cpp
Normal file
@ -0,0 +1,12 @@
|
||||
--- src/gimplensfun.cpp.orig 2019-07-07 08:42:51 UTC
|
||||
+++ src/gimplensfun.cpp
|
||||
@@ -37,8 +37,7 @@ CHANGES:
|
||||
#include <libgimp/gimp.h>
|
||||
#include <libgimp/gimpui.h>
|
||||
|
||||
-#include <exiv2/image.hpp>
|
||||
-#include <exiv2/exif.hpp>
|
||||
+#include <exiv2/exiv2.hpp>
|
||||
|
||||
#define VERSIONSTR "0.2.4-dev"
|
||||
|
14
graphics/hugin/files/patch-src_hugin1_hugin_RawImport.cpp
Normal file
14
graphics/hugin/files/patch-src_hugin1_hugin_RawImport.cpp
Normal file
@ -0,0 +1,14 @@
|
||||
--- src/hugin1/hugin/RawImport.cpp.orig 2019-07-07 08:40:09 UTC
|
||||
+++ src/hugin1/hugin/RawImport.cpp
|
||||
@@ -35,10 +35,7 @@
|
||||
// workaround for a conflict between exiv2 and wxWidgets/CMake built
|
||||
#define HAVE_PID_T 1
|
||||
#endif
|
||||
-#include <exiv2/exif.hpp>
|
||||
-#include <exiv2/image.hpp>
|
||||
-#include <exiv2/easyaccess.hpp>
|
||||
-#include <exiv2/xmpsidecar.hpp>
|
||||
+#include <exiv2/exiv2.hpp>
|
||||
#ifdef __WXMSW__
|
||||
#include <wx/msw/registry.h>
|
||||
#endif
|
@ -0,0 +1,13 @@
|
||||
--- src/hugin_base/panodata/SrcPanoImage.cpp.orig 2019-07-07 08:31:01 UTC
|
||||
+++ src/hugin_base/panodata/SrcPanoImage.cpp
|
||||
@@ -40,9 +40,7 @@
|
||||
#include <vigra/diff2d.hxx>
|
||||
#include <vigra/imageinfo.hxx>
|
||||
#include <hugin_utils/utils.h>
|
||||
-#include <exiv2/exif.hpp>
|
||||
-#include <exiv2/image.hpp>
|
||||
-#include <exiv2/easyaccess.hpp>
|
||||
+#include <exiv2/exiv2.hpp>
|
||||
#include <lensdb/LensDB.h>
|
||||
#include "Exiv2Helper.h"
|
||||
|
@ -0,0 +1,11 @@
|
||||
--- src/Exif/ExifOperations.cpp.orig 2019-07-07 08:28:28 UTC
|
||||
+++ src/Exif/ExifOperations.cpp
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
#include <boost/assign/list_of.hpp>
|
||||
|
||||
-#include <exif.hpp>
|
||||
+#include <exiv2/exiv2.hpp>
|
||||
#include <image.hpp>
|
||||
|
||||
#include "ExifOperations.h"
|
@ -1,6 +1,14 @@
|
||||
--- src/DkCore/DkMetaData.cpp.orig 2019-03-08 21:53:21 UTC
|
||||
--- src/DkCore/DkMetaData.cpp.orig 2019-07-07 07:58:56 UTC
|
||||
+++ src/DkCore/DkMetaData.cpp
|
||||
@@ -1262,7 +1262,7 @@ void DkMetaDataT::printMetaData() const {
|
||||
@@ -40,6 +40,7 @@
|
||||
#include <QVector2D>
|
||||
#include <QApplication>
|
||||
#pragma warning(pop) // no warnings from includes - end
|
||||
+#include <iostream>
|
||||
|
||||
namespace nmc {
|
||||
|
||||
@@ -1262,7 +1263,7 @@ void DkMetaDataT::printMetaData() const {
|
||||
|
||||
std::string xmpPacket;
|
||||
if (0 != Exiv2::XmpParser::encode(xmpPacket, xmpData)) {
|
||||
|
@ -27,7 +27,7 @@ USES= cmake compiler:c++11-lib desktop-file-utils dos2unix \
|
||||
USE_GNOME= glib20
|
||||
USE_QT= qmake_build buildtools_build core gui network widgets
|
||||
DOS2UNIX_FILES= Sources/ptImage.cpp Sources/ptCheck.cpp Sources/filemgmt/ptFileMgrWindow.h \
|
||||
Sources/ptImageHelper.h Sources/ptMainWindow.h
|
||||
Sources/ptImageHelper.h Sources/ptMainWindow.h Sources/ptImageHelper.cpp
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
|
10
graphics/photivo/files/patch-Sources_ptImageHelper.cpp
Normal file
10
graphics/photivo/files/patch-Sources_ptImageHelper.cpp
Normal file
@ -0,0 +1,10 @@
|
||||
--- Sources/ptImageHelper.cpp.orig 2019-07-07 08:34:52 UTC
|
||||
+++ Sources/ptImageHelper.cpp
|
||||
@@ -34,6 +34,7 @@
|
||||
#pragma GCC diagnostic pop
|
||||
#include <wand/magick_wand.h>
|
||||
|
||||
+#include <iostream>
|
||||
#include <vector>
|
||||
#include <QStringList>
|
||||
|
@ -0,0 +1,12 @@
|
||||
--- cplusplus/scripts/getanddostuff/manipulation.h.orig 2019-07-07 08:24:57 UTC
|
||||
+++ cplusplus/scripts/getanddostuff/manipulation.h
|
||||
@@ -37,8 +37,7 @@
|
||||
#include "../../logger.h"
|
||||
|
||||
#ifdef EXIV2
|
||||
-#include <exiv2/image.hpp>
|
||||
-#include <exiv2/exif.hpp>
|
||||
+#include <exiv2/exiv2.hpp>
|
||||
#endif
|
||||
|
||||
class GetAndDoStuffManipulation : public QObject {
|
12
graphics/photoqt/files/patch-cplusplus_scripts_getmetadata.h
Normal file
12
graphics/photoqt/files/patch-cplusplus_scripts_getmetadata.h
Normal file
@ -0,0 +1,12 @@
|
||||
--- cplusplus/scripts/getmetadata.h.orig 2019-07-07 08:22:25 UTC
|
||||
+++ cplusplus/scripts/getmetadata.h
|
||||
@@ -34,8 +34,7 @@
|
||||
#include "../logger.h"
|
||||
|
||||
#ifdef EXIV2
|
||||
-#include <exiv2/image.hpp>
|
||||
-#include <exiv2/exif.hpp>
|
||||
+#include <exiv2/exiv2.hpp>
|
||||
#endif
|
||||
|
||||
class GetMetaData : public QObject {
|
@ -1,19 +1,20 @@
|
||||
https://gitweb.gentoo.org/repo/gentoo.git/tree/media-gfx/ufraw/files/ufraw-0.22-exiv2-0.27.patch
|
||||
|
||||
--- ufraw_exiv2.cc 2015-06-16 05:58:38.000000000 +0200
|
||||
+++ ufraw_exiv2.cc 2018-12-29 22:51:23.291894430 +0100
|
||||
@@ -15,9 +15,7 @@
|
||||
--- ufraw_exiv2.cc.orig 2016-11-13 04:00:05 UTC
|
||||
+++ ufraw_exiv2.cc
|
||||
@@ -15,9 +15,8 @@
|
||||
#include "ufraw.h"
|
||||
|
||||
#ifdef HAVE_EXIV2
|
||||
-#include <exiv2/image.hpp>
|
||||
-#include <exiv2/easyaccess.hpp>
|
||||
-#include <exiv2/exif.hpp>
|
||||
+#include <iostream>
|
||||
+#include <exiv2/exiv2.hpp>
|
||||
#include <sstream>
|
||||
#include <cassert>
|
||||
|
||||
@@ -67,7 +65,11 @@
|
||||
@@ -67,7 +66,11 @@ extern "C" int ufraw_exif_read_input(ufraw_data *uf)
|
||||
if (exifData.empty()) {
|
||||
std::string error(uf->filename);
|
||||
error += ": No Exif data found in the file";
|
||||
@ -25,4 +26,3 @@ https://gitweb.gentoo.org/repo/gentoo.git/tree/media-gfx/ufraw/files/ufraw-0.22-
|
||||
}
|
||||
|
||||
/* List of tag names taken from exiv2's printSummary() in actions.cpp */
|
||||
|
||||
|
@ -0,0 +1,18 @@
|
||||
--- libs/libmythmetadata/imagemetadata.cpp.orig 2019-07-07 08:48:08 UTC
|
||||
+++ libs/libmythmetadata/imagemetadata.cpp
|
||||
@@ -7,14 +7,7 @@
|
||||
#include "exitcodes.h" // for ffprobe
|
||||
|
||||
// libexiv2 for Exif metadata
|
||||
-//#include <exiv2/exiv2.hpp>
|
||||
-// Note: Older versions of Exiv2 don't have the exiv2.hpp include
|
||||
-// file. Using image.hpp instead seems to work.
|
||||
-#ifdef _MSC_VER
|
||||
-#include <exiv2/src/image.hpp>
|
||||
-#else
|
||||
-#include <exiv2/image.hpp>
|
||||
-#endif
|
||||
+#include <exiv2/exiv2.hpp>
|
||||
|
||||
// To read FFMPEG Metadata
|
||||
extern "C" {
|
@ -1,6 +1,14 @@
|
||||
--- src/image/exiv2.cpp.orig 2009-01-30 22:18:25.000000000 +0100
|
||||
+++ src/image/exiv2.cpp 2011-07-15 15:48:34.000000000 +0200
|
||||
@@ -47,7 +47,8 @@
|
||||
--- src/image/exiv2.cpp.orig 2009-01-30 21:18:25 UTC
|
||||
+++ src/image/exiv2.cpp
|
||||
@@ -1,6 +1,5 @@
|
||||
#include <Python.h>
|
||||
-#include <exiv2/image.hpp>
|
||||
-#include <exiv2/exif.hpp>
|
||||
+#include <exiv2/exiv2.hpp>
|
||||
|
||||
PyObject *parse(PyObject *self, PyObject *args)
|
||||
{
|
||||
@@ -47,7 +46,8 @@ PyObject *parse(PyObject *self, PyObject *args)
|
||||
Py_DECREF(entry);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user