# $Id: Portfile 41060 2008-10-21 21:22:22Z blb@macports.org $

PortSystem  1.0
PortGroup   gnustep 1.0

name        pdfkit
version     062906
platforms   darwin
maintainers nomaintainer
homepage    http://www.gnustep.it/enrico/pdfkit/
description  GNUstep framework for PDF rendering
long_description \
    A framework to support the rendering of PDF content in GNUstep applications

master_sites  ${homepage}
checksums     md5 0bf6c2441d8821c4276c4d92691ad1bb

worksrcdir    PDFKit-${version}

post-patch {
    reinplace "s|ADD_FT|CC=gcc-mp-4.1 CXX=g++-mp-4.1 ADD_FT|" \
        ${worksrcpath}/xpdf/xpdf-3.01/GNUmakefile.in
    reinplace "s|\${CXX}|g++-mp-4.1|" \
        ${worksrcpath}/GNUmakefile.in \
        ${worksrcpath}/xpdf/GNUmakefile.in \
        ${worksrcpath}/xpdf/bridge/GNUmakefile
}        
use_configure yes

platform darwin {
    array set gnustep.post_flags {
        .  "-lobjc -lgnustep-base -lgnustep-gui"
    }
}
