# $Id: Portfile 38587 2008-07-25 11:43:38Z ryandesign@macports.org $

PortSystem              1.0

name                    ppmtomd
version                 1.5
revision                1
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 6ba142a5fc9bcae23a44141f193ce90e \
    sha1 5c33b8a37fd2ce66e182bef737360e6c73e5e2d1 \
    rmd160 8cff67ee3553eaeea7a824d1d7d495b4682a5a8a

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.check         regex
livecheck.url           ${homepage}
livecheck.regex         ${name}-(\[0-9.\]+)\\.tar
