summaryrefslogtreecommitdiff
path: root/graphics/gimp/patches
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2006-04-18 20:24:48 +0000
committertron <tron@pkgsrc.org>2006-04-18 20:24:48 +0000
commit3cf65b08ff0d7bc6e724ad010452dc5ab2f4194d (patch)
tree2baf6f903b96e166aea890ab2224c5e1ef26a779 /graphics/gimp/patches
parentbf9177ddfac433741664a88b7547dc8e68929581 (diff)
downloadpkgsrc-3cf65b08ff0d7bc6e724ad010452dc5ab2f4194d.tar.gz
Complete rewrite of PNG plugin for new API to make this package build
with the latest version of the "png" package. Bump package revision because of this fix.
Diffstat (limited to 'graphics/gimp/patches')
-rw-r--r--graphics/gimp/patches/patch-ac28
1 files changed, 28 insertions, 0 deletions
diff --git a/graphics/gimp/patches/patch-ac b/graphics/gimp/patches/patch-ac
new file mode 100644
index 00000000000..8d9961135c8
--- /dev/null
+++ b/graphics/gimp/patches/patch-ac
@@ -0,0 +1,28 @@
+$NetBSD: patch-ac,v 1.12 2006/04/18 20:24:48 tron Exp $
+
+--- plug-ins/common/png.c.orig 2004-11-23 14:28:43.000000000 +0000
++++ plug-ins/common/png.c 2006-04-18 21:20:36.000000000 +0100
+@@ -1012,7 +1012,11 @@
+ * Done with the file...
+ */
+
++#if PNG_LIBPNG_VER > 88
++ png_destroy_read_struct(&pp, &info, NULL);
++#else
+ png_read_destroy (pp, info, NULL);
++#endif
+
+ g_free (pixel);
+ g_free (pixels);
+@@ -1441,7 +1445,11 @@
+ };
+
+ png_write_end (pp, info);
++#if PNG_LIBPNG_VER > 88
++ png_destroy_write_struct(&pp, &info);
++#else
+ png_write_destroy (pp);
++#endif
+
+ g_free (pixel);
+ g_free (pixels);