diff options
author | dinoex <dinoex@FreeBSD.org> | 2012-06-01 13:26:28 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2012-06-01 13:26:28 +0800 |
commit | 530706893f31269bbfa303e069f2e76cbbe2fce7 (patch) | |
tree | a8077a0d6e20d70b39e6a7fe3e57a6dafe7c7f33 /news/knews | |
parent | 9d262811a145d3e715edefd1d5d64ceac41de547 (diff) | |
download | freebsd-ports-gnome-530706893f31269bbfa303e069f2e76cbbe2fce7.tar.gz freebsd-ports-gnome-530706893f31269bbfa303e069f2e76cbbe2fce7.tar.zst freebsd-ports-gnome-530706893f31269bbfa303e069f2e76cbbe2fce7.zip |
- update png to 1.5.10
Diffstat (limited to 'news/knews')
-rw-r--r-- | news/knews/Makefile | 4 | ||||
-rw-r--r-- | news/knews/files/patch-Imakefile | 12 | ||||
-rw-r--r-- | news/knews/files/patch-png.c | 22 |
3 files changed, 29 insertions, 9 deletions
diff --git a/news/knews/Makefile b/news/knews/Makefile index 4e6c1d6f7fe3..b26be5a1b675 100644 --- a/news/knews/Makefile +++ b/news/knews/Makefile @@ -7,7 +7,7 @@ PORTNAME= knews PORTVERSION= 1.0b.1 -PORTREVISION= 11 +PORTREVISION= 12 CATEGORIES= news MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR=dinoex @@ -16,7 +16,7 @@ MAINTAINER= dinoex@FreeBSD.org COMMENT= A threaded nntp newsreader for X LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \ - png.6:${PORTSDIR}/graphics/png \ + png15:${PORTSDIR}/graphics/png \ compface:${PORTSDIR}/mail/faces RUN_DEPENDS= newsp:${PORTSDIR}/print/mp-letter diff --git a/news/knews/files/patch-Imakefile b/news/knews/files/patch-Imakefile new file mode 100644 index 000000000000..926c9ba08eaa --- /dev/null +++ b/news/knews/files/patch-Imakefile @@ -0,0 +1,12 @@ +--- src/Imakefile.orig 1998-11-21 16:31:37.000000000 +0100 ++++ src/Imakefile 2012-05-06 18:07:58.000000000 +0200 +@@ -35,7 +35,8 @@ + COMPFACE_LIB = + #endif + +-INCLUDES = -I../Widgets $(REGEXP_INCLUDES) $(KNEWS_INCLUDES) ++INCLUDES = -I../Widgets $(REGEXP_INCLUDES) $(KNEWS_INCLUDES) -I${LOCALBASE}/include/libpng15 ++ + + LOCAL_LIBRARIES = \ + -L../Widgets -lWidgets $(REGEXP_LIB) $(JPEG_LIB) $(PNG_LIB) \ diff --git a/news/knews/files/patch-png.c b/news/knews/files/patch-png.c index 999e7c7e5007..22eed8a7c1c3 100644 --- a/news/knews/files/patch-png.c +++ b/news/knews/files/patch-png.c @@ -1,6 +1,14 @@ --- src/png.c.orig 1998-11-21 15:55:13.000000000 +0100 -+++ src/png.c 2010-09-15 07:51:20.000000000 +0200 -@@ -76,10 +76,16 @@ ++++ src/png.c 2012-05-06 13:39:28.000000000 +0200 +@@ -20,6 +20,7 @@ + #else + + #include <png.h> ++#include <pngpriv.h> + #include <setjmp.h> + + static unsigned int p_cmap_inited = False; +@@ -76,10 +77,16 @@ return fp; } @@ -19,7 +27,7 @@ Pixmap pixmap; FILE *volatile vol_fp = NULL; void *volatile vol_pic = NULL; -@@ -92,13 +98,21 @@ +@@ -92,13 +99,21 @@ init_png_cmap(); @@ -46,7 +54,7 @@ ArtTextAddLine(main_widgets.text, "[knews: png error.]", ascii_font->body_font, global.alert_pixel); else { -@@ -108,58 +122,55 @@ +@@ -108,58 +123,55 @@ unsigned int per_line = 0; unsigned int i, j, pass; @@ -117,7 +125,7 @@ vol_pn = pn; } else { - png_set_dither(&p_str, p_cmap, cmap_size, -+ png_set_dither(png_ptr, p_cmap, cmap_size, ++ png_set_quantize(png_ptr, p_cmap, cmap_size, cmap_size, NULL, True); } @@ -128,7 +136,7 @@ vol_pic = pic = (unsigned char *)XtMalloc(h * per_line); -@@ -167,14 +178,14 @@ +@@ -167,14 +179,14 @@ for (i = 0 ; i < pass ; i++) { row = pic; for (j = 0 ; j < h ; j++) { @@ -145,7 +153,7 @@ } if (!vol_did) -@@ -204,7 +215,7 @@ +@@ -204,7 +216,7 @@ } } |