# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0

name                tif22pnm
version             0.14
revision            4
categories          graphics
platforms           darwin
license             GPL-2
maintainers         {takeshi @tenomoto} openmaintainer
description         converter between TIFF and PNM
long_description \
    tif22pnm is a command line utility that converts \
    between TIFF sampled images and PNM images (both directions), \
    using the libtiff library, but not using NetPBM. \
    tif22pnm is similar to tifftopnm utility in the NetPBM distribution, \
    but tif22pnm handles a wider range of TIFF files and \
    it is able to output the alpha channel as a PBM or PGM file. \
    png22pnm, a converter from PNG to PNM is also bundled into the distribution.
homepage            https://code.google.com/p/sam2p/
master_sites        googlecode:sam2p

checksums           rmd160  5f9600ce4e0eec9592717747a117219031a90508 \
                    sha256  d59ea3f1fdd6802e66a44fbfa8979d4e61c9fd021de36675249a877392378e01

universal_variant   no
installs_libs       no

post-patch {
    reinplace "s| -s||" ${worksrcpath}/do.sh
}

depends_lib         port:tiff \
                    port:libpng

destroot {
    xinstall -m 755 -W ${worksrcpath} ${name} png22pnm ${destroot}${prefix}/bin
}

livecheck.type      googlecode
livecheck.name      sam2p
