# $Id: Portfile,v 1.36 2006/07/15 02:28:58 yves Exp $

PortSystem 1.0
name             gimp2
version          2.2.12
categories       graphics
maintainers      yves@opendarwin.org
description      The GNU Image Manipulation Program (version 2)
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.2/ \
                 ftp://ftp.flirble.org/pub/X/gimp/gimp/v2.2/ \
                 ftp://ftp.minet.net/pub/gimp/v2.2/ \
                 ftp://ftp.gimp.org/pub/gimp/v2.2/
checksums        md5 6a1906db60166a88317f2df5f195a57d
distname         gimp-${version}
use_bzip2        yes
depends_lib      port:aalib \
                 port:gimp-print \
                 port:gtk2 \
                 port:lcms \
                 port:libart_lgpl \
                 port:libexif \
                 port:libmng \
                 port:libwmf \
                 port:p5-xml-parser

configure.env    LDFLAGS=-L${prefix}/lib CPPFLAGS=-I${prefix}/include
configure.args   --enable-mp \
                 --mandir=${prefix}/share/man

post-destroot {
    file mkdir ${destroot}${prefix}/share/applications
    cd ${destroot}${prefix}/share/applications
	system "ln -s ../gimp/2.0/misc/gimp.desktop"
}

variant enable_python {
    depends_lib-append    port:py-gtk2
    configure.args-append --enable-python
}

variant with_gnome {
    depends_lib-append	port:libgtkhtml \
                        port:librsvg
}

platform darwin i386 {
    configure.args-append   --disable-mmx
}
