diff options
author | wiz <wiz@pkgsrc.org> | 2011-01-14 10:20:00 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2011-01-14 10:20:00 +0000 |
commit | 4726b2f50665c2b3a392d5bd747b9c74842c1cb5 (patch) | |
tree | c62628a3a58f90dbe448eca892b9383ca12c399e /graphics | |
parent | 5698b547dae1d04bea25bd7f86804d15724f99e1 (diff) | |
download | pkgsrc-4726b2f50665c2b3a392d5bd747b9c74842c1cb5.tar.gz |
Fix build with png-1.5.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/gegl/distinfo | 3 | ||||
-rw-r--r-- | graphics/gegl/patches/patch-ab | 24 |
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) |