Portfile

# $Id: Portfile 23053 2007-03-23 20:35:47Z pipping@macports.org $

PortSystem 1.0
name gimp
version 1.2.5
revision 2
categories graphics x11
maintainers nomaintainer@macports.org
description GNU Image Manipulation Program
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.
platforms darwin
use_bzip2 yes
master_sites ftp://ftp.gtk.org/pub/gimp/v1.2/v${version}/
checksums md5 b83b55d80e6728268d56620ea4d3051a

depends_lib port:gtk1 port:gettext port:jpeg port:libpng port:tiff

patchfiles patch-Makefile.in patch-plug_in_cmds.c \
patch-procedural_db_cmds.c patch-regex.c patch-regex.h \
patch-scriptfu-interp_regex.c patch-scriptfu-regex.c \
patch-scriptfu-regex.h patch-xjt-Makefile.in

configure.env PATH=$\{PATH\}:${prefix}/bin CPPFLAGS=-I${prefix}/include
configure.args --disable-print --disable-perl --mandir=${prefix}/share/man
post-destroot { file delete ${destroot}${prefix}/lib/charset.alias \
${destroot}${prefix}/bin/gimp
set script [open "${destroot}${prefix}/bin/gimp" w 0755]
puts $script "#!/bin/sh"
puts $script \
"export DYLD_INSERT_LIBRARIES=${prefix}/lib/libintl.dylib"
puts $script "${prefix}/bin/gimp-1.2 --no-shm --no-xshm"
close $script }
destroot.destdir prefix=${destroot}${prefix}

files