libtiff port.

This commit is contained in:
angelos 1997-12-03 02:37:00 +00:00
parent a862ca8165
commit 2d12646ace
12 changed files with 458 additions and 0 deletions

41
graphics/tiff/Makefile Normal file
View File

@ -0,0 +1,41 @@
# OpenBSD makefile for: tiff
# Version required: 3.3 beta 021
# Date created: December 2, 1997
# Whom: Angelos D. Keromytis
#
# $OpenBSD: Makefile,v 1.1.1.1 1997/12/03 02:37:00 angelos 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>

1
graphics/tiff/files/md5 Normal file
View File

@ -0,0 +1 @@
MD5 (v3.3beta021.src.tar.gz) = 4c54a18c7bfadbc4fcce98a38b779087

View File

@ -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 \

View File

@ -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

View File

@ -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}

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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"

View File

@ -0,0 +1 @@
A library for reading and writing TIFF data files.

10
graphics/tiff/pkg/DESCR Normal file
View File

@ -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.

71
graphics/tiff/pkg/PLIST Normal file
View File

@ -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
man/man1/gif2tiff.1
man/man1/pal2rgb.1
man/man1/ppm2tiff.1
man/man1/ras2tiff.1
man/man1/rgb2ycbcr.1
man/man1/sgi2tiff.1
man/man1/thumbnail.1
man/man1/tiff2bw.1
man/man1/tiff2ps.1
man/man1/tiffcmp.1
man/man1/tiffcp.1
man/man1/tiffdither.1
man/man1/tiffdump.1
man/man1/tiffgt.1
man/man1/tiffinfo.1
man/man1/tiffmedian.1
man/man1/tiffsplit.1
man/man1/tiffsv.1
man/man3/TIFFClose.3
man/man3/TIFFError.3
man/man3/TIFFFlush.3
man/man3/TIFFGetField.3
man/man3/TIFFOpen.3
man/man3/TIFFPrintDirectory.3
man/man3/TIFFReadDirectory.3
man/man3/TIFFReadEncodedStrip.3
man/man3/TIFFReadEncodedTile.3
man/man3/TIFFReadRGBAImage.3
man/man3/TIFFReadRawStrip.3
man/man3/TIFFReadRawTile.3
man/man3/TIFFReadScanline.3
man/man3/TIFFReadTile.3
man/man3/TIFFSetDirectory.3
man/man3/TIFFSetField.3
man/man3/TIFFWarning.3
man/man3/TIFFWriteDirectory.3
man/man3/TIFFWriteEncodedStrip.3
man/man3/TIFFWriteEncodedTile.3
man/man3/TIFFWriteRawStrip.3
man/man3/TIFFWriteRawTile.3
man/man3/TIFFWriteScanline.3
man/man3/TIFFintro.3
man/man3/TIFFquery.3
man/man3/TIFFsize.3
man/man3/TIFFstrip.3
man/man3/TIFFswab.3
man/man3/TIFFtile.3