summaryrefslogtreecommitdiffstats
path: root/graphics/netpbm
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2004-11-14 19:35:22 +0000
committerdinoex <dinoex@FreeBSD.org>2004-11-14 19:35:22 +0000
commitedf6e0ebf78ce4e9bee4bcfb4a977e091f801d65 (patch)
treefd17ae10230302fbb6c42a486586ba3e958e460a /graphics/netpbm
parent35dbdbed23e99d13797a5c399eacd5d07ec987b7 (diff)
downloadFreeBSD-ports-edf6e0ebf78ce4e9bee4bcfb4a977e091f801d65.zip
FreeBSD-ports-edf6e0ebf78ce4e9bee4bcfb4a977e091f801d65.tar.gz
- fix bug with generation of transparent png
PR: 72521 Submitted by: Bryan Henderson
Diffstat (limited to 'graphics/netpbm')
-rw-r--r--graphics/netpbm/Makefile1
-rw-r--r--graphics/netpbm/files/patch-converter-other-pnmtopng.c11
2 files changed, 12 insertions, 0 deletions
diff --git a/graphics/netpbm/Makefile b/graphics/netpbm/Makefile
index 920819a..1a7e8c0 100644
--- a/graphics/netpbm/Makefile
+++ b/graphics/netpbm/Makefile
@@ -7,6 +7,7 @@
PORTNAME= netpbm
PORTVERSION= 10.25
+PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff --git a/graphics/netpbm/files/patch-converter-other-pnmtopng.c b/graphics/netpbm/files/patch-converter-other-pnmtopng.c
index 9a5fbf3..3e60fbd 100644
--- a/graphics/netpbm/files/patch-converter-other-pnmtopng.c
+++ b/graphics/netpbm/files/patch-converter-other-pnmtopng.c
@@ -1,5 +1,16 @@
--- converter/other/pnmtopng.c.orig Sun Jun 23 12:51:37 2002
+++ converter/other/pnmtopng.c Sat Jul 6 00:00:00 2002
+@@ -1365,8 +1366,8 @@
+ if (transparent != -1)
+ makeOneColorTransparentInPalette(
+ transcolor, transexact,
+- palette_pnm, *paletteSizeP, trans_pnm,
+- transSizeP);
++ palette_pnm, paletteSize, trans_pnm,
++ &transSize);
+ }
+ if (!*noColormapReasonP) {
+ if (background > -1)
@@ -1903,8 +1903,13 @@
*/
fprintf(stderr, " Compiled with libpng %s.\n",
OpenPOWER on IntegriCloud