summaryrefslogtreecommitdiff
path: root/graphics/openexr
diff options
context:
space:
mode:
authormartin <martin@pkgsrc.org>2021-09-17 05:35:01 +0000
committermartin <martin@pkgsrc.org>2021-09-17 05:35:01 +0000
commit9d162d1d45c071d74ada3dfd414f6b35f7fa5451 (patch)
tree4ca4bb6ba63f5c293dbcf0853459315e0f47f42e /graphics/openexr
parentc5a00d836074ecfc3a1c8a105f37dc68c7b03502 (diff)
downloadpkgsrc-9d162d1d45c071d74ada3dfd414f6b35f7fa5451.tar.gz
Fix build for non-amd64 NetBSD architectures (already reported upstream)
Diffstat (limited to 'graphics/openexr')
-rw-r--r--graphics/openexr/distinfo3
-rw-r--r--graphics/openexr/patches/patch-src_test_OpenEXRTest_bswap__32.h20
2 files changed, 22 insertions, 1 deletions
diff --git a/graphics/openexr/distinfo b/graphics/openexr/distinfo
index cc31aaf6921..91f0c508f3f 100644
--- a/graphics/openexr/distinfo
+++ b/graphics/openexr/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.39 2021/08/15 14:15:03 wiz Exp $
+$NetBSD: distinfo,v 1.40 2021/09/17 05:35:01 martin Exp $
SHA1 (openexr-3.1.1.tar.gz) = 1aa1b9206f92beda828209bc057ac1016879aa93
RMD160 (openexr-3.1.1.tar.gz) = d7ec25c09052d25d5289e0ca1067cb1911541ad3
SHA512 (openexr-3.1.1.tar.gz) = 430becbb214cedec5a57e9ff2363badd8a2d94e8a00edffbc75fbcf30d26d887a6eb3f4ff96e371cb26f9d44e63bf0fe2dc511493a0951171ddc64bba7aed735
Size (openexr-3.1.1.tar.gz) = 25588029 bytes
SHA1 (patch-src_lib_OpenEXR_ImfSystemSpecific.h) = 87c234bc497cd1fe34d38dfcdaa943486f8971e5
+SHA1 (patch-src_test_OpenEXRTest_bswap__32.h) = 93ac02c58734c582f2cdb0139e74551a75dd8121
diff --git a/graphics/openexr/patches/patch-src_test_OpenEXRTest_bswap__32.h b/graphics/openexr/patches/patch-src_test_OpenEXRTest_bswap__32.h
new file mode 100644
index 00000000000..45e748f359b
--- /dev/null
+++ b/graphics/openexr/patches/patch-src_test_OpenEXRTest_bswap__32.h
@@ -0,0 +1,20 @@
+$NetBSD: patch-src_test_OpenEXRTest_bswap__32.h,v 1.1 2021/09/17 05:35:01 martin Exp $
+
+Simply use <sys/bswap.h> for all NetBSD architectures.
+
+Upstream: https://github.com/AcademySoftwareFoundation/openexr/pull/1147
+
+--- src/test/OpenEXRTest/bswap_32.h.orig 2021-07-31 21:57:32.000000000 +0200
++++ src/test/OpenEXRTest/bswap_32.h 2021-09-17 07:00:54.974296748 +0200
+@@ -20,10 +20,8 @@
+ #define bswap_32(x) swap32(x)
+ #elif defined(__NetBSD__)
+ #include <sys/types.h>
+-#include <machine/bswap.h>
+-#if defined(__BSWAP_RENAME) && !defined(__bswap_32)
++#include <sys/bswap.h>
+ #define bswap_32(x) bswap32(x)
+-#endif
+ #else
+ #include <byteswap.h>
+ #endif