summaryrefslogtreecommitdiff
path: root/print/transfig/patches
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2011-01-19 19:14:15 +0000
committerdrochner <drochner@pkgsrc.org>2011-01-19 19:14:15 +0000
commit9e2b30799a8402a1e7060ad79fd4d429b43efbdf (patch)
tree8aac3babe7088b7b8adb8557c29e602835b97434 /print/transfig/patches
parent9656cc1e0ce8659ee8d644da6e0ebbe88df56944 (diff)
downloadpkgsrc-9e2b30799a8402a1e7060ad79fd4d429b43efbdf.tar.gz
update to 3.2.5d
changes: -bugfixes -New PSTricks driver
Diffstat (limited to 'print/transfig/patches')
-rw-r--r--print/transfig/patches/patch-ad25
-rw-r--r--print/transfig/patches/patch-ae12
2 files changed, 14 insertions, 23 deletions
diff --git a/print/transfig/patches/patch-ad b/print/transfig/patches/patch-ad
index 3d44fb050d7..e13ece42e2f 100644
--- a/print/transfig/patches/patch-ad
+++ b/print/transfig/patches/patch-ad
@@ -1,10 +1,10 @@
-$NetBSD: patch-ad,v 1.4 2011/01/19 00:12:50 tron Exp $
+$NetBSD: patch-ad,v 1.5 2011/01/19 19:14:15 drochner Exp $
Fix build with png-1.5.
---- fig2dev/dev/readpng.c.orig 2003-01-13 19:16:41.000000000 +0000
-+++ fig2dev/dev/readpng.c 2011-01-19 00:09:24.000000000 +0000
-@@ -39,6 +39,8 @@
+--- fig2dev/dev/readpng.c.orig 2010-04-21 16:02:14.000000000 +0000
++++ fig2dev/dev/readpng.c
+@@ -39,6 +39,8 @@ read_png(file,filetype,pic,llx,lly)
char *ptr;
int num_palette;
png_colorp palette;
@@ -13,7 +13,7 @@ Fix build with png-1.5.
png_color_16 png_background;
*llx = *lly = 0;
-@@ -62,7 +64,7 @@
+@@ -62,7 +64,7 @@ read_png(file,filetype,pic,llx,lly)
}
/* set long jump here */
@@ -22,31 +22,22 @@ Fix build with png-1.5.
/* if we get here there was a problem reading the file */
png_destroy_read_struct(&png_ptr, &info_ptr, &end_info);
return 0;
-@@ -78,14 +80,14 @@
+@@ -78,14 +80,14 @@ read_png(file,filetype,pic,llx,lly)
png_get_IHDR(png_ptr, info_ptr, &w, &h, &bit_depth, &color_type,
&interlace_type, &compression_type, &filter_type);
- if (info_ptr->valid & PNG_INFO_gAMA)
- png_set_gamma(png_ptr, 2.2, info_ptr->gamma);
-+ if (png_get_gAMA(png_ptr, info_ptr, &gamma) & PNG_INFO_gAMA)
++ if (png_get_gAMA(png_ptr, info_ptr, &gamma))
+ png_set_gamma(png_ptr, 2.2, gamma);
else
png_set_gamma(png_ptr, 2.2, 0.45);
- if (info_ptr->valid & PNG_INFO_bKGD)
-+ if (png_get_bKGD(png_ptr, info_ptr, &file_background) & PNG_INFO_bKGD)
++ if (png_get_bKGD(png_ptr, info_ptr, &file_background))
/* set the background to the one supplied */
- png_set_background(png_ptr, &info_ptr->background,
+ png_set_background(png_ptr, file_background,
PNG_BACKGROUND_GAMMA_FILE, 1, 1.0);
else {
/* blend the canvas background using the alpha channel */
-@@ -127,7 +129,7 @@
-
- if (png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette)) {
- png_get_hIST(png_ptr, info_ptr, &histogram);
-- png_set_dither(png_ptr, palette, num_palette, 256, histogram, 0);
-+ png_set_quantize(png_ptr, palette, num_palette, 256, histogram, 0);
- }
- }
- if (color_type == PNG_COLOR_TYPE_GRAY || color_type == PNG_COLOR_TYPE_GRAY_ALPHA) {
diff --git a/print/transfig/patches/patch-ae b/print/transfig/patches/patch-ae
index 2df1baeaabc..4c2f60f177d 100644
--- a/print/transfig/patches/patch-ae
+++ b/print/transfig/patches/patch-ae
@@ -1,13 +1,13 @@
-$NetBSD: patch-ae,v 1.4 2005/11/10 14:29:01 itohy Exp $
+$NetBSD: patch-ae,v 1.5 2011/01/19 19:14:15 drochner Exp $
---- fig2dev/fig2dev.h.orig Wed Jul 16 01:21:12 2003
-+++ fig2dev/fig2dev.h Wed Nov 9 21:52:22 2005
-@@ -213,13 +213,14 @@
+--- fig2dev/fig2dev.h.orig 2010-03-16 18:53:20.000000000 +0000
++++ fig2dev/fig2dev.h
+@@ -214,13 +214,14 @@ struct Cmap {
#endif /* MAXPATHLEN */
#endif /* PATH_MAX */
--#if ( !defined(__NetBSD__) && !defined(__DARWIN__))
-+#if ( !defined(__NetBSD__) && !defined(__DARWIN__) && !defined(__FreeBSD__) &&!defined(__DragonFly__))
+-#if ( !defined(__NetBSD__) && !defined(__DARWIN__) && !defined(__FreeBSD) )
++#if ( !defined(__NetBSD__) && !defined(__DARWIN__) && !defined(__FreeBSD) && !defined(__DragonFly__) )
extern int sys_nerr, errno;
#endif