summaryrefslogtreecommitdiff
path: root/media-gfx/hugin/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-06-08 21:46:31 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-06-08 21:46:31 +0100
commitc875ddc2b3a59401c7da3cb2c085afff4ba24e28 (patch)
tree6ff80676ab99535f05ea8e06cc9e68f6a8f29760 /media-gfx/hugin/files
parentd5599da3055bf9b900513a61c3c6e4bdbb524503 (diff)
gentoo auto-resync : 08:06:2023 - 21:46:30
Diffstat (limited to 'media-gfx/hugin/files')
-rw-r--r--media-gfx/hugin/files/hugin-2022.0.0-exiv2-0.28.patch99
1 files changed, 99 insertions, 0 deletions
diff --git a/media-gfx/hugin/files/hugin-2022.0.0-exiv2-0.28.patch b/media-gfx/hugin/files/hugin-2022.0.0-exiv2-0.28.patch
new file mode 100644
index 000000000000..dff74132b48f
--- /dev/null
+++ b/media-gfx/hugin/files/hugin-2022.0.0-exiv2-0.28.patch
@@ -0,0 +1,99 @@
+Patch originally taken from ArchLinux, modified to be backwards compatible.
+
+diff -r 79cd11a7a66f src/hugin_base/panodata/Exiv2Helper.cpp
+--- a/src/hugin_base/panodata/Exiv2Helper.cpp Wed May 24 19:13:20 2023 +0200
++++ b/src/hugin_base/panodata/Exiv2Helper.cpp Mon Jun 05 00:31:19 2023 +0200
+@@ -40,7 +40,11 @@
+ Exiv2::ExifData::iterator itr = exifData.findKey(Exiv2::ExifKey(keyName));
+ if (itr != exifData.end() && itr->count())
+ {
++#if EXIV2_TEST_VERSION(0,28,0)
++ value = itr->toUint32();
++#else
+ value = itr->toLong();
++#endif
+ return true;
+ }
+ else
+@@ -165,7 +169,11 @@
+ {
+ if(it!=exifData.end() && it->count())
+ {
++#if EXIV2_TEST_VERSION(0,28,0)
++ return it->toUint32();
++#else
+ return it->toLong();
++#endif
+ }
+ return 0;
+ };
+@@ -600,4 +608,4 @@
+ };
+
+ }; //namespace Exiv2Helper
+-}; //namespace HuginBase
+\ No newline at end of file
++}; //namespace HuginBase
+diff -r 79cd11a7a66f src/hugin_base/panodata/SrcPanoImage.cpp
+--- a/src/hugin_base/panodata/SrcPanoImage.cpp Wed May 24 19:13:20 2023 +0200
++++ b/src/hugin_base/panodata/SrcPanoImage.cpp Mon Jun 05 00:31:19 2023 +0200
+@@ -384,7 +384,11 @@
+ pos = xmpData.findKey(Exiv2::XmpKey("Xmp.GPano.CroppedAreaImageWidthPixels"));
+ if (pos != xmpData.end())
+ {
++#if EXIV2_TEST_VERSION(0,28,0)
++ croppedWidth = pos->toUint32();
++#else
+ croppedWidth = pos->toLong();
++#endif
+ }
+ else
+ {
+@@ -394,7 +398,11 @@
+ pos = xmpData.findKey(Exiv2::XmpKey("Xmp.GPano.CroppedAreaImageHeightPixels"));
+ if (pos != xmpData.end())
+ {
++#if EXIV2_TEST_VERSION(0,28,0)
++ croppedHeight = pos->toUint32();
++#else
+ croppedHeight = pos->toLong();
++#endif
+ }
+ else
+ {
+@@ -408,7 +416,11 @@
+ double hfov = 0;
+ if (pos != xmpData.end())
+ {
++#if EXIV2_TEST_VERSION(0,28,0)
++ hfov = 360 * croppedWidth / (double)pos->toUint32();
++#else
+ hfov = 360 * croppedWidth / (double)pos->toLong();
++#endif
+ }
+ else
+ {
+@@ -419,7 +431,11 @@
+ pos = xmpData.findKey(Exiv2::XmpKey("Xmp.GPano.FullPanoHeightPixels"));
+ if (pos != xmpData.end())
+ {
++#if EXIV2_TEST_VERSION(0,28,0)
++ fullHeight = pos->toUint32();
++#else
+ fullHeight = pos->toLong();
++#endif
+ }
+ else
+ {
+@@ -430,7 +446,11 @@
+ pos = xmpData.findKey(Exiv2::XmpKey("Xmp.GPano.CroppedAreaTopPixels"));
+ if (pos != xmpData.end())
+ {
++#if EXIV2_TEST_VERSION(0,28,0)
++ cropTop = pos->toUint32();
++#else
+ cropTop = pos->toLong();
++#endif
+ }
+ else
+ {