summaryrefslogtreecommitdiff
path: root/graphics/gegl
diff options
context:
space:
mode:
authorwiz <wiz>2011-01-14 10:20:00 +0000
committerwiz <wiz>2011-01-14 10:20:00 +0000
commit2d5d756254704daa2806ef973eb0ca18832591cd (patch)
treec62628a3a58f90dbe448eca892b9383ca12c399e /graphics/gegl
parent4151b6f3ecfef0273cc7c4b3a7802f66ed7faf16 (diff)
downloadpkgsrc-2d5d756254704daa2806ef973eb0ca18832591cd.tar.gz
Fix build with png-1.5.
Diffstat (limited to 'graphics/gegl')
-rw-r--r--graphics/gegl/distinfo3
-rw-r--r--graphics/gegl/patches/patch-ab24
2 files changed, 26 insertions, 1 deletions
diff --git a/graphics/gegl/distinfo b/graphics/gegl/distinfo
index ba75f10506f..45738dcb454 100644
--- a/graphics/gegl/distinfo
+++ b/graphics/gegl/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.5 2010/06/14 18:48:32 drochner Exp $
+$NetBSD: distinfo,v 1.6 2011/01/14 10:20:00 wiz Exp $
SHA1 (gegl-0.1.2.tar.bz2) = 34b4a6be9e472324d6dd1233713a1f8851fcdc04
RMD160 (gegl-0.1.2.tar.bz2) = e03faeac7ba3024f64ed0c43a22cf433f8e5eb19
Size (gegl-0.1.2.tar.bz2) = 3128704 bytes
SHA1 (patch-aa) = 5eeefaaa80a93eefd73dba81eff88652e5213167
+SHA1 (patch-ab) = d0b931d0b31861655d5dda4db4988b4d126016ce
SHA1 (patch-ac) = b34d1fd99e26dc64fe160076b4ac9dcad48fdc86
diff --git a/graphics/gegl/patches/patch-ab b/graphics/gegl/patches/patch-ab
new file mode 100644
index 00000000000..6c8ce16b483
--- /dev/null
+++ b/graphics/gegl/patches/patch-ab
@@ -0,0 +1,24 @@
+$NetBSD: patch-ab,v 1.3 2011/01/14 10:20:01 wiz Exp $
+
+Fix build with png-1.5.
+
+--- operations/external/png-load.c.orig 2010-02-07 14:43:55.000000000 +0000
++++ operations/external/png-load.c
+@@ -181,7 +181,7 @@ gegl_buffer_import_png (GeglBuffer *geg
+ if (interlace_type == PNG_INTERLACE_ADAM7)
+ number_of_passes = png_set_interlace_handling (load_png_ptr);
+
+- if (load_info_ptr->valid & PNG_INFO_gAMA)
++ if (png_get_valid(load_png_ptr, load_info_ptr, PNG_INFO_gAMA))
+ {
+ gdouble gamma;
+ png_get_gAMA (load_png_ptr, load_info_ptr, &gamma);
+@@ -298,7 +298,7 @@ static gint query_png (const gchar *path
+ *width = w;
+ *height = h;
+
+- if (load_info_ptr->valid & PNG_INFO_tRNS)
++ if (png_get_valid(load_png_ptr, load_info_ptr, PNG_INFO_tRNS))
+ color_type |= PNG_COLOR_MASK_ALPHA;
+
+ if (color_type & PNG_COLOR_TYPE_RGB)