summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorwiz <wiz>2010-06-19 13:36:13 +0000
committerwiz <wiz>2010-06-19 13:36:13 +0000
commitfadac0681dd1bcd00d2c9420e58ff7f13f2d19c9 (patch)
tree3f0503b524aa2fbecb7993b586729e87c5ffcf5f /print
parentf0721eb7c01994eef601b9e47e2da165d95889d7 (diff)
downloadpkgsrc-fadac0681dd1bcd00d2c9420e58ff7f13f2d19c9.tar.gz
Fix build for png-1.4.x.
Diffstat (limited to 'print')
-rw-r--r--print/img2eps/distinfo3
-rw-r--r--print/img2eps/patches/patch-ab13
2 files changed, 15 insertions, 1 deletions
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);
+ }