# -*- 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 92833 2012-05-08 23:46:29Z ryandesign@macports.org $

PortSystem          1.0

name                sam2p
version             0.49.1
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

if {${configure.compiler}=="clang"} {
    configure.compiler  llvm-gcc-4.2
}

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

livecheck.type      googlecode
livecheck.name      ${name}
