diff options
author | agc <agc@pkgsrc.org> | 1997-10-06 13:29:36 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 1997-10-06 13:29:36 +0000 |
commit | 5c3b7292c32007dc9dc952c1543437a1f50d2c9e (patch) | |
tree | 5058c5ead6fe4cc247b8c2e431718236fdc520d6 /graphics/tiff | |
parent | 01f487176f1149fa77df1283bceb51ffcd049e90 (diff) | |
download | pkgsrc-5c3b7292c32007dc9dc952c1543437a1f50d2c9e.tar.gz |
Initial import of FreeBSD graphics ports into the NetBSD packages
system.
Diffstat (limited to 'graphics/tiff')
-rw-r--r-- | graphics/tiff/Makefile | 41 | ||||
-rw-r--r-- | graphics/tiff/files/md5 | 1 | ||||
-rw-r--r-- | graphics/tiff/patches/patch-aa | 98 | ||||
-rw-r--r-- | graphics/tiff/patches/patch-ab | 62 | ||||
-rw-r--r-- | graphics/tiff/patches/patch-ac | 52 | ||||
-rw-r--r-- | graphics/tiff/patches/patch-ad | 64 | ||||
-rw-r--r-- | graphics/tiff/patches/patch-ae | 18 | ||||
-rw-r--r-- | graphics/tiff/patches/patch-af | 12 | ||||
-rw-r--r-- | graphics/tiff/patches/patch-ag | 28 | ||||
-rw-r--r-- | graphics/tiff/pkg/COMMENT | 1 | ||||
-rw-r--r-- | graphics/tiff/pkg/DESCR | 10 | ||||
-rw-r--r-- | graphics/tiff/pkg/PLIST | 71 |
12 files changed, 458 insertions, 0 deletions
diff --git a/graphics/tiff/Makefile b/graphics/tiff/Makefile new file mode 100644 index 00000000000..8e2244dd429 --- /dev/null +++ b/graphics/tiff/Makefile @@ -0,0 +1,41 @@ +# New ports collection makefile for: tiff +# Version required: 3.3 beta 021 +# Date created: 14 November 1994 +# Whom: torstenb +# +# FreeBSD Id: Makefile,v 1.11 1997/08/29 11:40:45 tg Exp +# + +DISTNAME= v3.3beta021.src +PKGNAME= tiff-3.3 +CATEGORIES= graphics +MASTER_SITES= ftp://ftp.isri.unlv.edu/pub/mirror/tiff/ \ + ftp://ftp.coli.uni-sb.de/pub/graphics/ \ + ftp://ftp.funet.fi/pub/graphics/packages/tiff/ +# Original master site not keeps old versions +# MASTER_SITES= ftp://ftp.sgi.com/graphics/tiff/ + +NO_WRKSUBDIR= yes +MAN1= fax2tiff.1 gif2tiff.1 pal2rgb.1 ppm2tiff.1 ras2tiff.1 \ + rgb2ycbcr.1 sgi2tiff.1 thumbnail.1 tiff2bw.1 tiff2ps.1 \ + tiffcmp.1 tiffcp.1 tiffdither.1 tiffdump.1 tiffgt.1 \ + tiffinfo.1 tiffmedian.1 tiffsplit.1 tiffsv.1 +MAN3= TIFFClose.3 TIFFError.3 TIFFFlush.3 TIFFGetField.3 \ + TIFFOpen.3 TIFFPrintDirectory.3 TIFFReadDirectory.3 \ + TIFFReadEncodedStrip.3 TIFFReadEncodedTile.3 \ + TIFFReadRGBAImage.3 TIFFReadRawStrip.3 TIFFReadRawTile.3 \ + TIFFReadScanline.3 TIFFReadTile.3 TIFFSetDirectory.3 \ + TIFFSetField.3 TIFFWarning.3 TIFFWriteDirectory.3 \ + TIFFWriteEncodedStrip.3 TIFFWriteEncodedTile.3 \ + TIFFWriteRawStrip.3 TIFFWriteRawTile.3 TIFFWriteScanline.3 \ + TIFFintro.3 TIFFquery.3 TIFFsize.3 TIFFstrip.3 \ + TIFFswab.3 TIFFtile.3 + +pre-configure: + @(cd ${WRKSRC}/libtiff ; ln -s Makefile.gcc Makefile) + @(cd ${WRKSRC}/tools ; ln -s Makefile.sun Makefile) + +post-install: + ${LDCONFIG} -m ${PREFIX}/lib + +.include <bsd.port.mk> diff --git a/graphics/tiff/files/md5 b/graphics/tiff/files/md5 new file mode 100644 index 00000000000..53d19b18557 --- /dev/null +++ b/graphics/tiff/files/md5 @@ -0,0 +1 @@ +MD5 (v3.3beta021.src.tar.gz) = 4c54a18c7bfadbc4fcce98a38b779087 diff --git a/graphics/tiff/patches/patch-aa b/graphics/tiff/patches/patch-aa new file mode 100644 index 00000000000..a3223590372 --- /dev/null +++ b/graphics/tiff/patches/patch-aa @@ -0,0 +1,98 @@ +*** libtiff/Makefile.gcc.orig Fri Sep 30 03:01:24 1994 +--- libtiff/Makefile.gcc Wed Oct 4 04:28:20 1995 +*************** +*** 26,43 **** + # + # This Makefile is for use with gcc (2.2.2 or later) + # +! DESTDIR=. + # + AR= ar + RANLIB= ranlib + NULL= + + IPATH= -I. + CONF_LIBRARY=\ + ${NULL} +! CC= gcc +! COPTS= -ansi -O +! CFLAGS= ${COPTS} ${IPATH} ${CONF_LIBRARY} + # + INCS= tiff.h tiffio.h + SRCS= tif_fax3.c \ +--- 26,42 ---- + # + # This Makefile is for use with gcc (2.2.2 or later) + # +! DESTDIR=${PREFIX} + # + AR= ar + RANLIB= ranlib ++ INSTALL= install -o bin -g bin + NULL= + + IPATH= -I. + CONF_LIBRARY=\ + ${NULL} +! CFLAGS+= ${COPTS} ${IPATH} ${CONF_LIBRARY} + # + INCS= tiff.h tiffio.h + SRCS= tif_fax3.c \ +*************** +*** 100,113 **** + tif_warning.o \ + tif_write.o \ + ${NULL} +! ALL= libtiff.a + + all: ${ALL} + +! ${ALL}: ${OBJS} + ${AR} rc libtiff.a $? + ${RANLIB} libtiff.a + + ${OBJS}: tiffio.h tiff.h tiffcomp.h tiffiop.h tiffconf.h + tif_fax3.o: tif_fax3.c g3states.h t4.h tif_fax3.h + +--- 99,120 ---- + tif_warning.o \ + tif_write.o \ + ${NULL} +! ALL= libtiff.a libtiff.so.3.3 + + all: ${ALL} + +! libtiff.a: ${OBJS} + ${AR} rc libtiff.a $? + ${RANLIB} libtiff.a + ++ .SUFFIXES: .c .o .so ++ ++ .c.so: ++ ${CC} -fpic -DPIC ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET} ++ ++ libtiff.so.3.3: ${OBJS:S/o$/so/g} ++ ld -Bshareable -o libtiff.so.3.3 ${OBJS:S/o$/so/g} ++ + ${OBJS}: tiffio.h tiff.h tiffcomp.h tiffiop.h tiffconf.h + tif_fax3.o: tif_fax3.c g3states.h t4.h tif_fax3.h + +*************** +*** 118,125 **** + install: all installh + -for i in ${ALL}; do \ + ${INSTALL} -c -m 644 $$i ${DESTDIR}/lib/$$i; \ +- ${RANLIB} ${DESTDIR}/lib/$$i; \ + done + + installh: ${INCS} + -for i in ${INCS}; do \ +--- 125,132 ---- + install: all installh + -for i in ${ALL}; do \ + ${INSTALL} -c -m 644 $$i ${DESTDIR}/lib/$$i; \ + done ++ ranlib ${DESTDIR}/lib/libtiff.a + + installh: ${INCS} + -for i in ${INCS}; do \ diff --git a/graphics/tiff/patches/patch-ab b/graphics/tiff/patches/patch-ab new file mode 100644 index 00000000000..5943adcb23c --- /dev/null +++ b/graphics/tiff/patches/patch-ab @@ -0,0 +1,62 @@ +*** tools/Makefile.sun.orig Fri Sep 30 03:01:48 1994 +--- tools/Makefile.sun Wed Oct 4 04:45:40 1995 +*************** +*** 31,37 **** + # simply null this out and you'll get whatever is in your + # libc (or similar). + # +! GETOPT= getopt.o + # + # Library-wide configuration defines: + # Note that if you change the library-wide configuration, you'll +--- 31,37 ---- + # simply null this out and you'll get whatever is in your + # libc (or similar). + # +! # GETOPT= getopt.o + # + # Library-wide configuration defines: + # Note that if you change the library-wide configuration, you'll +*************** +*** 40,49 **** + CONF_LIBRARY=\ + ${NULL} + COPTS= +! CFLAGS= -g ${COPTS} ${IPATH} + # + LIBTIFF=../libtiff/libtiff.a +! LIBS= ${LIBTIFF} + MACHALL=ras2tiff + OBJS= \ + fax2tiff.o \ +--- 40,49 ---- + CONF_LIBRARY=\ + ${NULL} + COPTS= +! CFLAGS+= ${COPTS} ${IPATH} -D_HAVE_PARAM_H + # + LIBTIFF=../libtiff/libtiff.a +! LIBS= -L../libtiff -ltiff + MACHALL=ras2tiff + OBJS= \ + fax2tiff.o \ +*************** +*** 69,74 **** +--- 69,75 ---- + pal2rgb \ + ppm2tiff \ + rgb2ycbcr \ ++ thumbnail \ + tiff2bw \ + tiff2ps \ + tiffcmp \ +*************** +*** 127,132 **** +--- 128,134 ---- + ${CC} -o thumbnail ${CFLAGS} thumbnail.c ${LIBS} -lm + + install: all ++ install -o bin -g bin -c -s ${ALL} ${PREFIX}/bin + + clean: + rm -f ${ALL} ${OBJS} core a.out ycbcr diff --git a/graphics/tiff/patches/patch-ac b/graphics/tiff/patches/patch-ac new file mode 100644 index 00000000000..ba2cfcc75e8 --- /dev/null +++ b/graphics/tiff/patches/patch-ac @@ -0,0 +1,52 @@ +*** contrib/fax2ps/Makefile.orig Tue Jul 26 21:55:07 1994 +--- contrib/fax2ps/Makefile Wed Oct 4 04:55:32 1995 +*************** +*** 25,42 **** + TIFF= ../../libtiff + TOOLS= ../../tools + +! BIN= /usr/local/bin + NULL= +! OBJS= fax2ps.o faxdecode.o getopt.o + CONF_LIBRARY=\ + ${NULL} +! COPTS= -O +! CFLAGS= ${COPTS} -ansi ${CONF_LIBRARY} -I${TIFF} +! LIBS= ${TIFF}/libtiff.a + + all: fax2ps + +! fax2ps: ${OBJS} ${LIBS} + ${CC} -o $@ ${OBJS} ${LDFLAGS} ${LIBS} -lm + + ${OBJS}: defs.h ${TIFF}/tiffio.h +--- 25,42 ---- + TIFF= ../../libtiff + TOOLS= ../../tools + +! BIN= ${PREFIX}/bin/ + NULL= +! OBJS= fax2ps.o faxdecode.o + CONF_LIBRARY=\ + ${NULL} +! CFLAGS+= ${COPTS} ${CONF_LIBRARY} -I${TIFF} +! LIBTIFF= ${TIFF}/libtiff.a +! LIBS= -L ../../libtiff -ltiff + + all: fax2ps + +! fax2ps: ${OBJS} ${LIBTIFF} + ${CC} -o $@ ${OBJS} ${LDFLAGS} ${LIBS} -lm + + ${OBJS}: defs.h ${TIFF}/tiffio.h +*************** +*** 48,51 **** + rm -f ${OBJS} fax2ps a.out core errs + + install: all +! /etc/install -f ${BIN} -m 755 fax2ps +--- 48,51 ---- + rm -f ${OBJS} fax2ps a.out core errs + + install: all +! install -o bin -g bin -c -s -m 755 fax2ps ${BIN} diff --git a/graphics/tiff/patches/patch-ad b/graphics/tiff/patches/patch-ad new file mode 100644 index 00000000000..001b2b3e4d1 --- /dev/null +++ b/graphics/tiff/patches/patch-ad @@ -0,0 +1,64 @@ +*** Makefile.orig Fri Sep 30 01:01:19 1994 +--- Makefile Mon Nov 14 22:20:02 1994 +*************** +*** 209,218 **** + ${NULL} + + all default: +! -cd libtiff; ${MAKE} +! -cd tools; ${MAKE} +! -cd contrib/fax2ps; ${MAKE} +! -cd contrib/dbs; ${MAKE} + + clean: + -cd libtiff; ${MAKE} clean; rm -f Makefile +--- 209,257 ---- + ${NULL} + + all default: +! cd libtiff; ${MAKE} PREFIX=${PREFIX} +! cd tools; ${MAKE} PREFIX=${PREFIX} +! cd contrib/fax2ps; ${MAKE} PREFIX=${PREFIX} +! #-cd contrib/dbs; ${MAKE} +! +! install: +! cd libtiff; ${MAKE} PREFIX=${PREFIX} install +! cd tools; ${MAKE} PREFIX=${PREFIX} install +! cd contrib/fax2ps; ${MAKE} PREFIX=${PREFIX} install +! (cd man/man1 ; install -c fax2tiff.1 gif2tiff.1 pal2rgb.1 ppm2tiff.1 \ +! ras2tiff.1 rgb2ycbcr.1 sgi2tiff.1 thumbnail.1 tiff2bw.1 \ +! tiff2ps.1 tiffcmp.1 tiffcp.1 tiffdither.1 tiffdump.1 tiffgt.1 \ +! tiffinfo.1 tiffmedian.1 tiffsplit.1 tiffsv.1 \ +! ${PREFIX}/man/man1/ ) +! install -c man/man3/TIFFClose.3t ${PREFIX}/man/man3/TIFFClose.3 +! install -c man/man3/TIFFError.3t ${PREFIX}/man/man3/TIFFError.3 +! install -c man/man3/TIFFFlush.3t ${PREFIX}/man/man3/TIFFFlush.3 +! install -c man/man3/TIFFGetField.3t ${PREFIX}/man/man3/TIFFGetField.3 +! install -c man/man3/TIFFOpen.3t ${PREFIX}/man/man3/TIFFOpen.3 +! install -c man/man3/TIFFPrintDirectory.3t ${PREFIX}/man/man3/TIFFPrintDirectory.3 +! install -c man/man3/TIFFReadDirectory.3t ${PREFIX}/man/man3/TIFFReadDirectory.3 +! install -c man/man3/TIFFReadEncodedStrip.3t ${PREFIX}/man/man3/TIFFReadEncodedStrip.3 +! install -c man/man3/TIFFReadEncodedTile.3t ${PREFIX}/man/man3/TIFFReadEncodedTile.3 +! install -c man/man3/TIFFReadRGBAImage.3t ${PREFIX}/man/man3/TIFFReadRGBAImage.3 +! install -c man/man3/TIFFReadRawStrip.3t ${PREFIX}/man/man3/TIFFReadRawStrip.3 +! install -c man/man3/TIFFReadRawTile.3t ${PREFIX}/man/man3/TIFFReadRawTile.3 +! install -c man/man3/TIFFReadScanline.3t ${PREFIX}/man/man3/TIFFReadScanline.3 +! install -c man/man3/TIFFReadTile.3t ${PREFIX}/man/man3/TIFFReadTile.3 +! install -c man/man3/TIFFSetDirectory.3t ${PREFIX}/man/man3/TIFFSetDirectory.3 +! install -c man/man3/TIFFSetField.3t ${PREFIX}/man/man3/TIFFSetField.3 +! install -c man/man3/TIFFWarning.3t ${PREFIX}/man/man3/TIFFWarning.3 +! install -c man/man3/TIFFWriteDirectory.3t ${PREFIX}/man/man3/TIFFWriteDirectory.3 +! install -c man/man3/TIFFWriteEncodedStrip.3t ${PREFIX}/man/man3/TIFFWriteEncodedStrip.3 +! install -c man/man3/TIFFWriteEncodedTile.3t ${PREFIX}/man/man3/TIFFWriteEncodedTile.3 +! install -c man/man3/TIFFWriteRawStrip.3t ${PREFIX}/man/man3/TIFFWriteRawStrip.3 +! install -c man/man3/TIFFWriteRawTile.3t ${PREFIX}/man/man3/TIFFWriteRawTile.3 +! install -c man/man3/TIFFWriteScanline.3t ${PREFIX}/man/man3/TIFFWriteScanline.3 +! install -c man/man3/intro.3t ${PREFIX}/man/man3/TIFFintro.3 +! install -c man/man3/query.3t ${PREFIX}/man/man3/TIFFquery.3 +! install -c man/man3/size.3t ${PREFIX}/man/man3/TIFFsize.3 +! install -c man/man3/strip.3t ${PREFIX}/man/man3/TIFFstrip.3 +! install -c man/man3/swab.3t ${PREFIX}/man/man3/TIFFswab.3 +! install -c man/man3/tile.3t ${PREFIX}/man/man3/TIFFtile.3 + + clean: + -cd libtiff; ${MAKE} clean; rm -f Makefile diff --git a/graphics/tiff/patches/patch-ae b/graphics/tiff/patches/patch-ae new file mode 100644 index 00000000000..ee62e63104e --- /dev/null +++ b/graphics/tiff/patches/patch-ae @@ -0,0 +1,18 @@ +*** tools/tiffcp.c.orig Mon Nov 14 20:03:35 1994 +--- tools/tiffcp.c Mon Nov 14 20:05:38 1994 +*************** +*** 30,36 **** +--- 30,42 ---- + + #include "tiffio.h" + ++ #ifdef _HAVE_PARAM_H ++ #include <sys/param.h> ++ #endif ++ ++ #if (defined(BSD) && (BSD < 199103)) + typedef unsigned char u_char; ++ #endif + + #if defined(VMS) + #define unlink delete diff --git a/graphics/tiff/patches/patch-af b/graphics/tiff/patches/patch-af new file mode 100644 index 00000000000..ad970fcfd10 --- /dev/null +++ b/graphics/tiff/patches/patch-af @@ -0,0 +1,12 @@ +*** libtiff/tiffcomp.h.orig Fri Sep 30 03:01:28 1994 +--- libtiff/tiffcomp.h Wed Oct 4 04:23:03 1995 +*************** +*** 78,83 **** +--- 78,84 ---- + #define L_INCR SEEK_CUR + #define L_XTND SEEK_END + #endif /* defined(SYSV) || defined(VMS) */ ++ #include <unistd.h> + #ifndef L_SET + #define L_SET 0 + #define L_INCR 1 diff --git a/graphics/tiff/patches/patch-ag b/graphics/tiff/patches/patch-ag new file mode 100644 index 00000000000..5eba4b06351 --- /dev/null +++ b/graphics/tiff/patches/patch-ag @@ -0,0 +1,28 @@ +*** tools/thumbnail.c.orig Fri Sep 30 03:01:53 1994 +--- tools/thumbnail.c Wed Oct 4 04:48:00 1995 +*************** +*** 25,34 **** + */ + + #include <stdio.h> +- #include <getopt.h> + #include <stdlib.h> + #include <string.h> + #include <sys/param.h> + #include <math.h> + + #include "tiffio.h" +--- 25,37 ---- + */ + + #include <stdio.h> + #include <stdlib.h> + #include <string.h> + #include <sys/param.h> ++ #if defined(BSD) && BSD >= 199506 ++ /* Lite2, need this for getopt() */ ++ #include <unistd.h> ++ #endif + #include <math.h> + + #include "tiffio.h" diff --git a/graphics/tiff/pkg/COMMENT b/graphics/tiff/pkg/COMMENT new file mode 100644 index 00000000000..41abc1de59d --- /dev/null +++ b/graphics/tiff/pkg/COMMENT @@ -0,0 +1 @@ +A library for reading and writing TIFF data files. diff --git a/graphics/tiff/pkg/DESCR b/graphics/tiff/pkg/DESCR new file mode 100644 index 00000000000..96dcab6ac50 --- /dev/null +++ b/graphics/tiff/pkg/DESCR @@ -0,0 +1,10 @@ +This is software provides support for the Tag Image Format (TIFF). +Included is a library, libtiff, for reading and writing TIFF, a +collection of tools for doing simple manipulations of TIFF images, and +documentation on the library and tools. A random assortment of +TIFF-related software contributed by others is also included. + +The library, along with associated tool programs, should handle most of +your needs for reading and writing files that follow the 5.0 or 6.0 +TIFF spec. There is also considerable support for some of the more +esoteric portions of the 6.0 TIFF spec. diff --git a/graphics/tiff/pkg/PLIST b/graphics/tiff/pkg/PLIST new file mode 100644 index 00000000000..676619f8244 --- /dev/null +++ b/graphics/tiff/pkg/PLIST @@ -0,0 +1,71 @@ +bin/fax2tiff +bin/gif2tiff +bin/pal2rgb +bin/ppm2tiff +bin/rgb2ycbcr +bin/thumbnail +bin/ras2tiff +bin/tiff2bw +bin/tiff2ps +bin/tiffcmp +bin/tiffcp +bin/tiffdither +bin/tiffdump +bin/tiffinfo +bin/tiffmedian +bin/tiffsplit +bin/fax2ps +lib/libtiff.a +@exec ranlib %D/%F +lib/libtiff.so.3.3 +@exec /sbin/ldconfig -m %B +include/tiff.h +include/tiffio.h +man/man1/fax2tiff.1.gz +man/man1/gif2tiff.1.gz +man/man1/pal2rgb.1.gz +man/man1/ppm2tiff.1.gz +man/man1/ras2tiff.1.gz +man/man1/rgb2ycbcr.1.gz +man/man1/sgi2tiff.1.gz +man/man1/thumbnail.1.gz +man/man1/tiff2bw.1.gz +man/man1/tiff2ps.1.gz +man/man1/tiffcmp.1.gz +man/man1/tiffcp.1.gz +man/man1/tiffdither.1.gz +man/man1/tiffdump.1.gz +man/man1/tiffgt.1.gz +man/man1/tiffinfo.1.gz +man/man1/tiffmedian.1.gz +man/man1/tiffsplit.1.gz +man/man1/tiffsv.1.gz +man/man3/TIFFClose.3.gz +man/man3/TIFFError.3.gz +man/man3/TIFFFlush.3.gz +man/man3/TIFFGetField.3.gz +man/man3/TIFFOpen.3.gz +man/man3/TIFFPrintDirectory.3.gz +man/man3/TIFFReadDirectory.3.gz +man/man3/TIFFReadEncodedStrip.3.gz +man/man3/TIFFReadEncodedTile.3.gz +man/man3/TIFFReadRGBAImage.3.gz +man/man3/TIFFReadRawStrip.3.gz +man/man3/TIFFReadRawTile.3.gz +man/man3/TIFFReadScanline.3.gz +man/man3/TIFFReadTile.3.gz +man/man3/TIFFSetDirectory.3.gz +man/man3/TIFFSetField.3.gz +man/man3/TIFFWarning.3.gz +man/man3/TIFFWriteDirectory.3.gz +man/man3/TIFFWriteEncodedStrip.3.gz +man/man3/TIFFWriteEncodedTile.3.gz +man/man3/TIFFWriteRawStrip.3.gz +man/man3/TIFFWriteRawTile.3.gz +man/man3/TIFFWriteScanline.3.gz +man/man3/TIFFintro.3.gz +man/man3/TIFFquery.3.gz +man/man3/TIFFsize.3.gz +man/man3/TIFFstrip.3.gz +man/man3/TIFFswab.3.gz +man/man3/TIFFtile.3.gz |