# -*- 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 64831 2010-03-16 10:20:48Z ryandesign@macports.org $

PortSystem      1.0

name            gegl
version         0.1.0
revision        4
set branch      [join [lrange [split ${version} .] 0 1] .]
categories      graphics
maintainers     devans
platforms       darwin
homepage        http://gegl.org/
master_sites    gimp:${name}/${branch}

use_bzip2       yes

description \
    GEGL is a graph based image processing framework.

long_description \
    GEGL is a graph based image processing framework offering image processing and \
    compositing on large images. GEGL is suitable for projects ranging from small \
    one-off projects to interactive applications.

universal_variant  no

checksums       md5     5a989ad617801c5dbec3d47c30bd64f0 \
                sha1    ede1789ce318b9afe4ec7dcb42c1065b4f278b64 \
                rmd160  fb03f5a2170d28ef37f94a7941d456b0dc92600b

depends_build \
    port:pkgconfig \
    port:w3m

depends_lib \
    port:babl \
    port:gtk2 \
    port:lua \
    port:openexr \
    port:libopenraw \
    port:librsvg \
    path:lib/pkgconfig/sdl.pc:libsdl \
    path:bin/dot:graphviz \
    path:lib/libavcodec.dylib:ffmpeg \
    port:libspiro

configure.args   --disable-docs

platform darwin 10 {
    # workaround for ticket #20906
    configure.args-append  --disable-mmx
}

variant html_doc description {Build html docs with enscript and asciidoc} {
    depends_build-append port:asciidoc
    configure.args-delete --disable-docs
    configure.args-append --enable-docs
}

variant workshop description {Enable build of workshop operations} {
    configure.args-append --enable-workshop
}

livecheck.type  regex
livecheck.url   ftp://ftp.gimp.org/pub/${name}/${branch}/
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
