SUMMARY="A library to read/write TIFF images" DESCRIPTION="TIFF the Tag Image File Format, is a widely used format for \ storing image data. Included in this software is a library, libtiff, for \ reading and writing TIFF and a small collection of tools for doing simple \ manipulations of TIFF images." HOMEPAGE="http://www.libtiff.org/" COPYRIGHT="1988-1997 Sam Leffler 1991-1997 Silicon Graphics, Inc." LICENSE="MIT" REVISION="1" SOURCE_URI="http://download.osgeo.org/libtiff/tiff-$portVersion.tar.gz" CHECKSUM_SHA256="6e7bdeec2c310734e734d19aae3a71ebe37a4d842e0e23dbb1b8921c0026cfcd" SOURCE_DIR="tiff-$portVersion" PATCHES="tiff4-$portVersion.patchset" ARCHITECTURES="x86_gcc2 x86 x86_64" SECONDARY_ARCHITECTURES="x86_gcc2 x86" PROVIDES=" tiff4$secondaryArchSuffix = $portVersion compat >= 4 lib:libtiff$secondaryArchSuffix = 5.3.0 compat >= 5 lib:libtiffxx$secondaryArchSuffix = 5.3.0 compat >= 5 " REQUIRES=" haiku$secondaryArchSuffix lib:libjpeg$secondaryArchSuffix lib:libz$secondaryArchSuffix " PROVIDES_devel=" tiff4${secondaryArchSuffix}_devel = $portVersion compat >= 4 devel:libtiff$secondaryArchSuffix = 5.3.0 compat >= 5 devel:libtiffxx$secondaryArchSuffix = 5.3.0 compat >= 5 " REQUIRES_devel=" tiff4$secondaryArchSuffix == $portVersion base " CONFLICTS_devel=" tiff${secondaryArchSuffix}_devel " if [ -z "$secondaryArchSuffix" ]; then SUMMARY_tools="The TIFF tools" PROVIDES_tools=" tiff_tools = $portVersion cmd:bmp2tiff cmd:fax2ps cmd:fax2tiff cmd:gif2tiff cmd:pal2rgb cmd:ppm2tiff cmd:ras2tiff cmd:raw2tiff cmd:rgb2ycbcr cmd:thumbnail cmd:tiff2bw cmd:tiff2pdf cmd:tiff2ps cmd:tiff2rgba cmd:tiffcmp cmd:tiffcp cmd:tiffcrop cmd:tiffdither cmd:tiffdump cmd:tiffinfo cmd:tiffmedian cmd:tiffset cmd:tiffsplit " REQUIRES_tools=" haiku tiff4 == $portVersion base lib:libjpeg lib:libz " fi BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libjpeg$secondaryArchSuffix devel:libz$secondaryArchSuffix " BUILD_PREREQUIRES=" cmd:aclocal cmd:autoconf cmd:automake cmd:gcc$secondaryArchSuffix cmd:ld$secondaryArchSuffix cmd:libtoolize$secondaryArchSuffix cmd:make " PATCH() { if [ $effectiveTargetArchitecture == x86_gcc2 ]; then sed -i 's/ios::pos_type/streampos/g' libtiff/tif_stream.cxx sed -i 's/ios::off_type/streamoff/g' libtiff/tif_stream.cxx fi } BUILD() { autoreconf -fi runConfigure ./configure --with-docdir=$documentationDir/$portName make $jobArgs } INSTALL() { make install rm -f $libDir/libtiff*.la prepareInstalledDevelLibs libtiff libtiffxx fixPkgconfig # devel package packageEntries devel \ $developDir # tools package if [ -z "$secondaryArchSuffix" ]; then packageEntries tools \ $binDir \ $documentationDir fi # Remove stuff we don't need in the secondary architecture base package. if [ -n "$secondaryArchSuffix" ]; then rm -rf $binDir rm -rf $documentationDir fi } TEST() { make check }