# $Id: Portfile 57551 2009-09-12 22:18:08Z ryandesign@macports.org $

PortSystem      1.0

name            scribus
version         1.3.3.11
categories      print
maintainers     nomaintainer
description     X11-based WYSIWYG desktop publishing application
long_description \
                Scribus is an open source desktop publishing program. It provides  true \
                WYSIWYG  editing,  excellent PDF export facilities, and a wide range of \
                other input and output options.
platforms       darwin
homepage        http://www.scribus.net/
master_sites    sourceforge:scribus
use_bzip2       yes
checksums       md5 472432b6ae85e005c98bc11c79572ec9 \
                sha1 f9242b5b77cf0644ff5d8277425852c7e9df4a55 \
                rmd160 88fcc880c93756b0ea5d373228e8c2cee5602e31

depends_build   path:bin/perl:perl5 \
                path:bin/pkg-config:pkgconfig
depends_lib     bin:gs:ghostscript \
                path:lib/pkgconfig/cairo.pc:cairo \
                port:expat \
                port:libart_lgpl \
                port:libiconv \
                port:lcms \
                port:libxml2 \
                port:qt3 \
                port:tiff \
                port:zlib

configure.env   HOME=${worksrcpath}
configure.args  --with-qt-dir=${prefix}/lib/qt3 --without-python --enable-cairo \
                --with-extra-includes=${prefix}/include --with-extra-libs=${prefix}/lib \
                --disable-dependency-tracking --mandir=${prefix}/share/man

build.env           HOME=${worksrcpath}
use_parallel_build  yes

#destroot.target    install-strip

platform darwin 9 {
    configure.ldflags-append    -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
}

livecheck.type  regex
livecheck.url   ${homepage}
livecheck.regex Scribus v(\[0-9.\]+)
