# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 59520 2009-10-16 01:29:08Z snc@macports.org $

PortSystem          1.0

name                poster
version             20060221
categories          print
maintainers         snc openmaintainer
description         Small PostScript utility to allow large poster printing

long_description    This is a small PostScript utility to allow large poster \
                    printing (e.g. A1) by splitting it into pieces that can \
                    be printed on small paper sheets (e.g. A4).

homepage            http://printing.kde.org/downloads
platforms           darwin

master_sites        ftp://ftp.kde.org/pub/kde/printing
use_bzip2           yes
dist_subdir         ${name}/${version}
depends_build       port:autoconf port:automake

patchfiles          automake.diff

checksums           md5     04b421e2ce516a44b6c5a9a092dfa623 \
                    sha1    cde5d3ba28d444e68cc30573eaa660ea8ef7f16b \
                    rmd160  f5ba5a4ebeacd04051a682b9285c33f54e311da0

post-patch {
	system "cd ${worksrcpath} &&
		touch AUTHORS NEWS &&
        	${prefix}/bin/aclocal &&
        	${prefix}/bin/automake --add-missing &&
		${prefix}/bin/autoconf"
}

livecheck.type      md5
livecheck.url       ${master_sites}/${name}${extract.suffix}
livecheck.md5       04b421e2ce516a44b6c5a9a092dfa623
