# -*- 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 60602 2009-11-16 17:55:16Z snc@macports.org $

PortSystem          1.0

name                pstoedit
version             3.45
revision            4
categories          graphics
maintainers         nomaintainer
description         Translate PostScript and PDF to other vector formats
long_description \
   pstoedit converts PostScript™ and PDF files to other vector graphic \
   formats so that they can be edited graphically.

platforms           darwin

homepage            http://www.pstoedit.net
master_sites        sourceforge

checksums           md5 071efc64d9edf5d942b407348ac7451d

depends_lib         port:ImageMagick \
                    port:plotutils \
                    port:libpng \
                    port:zlib
depends_run         port:ghostscript

patchfiles          patch-src-pstoedit.diff patch-src__cppcomp.h

configure.cppflags-append   "-Wno-long-long"

use_parallel_build  no

post-destroot {
   xinstall -m 755 -d ${destroot}${prefix}/share/man/man1 \
      ${destroot}${prefix}/share/doc/${name}
   xinstall -m 644 -W ${worksrcpath}/doc pstoedit.1 \
      ${destroot}${prefix}/share/man/man1
   eval xinstall -m 644 [glob ${worksrcpath}/doc/*.htm] \
      [glob ${worksrcpath}/doc/*.tex] [glob ${worksrcpath}/doc/*.txt] \
      ${destroot}${prefix}/share/doc/${name}
}
