Portfile

# $Id: Portfile 22731 2007-03-13 03:50:25Z yves@macports.org $

PortSystem 1.0
name gimp-dev
version 2.3.15
categories graphics
maintainers yves@macports.org
description The GNU Image Manipulation Program (unstable)
long_description \
The GNU Image Manipulation Program (GIMP) is a powerful \
tool for the preparation and manipulation of digital images. \
The GIMP provides the user with a wide variety of image \
manipulation, painting, processing, and rendering tools.
homepage http://www.gimp.org/
platforms darwin
master_sites ftp://ftp.cs.umn.edu/pub/gimp/v2.3/ \
ftp://ftp.flirble.org/pub/X/gimp/gimp/v2.3/ \
ftp://ftp.minet.net/pub/gimp/v2.3/ \
ftp://ftp.gimp.org/pub/gimp/v2.3/
checksums md5 ca1ac6c338866020b9ebe98d134bd749
distname gimp-${version}
use_bzip2 yes
depends_lib port:aalib \
port:curl \
port:gimp-print \
port:libexif \
port:libgnomeui \
port:libgtkhtml \
port:libmng \
port:librsvg \
port:libwmf \
port:poppler \
port:py-gtk2

configure.env LDFLAGS=-L${prefix}/lib CPPFLAGS=-I${prefix}/include
configure.pre_args --prefix="${prefix}/gimp-2.3"
configure.args --enable-mp

destroot.destdir DESTDIR=${destroot}

post-destroot {
xinstall -m 755 ${filespath}/gimp-2.3.in \
${destroot}${prefix}/bin/gimp-2.3
reinplace "s|@@PREFIX@@|${prefix}|g" \
${destroot}${prefix}/bin/gimp-2.3
}

variant without_gnome {
depends_lib-append port:dbus-glib \
port:libart_lgpl \
port:p5-xml-parser
depends_lib-delete port:libgnomeui \
port:libgtkhtml \
port:librsvg
}

files