#!/bin/sh
#
# Copyright 2004 Dagmar d'Surreal <rivyqntzne@tznvy.pbz>
# Available under the terms of the GNU GPL.
#

NAME="gimp"
VERSION="2.2.9"
REVISION="1"

PKG_SOURCEURL='ftp://ftp.cs.umn.edu/pub/$NAME/v$VER_MAJ.$VER_MIN/$NAME-$VERSION.tar.bz2'

. $DLG_ROOT/config
. $DLG_ROOT/SCRIPTS/dropline-functions.sh

PKG_DOCFILES="$PKG_DOCFILES PLUGIN_MAINTAINERS MAINTAINERS"

configfile /etc/gimp/2.0/gimprc
configfile /etc/gimp/2.0/gtkrc
configfile /etc/gimp/2.0/templaterc
configfile /etc/gimp/2.0/unitrc
configfile /etc/gimp/2.0/ps-menurc
configfile /etc/gimp/2.0/sessionrc
configfile /etc/gimp/2.0/controllerrc

cflags
prepare
analyzesource
configure --enable-mp --enable-gtk-doc --enable-python
make

# Without these three directories in place, the makefile never populates them
# properly and leaves us high and dry without their contants.  --+ Dagmar
spewdo "createdir $PKG_STAGEROOT$PKG_DATADIR/applications"
spewdo "createdir $PKG_STAGEROOT$PKG_DATADIR/application-registry"
spewdo "createdir $PKG_STAGEROOT$PKG_DATADIR/mime-info"

makeinstall install-strip
tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup
