diff options
author | hubertf <hubertf@pkgsrc.org> | 1997-12-29 02:51:19 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 1997-12-29 02:51:19 +0000 |
commit | 41804a095eba7eb08babd134b9004f20ff2f9e98 (patch) | |
tree | 8281a3d5a458c1dbb0c28de48a2e1266314584be /graphics/giflib | |
parent | 32d8b9ca5c67a29594869a9ec0b5d335a2f5a4d4 (diff) | |
download | pkgsrc-41804a095eba7eb08babd134b9004f20ff2f9e98.tar.gz |
Tools and library routines for working with GIF images.
Taken from FreeBSD.
Diffstat (limited to 'graphics/giflib')
-rw-r--r-- | graphics/giflib/Makefile | 22 | ||||
-rw-r--r-- | graphics/giflib/files/md5 | 1 | ||||
-rw-r--r-- | graphics/giflib/patches/patch-aa | 61 | ||||
-rw-r--r-- | graphics/giflib/patches/patch-ab | 36 | ||||
-rw-r--r-- | graphics/giflib/pkg/COMMENT | 1 | ||||
-rw-r--r-- | graphics/giflib/pkg/DESCR | 12 | ||||
-rw-r--r-- | graphics/giflib/pkg/PLIST | 75 |
7 files changed, 208 insertions, 0 deletions
diff --git a/graphics/giflib/Makefile b/graphics/giflib/Makefile new file mode 100644 index 00000000000..4fa3e807d49 --- /dev/null +++ b/graphics/giflib/Makefile @@ -0,0 +1,22 @@ +# New ports collection makefile for: giflib +# Version required: 3.0 +# Date created: 03 May 1997 +# Whom: Thomas Gellekum <tg@FreeBSD.ORG> +# +# $Id: Makefile,v 1.1.1.1 1997/12/29 02:51:19 hubertf Exp $ +# + +DISTNAME= giflib-3.0 +CATEGORIES= graphics +MASTER_SITES= http://www.ccil.org/~esr/giflib/ + +MAINTAINER= tg@FreeBSD.ORG + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${PREFIX}/share/doc/giflib + @${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/giflib +.endif + @${LDCONFIG} -m ${PREFIX}/lib + +.include <bsd.port.mk> diff --git a/graphics/giflib/files/md5 b/graphics/giflib/files/md5 new file mode 100644 index 00000000000..3a98d201a1e --- /dev/null +++ b/graphics/giflib/files/md5 @@ -0,0 +1 @@ +MD5 (giflib-3.0.tar.gz) = d8fb92324901ec8ae4d8da223875669b diff --git a/graphics/giflib/patches/patch-aa b/graphics/giflib/patches/patch-aa new file mode 100644 index 00000000000..c39f47fd372 --- /dev/null +++ b/graphics/giflib/patches/patch-aa @@ -0,0 +1,61 @@ +--- lib/Makefile.orig Thu Jun 26 20:07:56 1997 ++++ lib/Makefile Wed Sep 24 08:51:35 1997 +@@ -11,9 +11,10 @@ + + # + # Where all the include files are: +-INCS = -I. ++INCS = -I. -I${X11BASE}/include + +-LIBDIR = /usr/lib ++INCDIR = ${PREFIX}/include/giflib ++LIBDIR = ${PREFIX}/lib + + # + # What devices we should be able to grab into gif images. Note that if +@@ -63,14 +64,22 @@ + 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 + ++SOBJS = dev2gif.so egif_lib.so dgif_lib.so gifalloc.so gif_font.so \ ++ gif_hash.so gif_err.so quantize.so qprintf.so getarg.so ++ ++.SUFFIXES: .o .so ++ + .c.o: +- $(CC) $(INCS) $(DEVS) $(CFLAGS) $< ++ $(CC) -c $(INCS) $(DEVS) $(CFLAGS) $< ++ ++.c.so: ++ $(CC) -c $(INCS) $(DEVS) $(CFLAGS) -fpic -DPIC -o $@ $< + + all: static shared + +@@ -82,9 +91,9 @@ + ar rcv libgif.a $(OBJS) + -ranlib libgif.a + +-$(SHLIB): $(OBJS) ++$(SHLIB): $(SOBJS) + rm -f libgif.so.$(V) +- gcc -shared -o $(SHLIB) $(OBJS) ++ ld -Bshareable -o $(SHLIB) $(SOBJS) + + dev2gif.o: gif_lib.h + egif_lib.o: gif_lib.h gif_hash.h +@@ -99,6 +108,8 @@ + + install-lib: libgif.a + cp libgif.a libgif.so.$(V) $(LIBDIR) ++ mkdir -p $(INCDIR) ++ cp *.h $(INCDIR) + + uninstall-lib: shared static + rm -f $(LIBDIR)/libgif.a $(LIBDIR)/$(SHLIB) diff --git a/graphics/giflib/patches/patch-ab b/graphics/giflib/patches/patch-ab new file mode 100644 index 00000000000..443dace96f0 --- /dev/null +++ b/graphics/giflib/patches/patch-ab @@ -0,0 +1,36 @@ +--- util/Makefile.orig Wed Sep 24 05:11:17 1997 ++++ util/Makefile Wed Sep 24 05:13:59 1997 +@@ -22,12 +22,13 @@ + # 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 ++CFLAGS+= -I../lib ++GIF_LIB = -L../lib -lgif + GIF_INC_DEPEND = ../lib/libgif.a ../lib/gif_lib.h ../lib/getarg.h ++LDFLAGS = -s + + # 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,12 +82,12 @@ + + # 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 ++#CFLAGS = $(INC) -fno-builtin -g -W -Wreturn-type -Wcomment + XLIBS = -lX11 +-X_INC_DIR = /usr/X11/include +-X_LIB_DIR = /usr/X11/lib ++X_INC_DIR = ${X11BASE}/include ++X_LIB_DIR = ${X11BASE}/lib + + BINARIES = gif2epsn gif2ps gif2rgb gif2x11 gifasm gifbg \ + gifclip gifclrmp gifcomb giffix gifflip gifhisto \ diff --git a/graphics/giflib/pkg/COMMENT b/graphics/giflib/pkg/COMMENT new file mode 100644 index 00000000000..5fe97745349 --- /dev/null +++ b/graphics/giflib/pkg/COMMENT @@ -0,0 +1 @@ +Tools and library routines for working with GIF images. diff --git a/graphics/giflib/pkg/DESCR b/graphics/giflib/pkg/DESCR new file mode 100644 index 00000000000..f7a03519d10 --- /dev/null +++ b/graphics/giflib/pkg/DESCR @@ -0,0 +1,12 @@ +The tools include programs to clip, rotate, scale, and position +GIF images. It includes an X11 viewer, and code to dump GIFs to an +Epson-compatible printer in graphics mode, and several conversion utilities. + +The library includes program-callable entry points for reading and writing +GIF files, an 8x8 utility font for embedding text in GIFs, and an error +handler. GIF manipulation can be done at a relatively low level by +sequential I/O (which automatically does/undoes image compression) or at +a higher level by slurping an entire GIF into allocated core. + +See /usr/local/share/doc/giflib directory for more information +on GIFLIB's capabilities. diff --git a/graphics/giflib/pkg/PLIST b/graphics/giflib/pkg/PLIST new file mode 100644 index 00000000000..766011e4197 --- /dev/null +++ b/graphics/giflib/pkg/PLIST @@ -0,0 +1,75 @@ +bin/gif2epsn +bin/gif2ps +bin/gif2rgb +bin/gif2x11 +bin/gifasm +bin/gifbg +bin/gifclip +bin/gifclrmp +bin/gifcomb +bin/giffix +bin/gifflip +bin/gifhisto +bin/gifinter +bin/gifinto +bin/gifovly +bin/gifpos +bin/gifrotat +bin/gifrsize +bin/giftext +bin/gifwedge +bin/raw2gif +bin/rgb2gif +bin/text2gif +bin/gifspnge +bin/giffiltr +bin/icon2gif +bin/gifcolor +bin/gifcompose +bin/gifburst +include/giflib/getarg.h +include/giflib/gif_hash.h +include/giflib/gif_lib.h +lib/libgif.a +lib/libgif.so.3.0 +share/doc/giflib/gif2bgi.html +share/doc/giflib/gif2epsn.html +share/doc/giflib/gif2herc.html +share/doc/giflib/gif2iris.html +share/doc/giflib/gif2ps.html +share/doc/giflib/gif2rgb.html +share/doc/giflib/gif2rle.html +share/doc/giflib/gif2x11.html +share/doc/giflib/gif89.txt +share/doc/giflib/gif_lib.html +share/doc/giflib/gifasm.html +share/doc/giflib/gifbg.html +share/doc/giflib/gifburst.html +share/doc/giflib/gifclip.html +share/doc/giflib/gifclrmp.html +share/doc/giflib/gifcolor.html +share/doc/giflib/gifcomb.html +share/doc/giflib/gifcompose.html +share/doc/giflib/giffiltr.html +share/doc/giflib/giffix.html +share/doc/giflib/gifflip.html +share/doc/giflib/gifhisto.html +share/doc/giflib/gifinter.html +share/doc/giflib/gifinto.html +share/doc/giflib/gifovly.html +share/doc/giflib/gifpos.html +share/doc/giflib/gifrotat.html +share/doc/giflib/gifrsize.html +share/doc/giflib/gifspnge.html +share/doc/giflib/giftext.html +share/doc/giflib/gifwedge.html +share/doc/giflib/icon2gif.html +share/doc/giflib/index.html +share/doc/giflib/liberror.html +share/doc/giflib/lzgif.txt +share/doc/giflib/raw2gif.html +share/doc/giflib/rgb2gif.html +share/doc/giflib/rle2gif.html +share/doc/giflib/text2gif.html +@dirrm include/giflib +@dirrm share/doc/giflib |