diff options
Diffstat (limited to 'graphics/netpbm/patches/patch-ac')
-rw-r--r-- | graphics/netpbm/patches/patch-ac | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/graphics/netpbm/patches/patch-ac b/graphics/netpbm/patches/patch-ac new file mode 100644 index 00000000000..1946546c99a --- /dev/null +++ b/graphics/netpbm/patches/patch-ac @@ -0,0 +1,49 @@ +$NetBSD: patch-ac,v 1.19 2010/06/13 22:44:39 wiz Exp $ + +--- converter/other/pnmtopng.c.orig 2009-09-03 15:34:36.000000000 +0000 ++++ converter/other/pnmtopng.c +@@ -69,11 +69,6 @@ + #include "nstring.h" + #include "version.h" + +-#if PNG_LIBPNG_VER >= 10400 +-#error Your PNG library (<png.h>) is incompatible with this Netpbm source code. +-#error You need either an older PNG library (older than 1.4) +-#error newer Netpbm source code (at least 10.48) +-#endif + + + struct zlibCompression { +@@ -2611,7 +2606,7 @@ convertpnm(struct cmdlineInfo const cmdl + info_ptr->num_palette = palette_size; + if (trans_size > 0) { + info_ptr->valid |= PNG_INFO_tRNS; +- info_ptr->trans = trans; ++ info_ptr->trans_alpha = trans; + info_ptr->num_trans = trans_size; /* omit opaque values */ + } + /* creating hIST chunk */ +@@ -2648,7 +2643,7 @@ convertpnm(struct cmdlineInfo const cmdl + info_ptr->color_type == PNG_COLOR_TYPE_RGB) { + if (transparent > 0) { + info_ptr->valid |= PNG_INFO_tRNS; +- info_ptr->trans_values = ++ info_ptr->trans_color = + xelToPngColor_16(transcolor, maxval, png_maxval); + } + } else { +@@ -2660,10 +2655,10 @@ convertpnm(struct cmdlineInfo const cmdl + if (info_ptr->valid && PNG_INFO_tRNS) + pm_message("Transparent color {gray, red, green, blue} = " + "{%d, %d, %d, %d}", +- info_ptr->trans_values.gray, +- info_ptr->trans_values.red, +- info_ptr->trans_values.green, +- info_ptr->trans_values.blue); ++ info_ptr->trans_color.gray, ++ info_ptr->trans_color.red, ++ info_ptr->trans_color.green, ++ info_ptr->trans_color.blue); + else + pm_message("No transparent color"); + } |