diff options
author | jlam <jlam@pkgsrc.org> | 1999-10-09 20:31:33 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 1999-10-09 20:31:33 +0000 |
commit | 2503ed322d3714326ef33b5adcd3bdb2aaf84dfe (patch) | |
tree | b8bb0d08fd69014cfb913f2c989d0929316a6ad9 /graphics/giflib/patches | |
parent | d786965c89cce69b9ddb35418bd1b5702b4fe1ef (diff) | |
download | pkgsrc-2503ed322d3714326ef33b5adcd3bdb2aaf84dfe.tar.gz |
Update giflib to 4.1.0. Note that installed headers are in a new location.
Changes from version 3.0:
Version 4.1.0
============
* Several minor memory leaks in error conditions have been plugged.
* New Function EGifOpen(void *userData, OutputFunc writeFunc) allows user
specified gif writing functions.
* Old copyright notices in a few source files have been updated. All library
copyrights should now reflect the copyright notice in the COPYING file.
Version 4.0.0 -- giflib
=======================
This version of the giflib library merges Eric Raymond's giflib-3.0 release
with the libungif-4.0 release to give people a binary compatible choice
between the two libraries and gives me the chance to add bugfixes to giflib
that have been incorporated in libungif.
PLEASE READ THE FILE PATENT_PROBLEMS BEFORE USING THIS LIBRARY!
Version 4.0.0
=============
Major fixes have been made to the code that handles Extensions.
Unfortunately, this causes binary incompatibility with giflib-3.0 and
libungif-3.x. However, the API is still intact. I am, however, deprecating
the use of saveImage[x].Function. Use
saveImage[x].ExtensionBlocks[y].Function instead.
Version 3.1.1
=============
The following bugs which caused SegFaults have been fixed:
* When reading gif files with extensions, DGifSlurp would violate memory.
* When closing a gif that had a local colormap, DGifCloseFile would attempt
to free the colormap twice.
* Fix a potential memory leak in DGifSlurp.
The following enhancements have been made:
* New function DGifOpen to allow specifying a user definable gif reading
function.
Version 3.1.0
=============
* Add a new function:
GifFileType *DGifOpen(void * userData, InputFunc readFunc)
to read the gif image from a user defined input function.
* A few bugfixes.
Version 3.0
===========
Changes from Eric Raymond's libgif:
* A new gif encoder that makes uncompressed gifs rather than standard,
LZW-compressed gifs. This is actually the major motivating factor behind
libungif; to provide third-party distributors a means to provide a gif
library without the patented LZW encoder.
* A new configure script to make compilation of the library on multiple
platforms easier. The package should now build shared libraries on all
platforms supported by GNU libtool.
* Removed the getarg functions from libgif. These were not part of the
public API and only used by the tools in the utils directory so I separated
them from the rest of the library.
* Fixed a few bugs in the tools in the utils directory.
Diffstat (limited to 'graphics/giflib/patches')
-rw-r--r-- | graphics/giflib/patches/patch-aa | 89 | ||||
-rw-r--r-- | graphics/giflib/patches/patch-ab | 72 | ||||
-rw-r--r-- | graphics/giflib/patches/patch-ac | 22 | ||||
-rw-r--r-- | graphics/giflib/patches/patch-ad | 13 | ||||
-rw-r--r-- | graphics/giflib/patches/patch-ae | 47 |
5 files changed, 31 insertions, 212 deletions
diff --git a/graphics/giflib/patches/patch-aa b/graphics/giflib/patches/patch-aa index 0a972fdcf89..07d48071661 100644 --- a/graphics/giflib/patches/patch-aa +++ b/graphics/giflib/patches/patch-aa @@ -1,71 +1,20 @@ -$NetBSD: patch-aa,v 1.5 1998/11/12 23:36:24 frueauf Exp $ +$NetBSD: patch-aa,v 1.6 1999/10/09 20:31:34 jlam Exp $ ---- lib/Makefile.orig Thu Jun 26 14:07:56 1997 -+++ lib/Makefile Mon Sep 14 20:23:58 1998 -@@ -13,7 +13,8 @@ - # Where all the include files are: - INCS = -I. - --LIBDIR = /usr/lib -+INCDIR = ${PREFIX}/include/giflib -+LIBDIR = ${PREFIX}/lib - - # - # What devices we should be able to grab into gif images. Note that if -@@ -22,7 +23,7 @@ - # 1. EGA, VGA, SVGA (800x600), Hercules - all on IBM PC only. - # 2. SGI 4D Irix using gl library (Add -D__SGI_GL__). - # 3. X11 using libX.a (Add -D__X11__) --DEVS = -D__X11__ -+#DEVS = -D__X11__ - - # - # These are the flags for gcc, in BSD4.3 or Sun O.S. 4.0.3 -@@ -63,28 +64,20 @@ - CC = gcc - # - #CFLAGS = -fno-builtin -O -c -W -Wreturn-type -Wcomment --CFLAGS = -fno-builtin -g -c -W -Wreturn-type -Wcomment -+#CFLAGS = -fno-builtin -g -c -W -Wreturn-type -Wcomment - - - OBJS = dev2gif.o egif_lib.o dgif_lib.o gifalloc.o gif_font.o gif_hash.o \ - gif_err.o quantize.o qprintf.o getarg.o - - .c.o: -- $(CC) $(INCS) $(DEVS) $(CFLAGS) $< -+ ${LIBTOOL} --mode=compile $(CC) -c $(INCS) $(DEVS) $(CFLAGS) $< - --all: static shared -+all static shared: libgif.la - --static: libgif.a --shared: $(SHLIB) -- --libgif.a: $(OBJS) -- rm -f libgif.a -- ar rcv libgif.a $(OBJS) -- -ranlib libgif.a -- --$(SHLIB): $(OBJS) -- rm -f libgif.so.$(V) -- gcc -shared -o $(SHLIB) $(OBJS) -+libgif.la: $(OBJS) -+ ${LIBTOOL} --mode=link ${CC} -o $@ ${OBJS:.o=.lo} -rpath ${PREFIX}/lib \ -+ -version-info 3:0 - - dev2gif.o: gif_lib.h - egif_lib.o: gif_lib.h gif_hash.h -@@ -97,8 +90,10 @@ - qprintf.o: gif_lib.h - getarg.o: getarg.h - --install-lib: libgif.a -- cp libgif.a libgif.so.$(V) $(LIBDIR) -+install-lib: libgif.la -+ ${LIBTOOL} --mode=install ${BSD_INSTALL_DATA} libgif.la ${PREFIX}/lib -+ mkdir -p ${INCDIR} -+ ${BSD_INSTALL_DATA} *.h ${INCDIR} - - uninstall-lib: shared static - rm -f $(LIBDIR)/libgif.a $(LIBDIR)/$(SHLIB) +--- ./configure.orig Wed Feb 10 01:35:28 1999 ++++ ./configure Wed Oct 6 00:07:40 1999 +@@ -1191,6 +1191,7 @@ + echo "$ac_t""no" 1>&6 + fi + ++if false; then + # Always use our own libtool. + LIBTOOL='$(SHELL) $(top_builddir)/libtool' + +@@ -1240,6 +1241,7 @@ + # Redirect the config.log output again, so that the ltconfig log is not + # clobbered by the next message. + exec 5>>./config.log ++fi + + # Extract the first word of "gcc", so it can be a program name with args. + set dummy gcc; ac_word=$2 diff --git a/graphics/giflib/patches/patch-ab b/graphics/giflib/patches/patch-ab index 8e04eab6ca4..e158c306e5f 100644 --- a/graphics/giflib/patches/patch-ab +++ b/graphics/giflib/patches/patch-ab @@ -1,61 +1,13 @@ -$NetBSD: patch-ab,v 1.7 1999/09/30 15:21:55 agc Exp $ +$NetBSD: patch-ab,v 1.8 1999/10/09 20:31:34 jlam Exp $ ---- util/Makefile.orig Thu Jun 26 18:22:30 1997 -+++ util/Makefile Thu Sep 30 16:01:59 1999 -@@ -22,12 +22,12 @@ - # X_INC_DIR = /server/sun4/usr/new/lib/X11R4 - - # Declare the include files and libraries for the GIF utils: --INC = -I../lib --GIF_LIB = ../lib/libgif.a --GIF_INC_DEPEND = ../lib/libgif.a ../lib/gif_lib.h ../lib/getarg.h -+CDEFS= -I../lib -+GIF_LIB = ../lib/libgif.la -+GIF_INC_DEPEND = ../lib/libgif.la ../lib/gif_lib.h ../lib/getarg.h - - # Where to copy executables to: --DEST = /usr/bin -+DEST = ${PREFIX}/bin - - # These are the flags for gcc, in BSD4.3 or Sun O.S. 4.0.3 - # -@@ -81,14 +81,14 @@ - - # Linux using XFree86 - # --CC = gcc -+#CC = gcc - #CFLAGS = $(INC) -fno-builtin -O -s -W -Wreturn-type -Wcomment --CFLAGS = $(INC) -fno-builtin -g -W -Wreturn-type -Wcomment --XLIBS = -lX11 -+#CFLAGS = $(INC) -fno-builtin -g -W -Wreturn-type -Wcomment -+#XLIBS = -lX11 - X_INC_DIR = /usr/X11/include - X_LIB_DIR = /usr/X11/lib - --BINARIES = gif2epsn gif2ps gif2rgb gif2x11 gifasm gifbg \ -+BINARIES = gif2epsn gif2ps gif2rgb gifasm gifbg \ - gifclip gifclrmp gifcomb giffix gifflip gifhisto \ - gifinter gifinto gifovly gifpos gifrotat gifrsize giftext \ - gifwedge raw2gif rgb2gif text2gif gifspnge giffiltr \ -@@ -105,7 +105,8 @@ - iris: $(IRIS) - - install-all: -- cp $(BINARIES) $(SCRIPTS) $(DEST) -+ ${LIBTOOL} --mode=install ${BSD_INSTALL_PROGRAM} $(BINARIES) $(DEST) -+ ${BSD_INSTALL_SCRIPT} $(SCRIPTS) $(DEST) - - install-rle: - cp $(RLE) $(DEST) -@@ -113,8 +114,8 @@ - install-iris: - cp $(IRIS) $(DEST) - --.c: -- $(CC) $(CFLAGS) $< $(GIF_LIB) -lm $(LDFLAGS) -o $* -+.c: -+ ${LIBTOOL} --mode=link $(CC) $(CDEFS) ${CFLAGS} $< $(GIF_LIB) -lm $(LDFLAGS) -L$(X_LIB_DIR) $(XLIBS) -o $* - - uninstall-utils: - (cd $(DEST); rm -f $(BINARIES) $(RLE) $(IRIS) $(SCRIPTS)) +--- ./doc/index.html.orig Sun Sep 6 12:07:35 1998 ++++ ./doc/index.html Wed Oct 6 00:08:07 1999 +@@ -65,8 +65,6 @@ + <DD>convert images saved as GIF to 24-bit RGB image(s) + <DT><a href="gif2rle.html">gif2rle</a> + <DD>convert images saved as GIF to RLE (Utah raster toolkit) format +-<DT><a href="gif2x11.html">gif2x11</a> +-<DD>display images saved as GIF files under X window system + <DT><a href="raw2gif.html">raw2gif</a> + <DD>convert raw 8-bit image data into GIF files + <DT><a href="rgb2gif.html">rgb2gif</a> diff --git a/graphics/giflib/patches/patch-ac b/graphics/giflib/patches/patch-ac deleted file mode 100644 index 3be40153726..00000000000 --- a/graphics/giflib/patches/patch-ac +++ /dev/null @@ -1,22 +0,0 @@ -$NetBSD: patch-ac,v 1.2 1998/11/12 23:36:24 frueauf Exp $ - ---- doc/index.html.orig Mon Sep 14 20:18:13 1998 -+++ doc/index.html Mon Sep 14 20:18:25 1998 -@@ -25,7 +25,7 @@ - maintainers for general distribution.</P> - - The util directory includes programs to clip, rotate, scale, and --position GIF images. It includes an X11 viewer, code to dump GIFs to -+position GIF images. It includes code to dump GIFs to - an Epson-compatible printer in graphics mode, and many conversion - utilities. These are no replacement for an interactive graphics - editor, but they can be very useful for scripted image generation or -@@ -65,8 +65,6 @@ - <DD>convert images saved as GIF to 24-bit RGB image(s) - <DT><a href="gif2rle.html">gif2rle</a> - <DD>convert images saved as GIF to RLE (Utah raster toolkit) format --<DT><a href="gif2x11.html">gif2x11</a> --<DD>display images saved as GIF files under X window system - <DT><a href="raw2gif.html">raw2gif</a> - <DD>convert raw 8-bit image data into GIF files - <DT><a href="rgb2gif.html">rgb2gif</a> diff --git a/graphics/giflib/patches/patch-ad b/graphics/giflib/patches/patch-ad deleted file mode 100644 index 69d427ebdda..00000000000 --- a/graphics/giflib/patches/patch-ad +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-ad,v 1.2 1998/11/12 23:36:24 frueauf Exp $ - ---- lib/gif_lib.h.orig Mon Sep 14 20:28:38 1998 -+++ lib/gif_lib.h Mon Sep 14 20:28:46 1998 -@@ -15,6 +15,8 @@ - #ifndef GIF_LIB_H - #define GIF_LIB_H - -+#include <stdlib.h> -+ - #define GIF_LIB_VERSION " Version 2.0, " - - #define GIF_ERROR 0 diff --git a/graphics/giflib/patches/patch-ae b/graphics/giflib/patches/patch-ae deleted file mode 100644 index 966191e838d..00000000000 --- a/graphics/giflib/patches/patch-ae +++ /dev/null @@ -1,47 +0,0 @@ -$NetBSD: patch-ae,v 1.1 1999/09/30 15:21:55 agc Exp $ - -Use ${MAKE}, not make - ---- Makefile 1999/09/30 15:10:53 1.1 -+++ Makefile 1999/09/30 15:11:26 -@@ -5,20 +5,20 @@ - VERSION=3.0 - - all: -- cd lib; make static shared -- cd util; make all -+ cd lib; ${MAKE} static shared -+ cd util; ${MAKE} all - - install: -- cd lib; make install-lib -- cd util; make install-all -+ cd lib; ${MAKE} install-lib -+ cd util; ${MAKE} install-all - - uninstall: -- cd lib; make uninstall-lib -- cd util; make uninstall-all -+ cd lib; ${MAKE} uninstall-lib -+ cd util; ${MAKE} uninstall-all - - clean: -- cd lib; make clean -- cd util; make clean -+ cd lib; ${MAKE} clean -+ cd util; ${MAKE} clean - rm -f giflib-$(VERSION)-1.i386.rpm giflib-$(VERSION)-1.src.rpm \ - giflib-$(VERSION).tar.gz core giflib.lsm - -@@ -28,9 +28,9 @@ - gzip -f giflib-$(VERSION).tar - - dist: Makefile -- make giflib-$(VERSION).tar.gz -+ ${MAKE} giflib-$(VERSION).tar.gz - lsmgen.sh $(VERSION) `wc -c giflib-$(VERSION).tar.gz` >giflib.lsm -- make giflib-$(VERSION).tar.gz -+ ${MAKE} giflib-$(VERSION).tar.gz - ls -l giflib-$(VERSION).tar.gz - @echo "Don't forget to build RPMs from root!" - |