From cb9a24bcf0544475954c13106fb001ff3ea9a18e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Sat, 16 Jan 2021 13:31:54 +0100 Subject: [PATCH] openimageio: fix build w/ tiff-4.2.0 The newer tiff.h already defines the GPSTAG_... macros. --- .../openimageio/patches/fix-tiff-4.2.0.patch | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 srcpkgs/openimageio/patches/fix-tiff-4.2.0.patch diff --git a/srcpkgs/openimageio/patches/fix-tiff-4.2.0.patch b/srcpkgs/openimageio/patches/fix-tiff-4.2.0.patch new file mode 100644 index 00000000000..20ba5792f7d --- /dev/null +++ b/srcpkgs/openimageio/patches/fix-tiff-4.2.0.patch @@ -0,0 +1,23 @@ +--- src/libOpenImageIO/exif.cpp 2018-12-01 17:42:08.000000000 +0100 ++++ src/libOpenImageIO/exif.cpp 2021-01-16 13:30:01.747255896 +0100 +@@ -212,7 +212,7 @@ + }; + + +- ++#if !defined(GPSTAG_VERSIONID) + enum GPSTag { + GPSTAG_VERSIONID = 0, + GPSTAG_LATITUDEREF = 1, GPSTAG_LATITUDE = 2, +@@ -237,6 +237,11 @@ + GPSTAG_DIFFERENTIAL = 30, + GPSTAG_HPOSITIONINGERROR = 31 + }; ++#endif ++#if !defined(GPSTAG_HPOSITIONINGERROR) ++/* The tiff.h tag name differs from the one used here */ ++#define GPSTAG_HPOSITIONINGERROR GPSTAG_GPSHPOSITIONINGERROR ++#endif + + static const EXIF_tag_info gps_tag_table[] = { + { GPSTAG_VERSIONID, "GPS:VersionID", TIFF_BYTE, 4 },