summaryrefslogtreecommitdiff
path: root/graphics/openexr
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2013-07-04 06:25:23 +0000
committerdholland <dholland@pkgsrc.org>2013-07-04 06:25:23 +0000
commit414603f2900e2fbd2416dd03524fec5aaf29ea48 (patch)
treebb5a4e008bbae0cac6e5046f044c7fe5b26cedf6 /graphics/openexr
parent417e7ac14b9114eebad5c82a52d3a0a8103952b2 (diff)
downloadpkgsrc-414603f2900e2fbd2416dd03524fec5aaf29ea48.tar.gz
Add patch to fix Solaris 10 build, from Joern Clausen in PR 47867,
except that I rearranged the patch a bit and hopefully didn't mess it up.
Diffstat (limited to 'graphics/openexr')
-rw-r--r--graphics/openexr/distinfo3
-rw-r--r--graphics/openexr/patches/patch-IlmImf_ImfSystemSpecific.h20
2 files changed, 22 insertions, 1 deletions
diff --git a/graphics/openexr/distinfo b/graphics/openexr/distinfo
index 0490ca1899a..fa56f9e9ef2 100644
--- a/graphics/openexr/distinfo
+++ b/graphics/openexr/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.19 2013/05/08 17:49:11 adam Exp $
+$NetBSD: distinfo,v 1.20 2013/07/04 06:25:23 dholland Exp $
SHA1 (openexr-2.0.0.tar.gz) = 774ae69ac01bbe4443b6fa0a9b12e276d0af44f5
RMD160 (openexr-2.0.0.tar.gz) = a8f69447bcff1d7c4881b33fdb12f61a702c2caf
Size (openexr-2.0.0.tar.gz) = 12589533 bytes
+SHA1 (patch-IlmImf_ImfSystemSpecific.h) = f36d049085e42beabcf5f7af5354009391a1f9f2
SHA1 (patch-aa) = e8a6349203327937923367995a6721a5159ac7cf
SHA1 (patch-ab) = df9a5ceea5702c08265ea884813c965122241802
diff --git a/graphics/openexr/patches/patch-IlmImf_ImfSystemSpecific.h b/graphics/openexr/patches/patch-IlmImf_ImfSystemSpecific.h
new file mode 100644
index 00000000000..9d2760bf1c6
--- /dev/null
+++ b/graphics/openexr/patches/patch-IlmImf_ImfSystemSpecific.h
@@ -0,0 +1,20 @@
+$NetBSD: patch-IlmImf_ImfSystemSpecific.h,v 1.1 2013/07/04 06:25:23 dholland Exp $
+
+Work around lack of posix_memalign() on (some?) Solaris, from PR 47867.
+
+--- IlmImf/ImfSystemSpecific.h~ 2013-04-09 17:08:02.000000000 +0000
++++ IlmImf/ImfSystemSpecific.h
+@@ -60,9 +60,13 @@ static bool GLOBAL_SYSTEM_LITTLE_ENDIAN
+
+ static void* EXRAllocAligned(size_t size, size_t alignment)
+ {
++#ifdef __sun
++ return memalign(alignment, size);
++#else
+ void* ptr = 0;
+ posix_memalign(&ptr, alignment, size);
+ return ptr;
++#endif
+ }
+
+