diff options
author | fredb <fredb@pkgsrc.org> | 2003-12-22 04:46:15 +0000 |
---|---|---|
committer | fredb <fredb@pkgsrc.org> | 2003-12-22 04:46:15 +0000 |
commit | 28e25f69d6e9c0af5dfb9d4e6aa3689aa65f3ed6 (patch) | |
tree | 97c312ccaa0214735191d9d8ad3a24a95abdd45c /graphics/xli/patches | |
parent | dc35fb4ecaa8f8228f57f33d458d25f47e4ba73b (diff) | |
download | pkgsrc-28e25f69d6e9c0af5dfb9d4e6aa3689aa65f3ed6.tar.gz |
Update xli to 1.17.0. Still small and fast. Now uses the standard jpeg
library to support more image formats, and adds support for MIT shared
memory where available, for even more speed. "xli" is now maintained
by Smarasderagd, whose credits include the former png patch for xli,
and the png support for the chimera browser.
Changes from 1.16 (from the "README"):
Converted source code to ANSI C prototypes.
Removed MSDOS support (Sorry! Anyone want to add Win32 support?)
Added PNG file format loader.
Added support for MIT shared memory extension.
Rewrote JPEG file format loader to use the IJG library, to take
advantage of performance improvements and support progressive
scan JPEGs.
Added the -delete, -iscale, -focus, and -cache options.
Added interactive image fast scaling with the '<', '>' and '=' keys.
Added TODO file. Feel free to do anything on the list, or offer
your own fixes and enhancements.
Diffstat (limited to 'graphics/xli/patches')
-rw-r--r-- | graphics/xli/patches/patch-aa | 25 | ||||
-rw-r--r-- | graphics/xli/patches/patch-ab | 35 |
2 files changed, 14 insertions, 46 deletions
diff --git a/graphics/xli/patches/patch-aa b/graphics/xli/patches/patch-aa index cae708971d4..cab4dcaf7ba 100644 --- a/graphics/xli/patches/patch-aa +++ b/graphics/xli/patches/patch-aa @@ -1,17 +1,20 @@ -$NetBSD: patch-aa,v 1.7 2001/09/12 06:17:14 jlam Exp $ +$NetBSD: patch-aa,v 1.8 2003/12/22 04:46:15 fredb Exp $ ---- Imakefile.orig Wed Sep 12 02:11:53 2001 +--- Imakefile.orig 2000-02-09 03:23:32.000000000 -0600 +++ Imakefile -@@ -10,10 +10,10 @@ +@@ -12,11 +12,11 @@ CCOPTIONS = -Aa -D_HPUX_SOURCE #endif -- INCLUDES = -I../zlib -I../libpng -+ INCLUDES = -I${BUILDLINK_DIR}/include - SYSPATHFILE = $(XAPPLOADDIR)/Xloadimage - DEPLIBS = $(DEPXLIB) --LOCAL_LIBRARIES = $(XLIB) -L../zlib -L../libpng -lpng -lz -+LOCAL_LIBRARIES = $(XLIB) -L${BUILDLINK_DIR}/lib -Wl,-R${LOCALBASE}/lib -lpng -lz - SYS_LIBRARIES = -lm - DEFINES = -DHAVE_GUNZIP +-JPEG_INCLUDES = +-JPEG_LDFLAGS = ++JPEG_INCLUDES = -I${BUILDLINK_DIR}/include ++JPEG_LDFLAGS = -L${BUILDLINK_DIR}/lib -Wl,-R${LOCALBASE}/lib +-PNG_INCLUDES = +-PNG_LDFLAGS = ++PNG_INCLUDES = -I${BUILDLINK_DIR}/include ++PNG_LDFLAGS = -L${BUILDLINK_DIR}/lib -Wl,-R${LOCALBASE}/lib + + SYSPATHFILE = $(XAPPLOADDIR)/Xli + DEPLIBS = $(DEPXLIB) diff --git a/graphics/xli/patches/patch-ab b/graphics/xli/patches/patch-ab deleted file mode 100644 index f0d82736fdf..00000000000 --- a/graphics/xli/patches/patch-ab +++ /dev/null @@ -1,35 +0,0 @@ -$NetBSD: patch-ab,v 1.1 2002/03/14 05:23:04 fredb Exp $ - ---- png.c.orig Fri Apr 19 21:57:13 1996 -+++ png.c -@@ -120,10 +120,17 @@ - return (Image *) 0; - } - -+ /* initialize the structures */ -+ pngp = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); -+ info = png_create_info_struct(pngp); -+ - /* set error handling */ -- if (setjmp(pngp->jmpbuf)) -+ if (setjmp(png_jmpbuf(pngp))) - { -- png_read_destroy(pngp, info, (png_info *)0); -+ if (info) -+ png_destroy_read_struct(&pngp, &info, NULL); -+ else -+ png_destroy_read_struct(&pngp, NULL, NULL); - zclose(zfp); - lfree(pngp); - lfree(info); -@@ -132,10 +139,6 @@ - /* If we get here, we had a problem reading the file */ - return (Image *) 0; - } -- -- /* initialize the structures, info first for error handling */ -- png_info_init(info); -- png_read_init(pngp); - - /* set up the input control */ - png_set_read_fn(pngp, (void *) zfp, xli_png_read_data); |