mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-16 14:17:02 +02:00
hugin: Fix build
Fixes conflict between exiv2 and wxWidgets/CMake built
This commit is contained in:
parent
91fb000242
commit
37e9d0c35d
2 changed files with 119 additions and 1 deletions
118
srcpkgs/hugin/patches/0001-Correct-exiv2-conflicts.patch
Normal file
118
srcpkgs/hugin/patches/0001-Correct-exiv2-conflicts.patch
Normal file
|
@ -0,0 +1,118 @@
|
|||
From e6b350ff0ae13314aff2991381beb8731d2c30be Mon Sep 17 00:00:00 2001
|
||||
From: Nathan Owens <ndowens04@gmail.com>
|
||||
Date: Wed, 6 Nov 2019 19:48:39 -0600
|
||||
Subject: [PATCH] Correct exiv2 conflicts
|
||||
|
||||
---
|
||||
src/hugin1/hugin/AboutDialog.cpp | 2 +-
|
||||
src/hugin1/hugin/PanoOperation.cpp | 3 +--
|
||||
src/hugin1/hugin/RawImport.cpp | 5 +----
|
||||
src/hugin1/hugin/TextureManager.cpp | 3 +--
|
||||
src/hugin1/ptbatcher/FindPanoDialog.cpp | 3 +--
|
||||
src/hugin_base/panodata/Exiv2Helper.cpp | 3 +--
|
||||
src/hugin_base/panodatsrcPanoImage.cpp | 4 +---
|
||||
7 files changed, 7 insertions(+), 16 deletions(-)
|
||||
|
||||
diff --git src/hugin1/hugin/AboutDialog.cpp src/hugin1/hugin/AboutDialog.cpp
|
||||
index 5603957..d1291aa 100755
|
||||
--- src/hugin1/hugin/AboutDialog.cpp
|
||||
+++ src/hugin1/hugin/AboutDialog.cpp
|
||||
@@ -42,7 +42,7 @@ extern "C"
|
||||
// workaround for a conflict between exiv2 and wxWidgets/CMake built
|
||||
#define HAVE_PID_T 1
|
||||
#endif
|
||||
-#include "exiv2/exiv2.hpp"
|
||||
+#include <exiv2/exiv2.hpp>
|
||||
#include "lensdb/LensDB.h"
|
||||
#include "sqlite3.h"
|
||||
#include <lcms2.h>
|
||||
diff --git src/hugin1/hugin/PanoOperation.cpp src/hugin1/hugin/PanoOperation.cpp
|
||||
index cf7a6c3..7a3f0d7 100755
|
||||
--- src/hugin1/hugin/PanoOperation.cpp
|
||||
+++ src/hugin1/hugin/PanoOperation.cpp
|
||||
@@ -36,8 +36,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/exiv2.hpp>
|
||||
#include "base_wx/LensTools.h"
|
||||
#include "base_wx/wxLensDB.h"
|
||||
#include "hugin/ResetDialog.h"
|
||||
diff --git src/hugin1/hugin/RawImport.cpp src/hugin1/hugin/RawImport.cpp
|
||||
index 2dd4eb9..73bb143 100755
|
||||
--- src/hugin1/hugin/RawImport.cpp
|
||||
+++ 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
|
||||
diff --git src/hugin1/hugin/TextureManager.cpp src/hugin1/hugin/TextureManager.cpp
|
||||
index 0d2f5da..9a0822a 100755
|
||||
--- src/hugin1/hugin/TextureManager.cpp
|
||||
+++ src/hugin1/hugin/TextureManager.cpp
|
||||
@@ -65,8 +65,7 @@
|
||||
// workaround for a conflict between exiv2 and wxWidgets/CMake built
|
||||
#define HAVE_PID_T 1
|
||||
#endif
|
||||
-#include "exiv2/exiv2.hpp"
|
||||
-#include "exiv2/preview.hpp"
|
||||
+#include <exiv2/exiv2.hpp>
|
||||
|
||||
TextureManager::TextureManager(HuginBase::Panorama *pano, ViewState *view_state_in)
|
||||
{
|
||||
diff --git src/hugin1/ptbatcher/FindPanoDialog.cpp src/hugin1/ptbatcher/FindPanoDialog.cpp
|
||||
index 64774fb..96cd762 100755
|
||||
--- src/hugin1/ptbatcher/FindPanoDialog.cpp
|
||||
+++ src/hugin1/ptbatcher/FindPanoDialog.cpp
|
||||
@@ -36,8 +36,7 @@
|
||||
// workaround for a conflict between exiv2 and wxWidgets/CMake built
|
||||
#define HAVE_PID_T 1
|
||||
#endif
|
||||
-#include "exiv2/exiv2.hpp"
|
||||
-#include "exiv2/preview.hpp"
|
||||
+#include <exiv2/exiv2.hpp>
|
||||
#ifdef _WIN32
|
||||
#include <commctrl.h>
|
||||
#endif
|
||||
diff --git src/hugin_base/panodata/Exiv2Helper.cpp src/hugin_base/panodata/Exiv2Helper.cpp
|
||||
index bc4c12a..09c6e46 100755
|
||||
--- src/hugin_base/panodata/Exiv2Helper.cpp
|
||||
+++ src/hugin_base/panodata/Exiv2Helper.cpp
|
||||
@@ -28,8 +28,7 @@
|
||||
#include "Exiv2Helper.h"
|
||||
#include "hugin_math/hugin_math.h"
|
||||
#include "hugin_utils/utils.h"
|
||||
-#include "exiv2/easyaccess.hpp"
|
||||
-#include "exiv2/version.hpp"
|
||||
+#include <exiv2/exiv2.hpp>
|
||||
|
||||
namespace HuginBase
|
||||
{
|
||||
diff --git src/hugin_base/panodata/SrcPanoImage.cpp src/hugin_base/panodata/SrcPanoImage.cpp
|
||||
index cc6a565..8484dd9 100755
|
||||
--- src/hugin_base/panodata/SrcPanoImage.cpp
|
||||
+++ src/hugin_base/panodatsrcPanoImage.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"
|
||||
|
||||
--
|
||||
2.24.0
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'hugin'
|
||||
pkgname=hugin
|
||||
version=2019.0.0
|
||||
revision=1
|
||||
revision=2
|
||||
wrksrc="${pkgname}-${version}"
|
||||
build_style=cmake
|
||||
pycompile_module="hpi.py hsi.py"
|
||||
|
|
Loading…
Add table
Reference in a new issue