summaryrefslogtreecommitdiff
path: root/x11/gnustep-gui
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2011-01-29 12:34:39 +0000
committerwiz <wiz@pkgsrc.org>2011-01-29 12:34:39 +0000
commit588b8ce576dfc6cb34e4cf8666221f1fa3a4fff8 (patch)
treec66bd191098063f27b03510e590c82df6e824ff0 /x11/gnustep-gui
parentc344593ceae99d32e5d07d325d72703669509ac3 (diff)
downloadpkgsrc-588b8ce576dfc6cb34e4cf8666221f1fa3a4fff8.tar.gz
Fix build with png-1.5.
Diffstat (limited to 'x11/gnustep-gui')
-rw-r--r--x11/gnustep-gui/distinfo3
-rw-r--r--x11/gnustep-gui/patches/patch-aa15
2 files changed, 17 insertions, 1 deletions
diff --git a/x11/gnustep-gui/distinfo b/x11/gnustep-gui/distinfo
index b6cc133299d..3a0a2cf892e 100644
--- a/x11/gnustep-gui/distinfo
+++ b/x11/gnustep-gui/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.19 2009/04/13 12:19:14 rh Exp $
+$NetBSD: distinfo,v 1.20 2011/01/29 12:34:39 wiz Exp $
SHA1 (gnustep-gui-0.16.0.tar.gz) = cc0a14f700a3736b8e4113d3ad80ed6f979d60be
RMD160 (gnustep-gui-0.16.0.tar.gz) = 3083746b7bba1652d7522d5eb7e7a430b309a6f2
Size (gnustep-gui-0.16.0.tar.gz) = 1867264 bytes
+SHA1 (patch-aa) = 6148d4fe06130d4585d4d4534182a305de9f9b70
SHA1 (patch-ab) = 731885b48f571237414072a72a9fcc878340cf9a
SHA1 (patch-ac) = ad486b1e2a751475c2f8bb118f8452c38273053a
diff --git a/x11/gnustep-gui/patches/patch-aa b/x11/gnustep-gui/patches/patch-aa
new file mode 100644
index 00000000000..09f4adc97ae
--- /dev/null
+++ b/x11/gnustep-gui/patches/patch-aa
@@ -0,0 +1,15 @@
+$NetBSD: patch-aa,v 1.5 2011/01/29 12:34:39 wiz Exp $
+
+Fix build with png-1.5.
+
+--- Source/NSBitmapImageRep+PNG.m.orig 2008-06-10 04:01:49.000000000 +0000
++++ Source/NSBitmapImageRep+PNG.m
+@@ -225,7 +225,7 @@ static void reader_func(png_structp png_
+ initWithBytesNoCopy: buf
+ length: bytes_per_row * height];
+
+- if (PNG_INFO_gAMA & png_info->valid)
++ if (png_get_valid(png_struct, png_info, PNG_INFO_gAMA))
+ {
+ double file_gamma = 2.2;
+ if (PNG_FLOATING_POINT)