# -*- 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 66502 2010-04-15 14:21:46Z devans@macports.org $

PortSystem 1.0

name            gimp-gap-devel
conflicts       gimp-gap
set git_name    gimp-gap
version         2.7.0
revision        3
categories      graphics
maintainers     devans

description     The Gimp Animation Package.

long_description \
                GIMP-GAP, the GIMP Animation Package, is a collection of plug-ins to \
                extend GIMP with capabilities to edit and create animations as \
                sequences of single frames. This is the unstable development branch \
                leading up to a stable version 2.8.

universal_variant  no

homepage        http://www.gimp.org/
platforms       darwin

fetch.type      git
git.url         git://git.gnome.org/${git_name}
git.branch      58844b7a

depends_build   port:git-core \
                port:pkgconfig \
                port:autoconf \
                port:automake \
                port:intltool \
                port:p5-xml-parser \
                port:gmake

depends_lib     port:gimp2 \
                port:faac \
                port:faad2 \
                port:x264 \
                port:lame \
                port:XviD

depends_run     port:MPlayer

configure.cmd    ./autogen.sh

configure.args  --disable-audio-support \
                --disable-libmpeg3 \
                --enable-gdkpixbuf-pview \
                --with-ff-extra-cflags=-I${prefix}/include \
                --with-ff-extra-ldflags=-L${prefix}/lib

post-destroot {
    foreach dir {howto reference} {
        xinstall -d ${destroot}${prefix}/share/${name}/$dir
        foreach txt [glob -d ${worksrcpath}/docs/$dir/txt *.txt] {
            xinstall -m 644 $txt ${destroot}${prefix}/share/${name}/$dir
        }
    }
}

livecheck.type  none
