# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem              1.0

name                    ppmtomd
version                 1.6
categories              print
platforms               darwin
maintainers             ryandesign openmaintainer
homepage                http://ppmtomd.julianbradfield.org/
master_sites            ${homepage}
use_parallel_build      yes

description \
    driver for the Alps Micro-Dry series of printers

long_description \
    This program drives the Alps Micro-Dry series of printers, including \
    the Citizen Printiva series, Alps MD series, and Oki DP series (but \
    not yet the DP-7000). \
    \
    In the current release, the program drives the standard mode fairly \
    well\; the dye sublimation mode very well\; and the VPhoto mode \
    reasonably well. \
    \
    It supports all the colours available up to the DP-5000, including the \
    foil colours.

checksums \
    md5     5f064a9e49e3366914e52e8ea35a9878 \
    sha1    d5283be72872224a79af1a5d1e78a7870e81243b \
    rmd160  e446296836226b756270cbb270bb3d8735965354

depends_lib \
    port:netpbm

universal_variant       no

patchfiles \
    patch-Makefile.diff

configure {
    reinplace "s%@PREFIX@%${prefix}%g" ${worksrcpath}/Makefile
    reinplace "s%@DESTROOT@%${destroot}%g" ${worksrcpath}/Makefile
    reinplace "s%@CFLAGS@%${configure.cflags}%g" ${worksrcpath}/Makefile
    reinplace "s%@CPPFLAGS@%${configure.cppflags}%g" ${worksrcpath}/Makefile
    reinplace "s%@LDFLAGS@%${configure.ldflags}%g" ${worksrcpath}/Makefile
}

livecheck.type          regex
livecheck.url           ${homepage}
livecheck.regex         ${name}-(\[0-9.\]+)\\.tar
