From a6a29502a5c95b3d60ffe3f24a20b3ecbd02aa52 Mon Sep 17 00:00:00 2001 From: wiz Date: Sat, 19 Jun 2010 13:36:13 +0000 Subject: Fix build for png-1.4.x. --- print/img2eps/distinfo | 3 ++- print/img2eps/patches/patch-ab | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 print/img2eps/patches/patch-ab (limited to 'print') diff --git a/print/img2eps/distinfo b/print/img2eps/distinfo index 08513cafbfa..5edf847e6df 100644 --- a/print/img2eps/distinfo +++ b/print/img2eps/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.4 2009/07/23 16:30:37 yyamano Exp $ +$NetBSD: distinfo,v 1.5 2010/06/19 13:36:13 wiz Exp $ SHA1 (img2eps-0.2.tar.gz) = 0b62efba9ffdf1b9420e29ea9de928e5e8d9abaf RMD160 (img2eps-0.2.tar.gz) = 5113a3cd22bcc2ae1562a45bfdd21c2ef0151e70 Size (img2eps-0.2.tar.gz) = 404286 bytes SHA1 (patch-aa) = 027c6981b1b3188897af0a09bf0ce0119763316d +SHA1 (patch-ab) = 460228a99267234c7a2ad297a27cc04c78e6953e diff --git a/print/img2eps/patches/patch-ab b/print/img2eps/patches/patch-ab new file mode 100644 index 00000000000..e9d0a756645 --- /dev/null +++ b/print/img2eps/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1 2010/06/19 13:36:13 wiz Exp $ + +--- src/im_png.c.orig 2002-10-15 14:30:58.000000000 +0000 ++++ src/im_png.c +@@ -273,7 +273,7 @@ png_read_start(image_png *im) + if (im->im.oi.cspace.depth != im->im.i.cspace.depth) { + if (im->im.oi.cspace.type == IMAGE_CS_GRAY + && im->im.oi.cspace.depth /* XXX ?! */) +- png_set_gray_1_2_4_to_8(im->png); ++ png_set_expand_gray_1_2_4_to_8(im->png); + else if (im->im.oi.cspace.depth == 16) + png_set_strip_16(im->png); + } -- cgit v1.2.3