# -*- 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
# $Id: Portfile 84550 2011-09-27 21:05:11Z snc@macports.org $

PortSystem          1.0

name                pstoedit
version             3.50
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           sha1    5685bef29fa00aae7cc314d3a1dd21612a98eb2b \
                    rmd160  ba9be28424ced48464d93dd8bca60107d181a1c3

depends_build       port:pkgconfig

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

patchfiles          patch-src__cppcomp.h \
                    patch-configure.ac.diff

use_autoreconf      yes

configure.args      --without-emf --without-swf

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}
}
