## $Id: Portfile,v 1.27 2006/06/01 16:18:35 mww Exp $

PortSystem 1.0
name		tiff
version		3.8.2
categories	graphics
maintainers	waqar@opendarwin.org
description	Library and tools for dealing with Tag Image File Format
long_description \
	This software provides support for the Tag Image File 		\
	Format (TIFF), a widely used format for storing image 		\
	data.  Included in this software distribution is a 		\
	library, libtiff, for reading and writing TIFF, a small 	\
	collection of tools for doing simple manipulations of 		\
	TIFF images on UNIX systems, documentation on the library 	\
	and tools.  A small assortment of TIFF-related software 	\
	for UNIX that has been contributed by others is also 		\
	included.  The library is capable of dealing with images 	\
	that are written to 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.
homepage	http://www.libtiff.org/
platforms	darwin
master_sites	ftp://ftp.remotesensing.org/pub/libtiff/ \
		ftp://ftp.remotesensing.org/pub/libtiff/old \
		http://dl.maptools.org/dl/libtiff/ \
		freebsd

checksums	sha1 549e67b6a15b42bfcd72fe17cda7c9a198a393eb

depends_lib	port:jpeg port:zlib

configure.args	--mandir=${prefix}/share/man \
		--with-jpeg-include-dir=${prefix}/include \
		--with-jpeg-lib-dir=${prefix}/lib \
		--with-zlib-include-dir=${prefix}/include \
		--with-zlib-lib-dir=${prefix}/lib

post-destroot {
	xinstall -m 755 -d ${destroot}/${prefix}/share/doc/${name}
	file copy ${worksrcpath}/html/images \
		${destroot}/${prefix}/share/doc/${name}
	eval xinstall -m 644 [glob ${worksrcpath}/html/*.html] \
		${destroot}/${prefix}/share/doc/${name}
}

platform darwin 8 {
	configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
}
