aboutsummaryrefslogtreecommitdiff
path: root/graphics/netpbm/files
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2010-05-21 08:26:26 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2010-05-21 08:26:26 +0000
commite2e6ae2e004692023540f1b3b8a5b06f528fe8fa (patch)
tree6a2f3f530dea1e73b1879b257f164b2bbb2c4391 /graphics/netpbm/files
parent8936133819002c4f1e44615f3a163172bbe85cb8 (diff)
Notes
Diffstat (limited to 'graphics/netpbm/files')
-rw-r--r--graphics/netpbm/files/patch-pngtopnm.c23
-rw-r--r--graphics/netpbm/files/patch-pnmtopng.c19
2 files changed, 30 insertions, 12 deletions
diff --git a/graphics/netpbm/files/patch-pngtopnm.c b/graphics/netpbm/files/patch-pngtopnm.c
index c28f194e61fd..22d1bc11e42c 100644
--- a/graphics/netpbm/files/patch-pngtopnm.c
+++ b/graphics/netpbm/files/patch-pngtopnm.c
@@ -1,6 +1,15 @@
---- converter/other/pngtopnm.c.orig 2004-04-04 02:18:34.000000000 +0200
-+++ converter/other/pngtopnm.c 2010-03-28 12:29:26.000000000 +0200
-@@ -494,7 +494,7 @@
+--- converter/other/pngtopnm.c.orig 2009-08-01 21:35:54.000000000 +0200
++++ converter/other/pngtopnm.c 2010-05-21 10:04:14.000000000 +0200
+@@ -43,7 +43,7 @@
+ #include "nstring.h"
+ #include "shhopt.h"
+
+-#if PNG_LIBPNG_VER >= 10400
++#if 0
+ #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)
+@@ -500,7 +500,7 @@
case PNG_COLOR_TYPE_GRAY:
setXel(&xelrow[col], c, c, c,
((info_ptr->valid & PNG_INFO_tRNS) &&
@@ -9,7 +18,7 @@
totalgamma))) ?
0 : maxval);
break;
-@@ -511,7 +511,7 @@
+@@ -517,7 +517,7 @@
info_ptr->palette[c].blue,
(info_ptr->valid & PNG_INFO_tRNS) &&
c < info_ptr->num_trans ?
@@ -18,7 +27,7 @@
break;
case PNG_COLOR_TYPE_RGB: {
-@@ -519,11 +519,11 @@
+@@ -525,11 +525,11 @@
png_uint_16 const c3 = get_png_val(png_pixelP);
setXel(&xelrow[col], c, c2, c3,
((info_ptr->valid & PNG_INFO_tRNS) &&
@@ -33,7 +42,7 @@
totalgamma))) ?
0 : maxval);
}
-@@ -688,7 +688,7 @@
+@@ -694,7 +694,7 @@
(info_ptr->valid & PNG_INFO_tRNS)) {
trans_mix = TRUE;
for (i = 0 ; i < info_ptr->num_trans ; i++)
@@ -42,7 +51,7 @@
trans_mix = FALSE;
break;
}
-@@ -841,7 +841,7 @@
+@@ -847,7 +847,7 @@
pnm_type = PBM_TYPE;
if (info_ptr->valid & PNG_INFO_tRNS) {
for (i = 0 ; i < info_ptr->num_trans ; i++) {
diff --git a/graphics/netpbm/files/patch-pnmtopng.c b/graphics/netpbm/files/patch-pnmtopng.c
index 949c12d83dec..2ba6453629af 100644
--- a/graphics/netpbm/files/patch-pnmtopng.c
+++ b/graphics/netpbm/files/patch-pnmtopng.c
@@ -1,6 +1,15 @@
---- converter/other/pnmtopng.c.orig 2007-07-04 05:26:21.000000000 +0200
-+++ converter/other/pnmtopng.c 2010-03-28 12:17:40.000000000 +0200
-@@ -1863,7 +1863,7 @@
+--- converter/other/pnmtopng.c.orig 2009-08-01 21:31:33.000000000 +0200
++++ converter/other/pnmtopng.c 2010-05-21 09:59:36.000000000 +0200
+@@ -63,7 +63,7 @@
+ #include "mallocvar.h"
+ #include "nstring.h"
+
+-#if PNG_LIBPNG_VER >= 10400
++#if 0
+ #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)
+@@ -1869,7 +1869,7 @@
info_ptr->num_palette = palette_size;
if (trans_size > 0) {
info_ptr->valid |= PNG_INFO_tRNS;
@@ -9,7 +18,7 @@
info_ptr->num_trans = trans_size; /* omit opaque values */
}
/* creating hIST chunk */
-@@ -1900,7 +1900,7 @@
+@@ -1906,7 +1906,7 @@
info_ptr->color_type == PNG_COLOR_TYPE_RGB) {
if (transparent > 0) {
info_ptr->valid |= PNG_INFO_tRNS;
@@ -18,7 +27,7 @@
xelToPngColor_16(transcolor, maxval, png_maxval);
}
} else {
-@@ -1912,10 +1912,10 @@
+@@ -1918,10 +1918,10 @@
if (info_ptr->valid && PNG_INFO_tRNS)
pm_message("Transparent color {gray, red, green, blue} = "
"{%d, %d, %d, %d}",