# -*- 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 108356 2013-07-20 19:23:26Z blair@macports.org $

PortSystem          1.0

name                pstoedit
version             3.61
revision            2
categories          graphics
platforms           darwin
maintainers         nomaintainer
license             GPL-2+

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.

homepage            http://www.pstoedit.net/
master_sites        sourceforge:project/pstoedit/pstoedit/${version}

checksums           rmd160  d520bc8f0f5200f19b29f732324e6d0b4676af98 \
                    sha256  e9935f5510fc5a3227bd31a74e88911f02a4c8516f3e0fe9fbc0dc780f2460db

depends_build       port:pkgconfig

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

depends_run         port:ghostscript

patchfiles          patch-src-cppcomp.h.diff

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