# -*- 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

PortSystem          1.0

name                psutils
version             p17
revision            1
categories          print
license             Permissive
maintainers         nomaintainer

description         Useful utilities for manipulating PostScript documents
long_description    PSUtils is a collection of useful utilities for \
            manipulating PostScript documents. Programs included \
            are psnup, for placing out several logical pages on a \
            single sheet of paper, psselect, for selecting pages \
            from a document, pstops, for general imposition, \
            psbook, for signature generation for booklet printing, \
            and psresize, for adjusting page sizes.

platforms           darwin

homepage            http://www.knackered.org/angus/psutils/
master_sites        tex_ctan:support/${name} ftp://ftp.knackered.org/pub/psutils/

checksums           md5 b161522f3bd1507655326afa7db4a0ad \
                    sha1 6f1ecb5846cffb644826a02bd9153fe5d6387a9b \
                    rmd160 1494f37e7ae809f0e446d52d4b3a21cd48690cc0

depends_build       bin:perl:perl5

worksrcdir          ${name}

patchfiles          clang.patch Makefile.unix.patch

pre-configure {
    file rename ${worksrcpath}/Makefile.unix ${worksrcpath}/Makefile
    reinplace "s|/usr/local|${prefix}|g" "${worksrcpath}/Makefile"
}
use_configure       no

variant universal {}
build.args          CC="${configure.cc}" EXTRA_CFLAGS="${configure.cflags} [get_canonical_archflags]"

livecheck.type      none
