# -*- 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
# $Id: Portfile 108178 2013-07-15 08:03:00Z takeshi@macports.org $

PortSystem          1.0

name                sam2p
version             0.49.1
revision            3
categories          graphics
platforms           darwin
license             GPL-2
maintainers         takeshi openmaintainer
description         convert raster images to PostScript, PDF etc
long_description \
   sam2p is a UNIX command line utility written in ANSI C++ \
   that converts many raster (bitmap) image formats into \
   Adobe PostScript or PDF files and several other formats. \
   The images are not vectorized. \
   sam2p gives full control to the user to specify \
   standards-compliance, compression, and bit depths. \
   In some cases sam2p can compress an image 100 times smaller \
   than the PostScript output of many other common image converters. \
   sam2p provides ZIP, RLE and LZW (de)compression filters \
   even on Level1 PostScript devices.
homepage            http://code.google.com/p/sam2p/
master_sites        googlecode

checksums           rmd160  bb202ea2209cdd293947828b5f83f07ab34678d4 \
                    sha256  d97a270e3ad4ad138378b5fcb10e489e9af48a8150f308458771808dfceb069a

depends_lib         port:jpeg \
                    port:netpbm \
                    port:ghostscript \
                    port:tif22pnm

configure.args      --enable-lzw \
                    --enable-gif

# TODO: Project build system is broken
compiler.blacklist-append  clang macports-clang-2.9 macports-clang-3.0 macports-clang-3.1 macports-clang-3.2

destroot {
    xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin
    xinstall -d -m 755 ${destroot}${prefix}/share/doc
    xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
    xinstall -d -m 755 ${destroot}${prefix}/share/${name}
    file copy ${worksrcpath}/examples ${destroot}${prefix}/share/${name}
}

livecheck.type      googlecode
livecheck.name      ${name}
