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

NAME="gimp"
VERSION="2.2.11"
REVISION="2"

#PKG_SOURCEURL='ftp://ftp.cs.umn.edu/pub/$NAME/v$VER_MAJ.$VER_MIN/$NAME-$VERSION.tar.bz2'
PKG_SOURCEURL='http://gimp.mirrors.hoobly.com/gimp/v$VER_MAJ.$VER_MIN/$NAME-$VERSION.tar.bz2'

PKG_PATCH[0]='gimp-ephy-help.patch'

. $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
cxxflags
prepare
applypatch 0 1
analyzesource
configure --enable-mp --enable-gtk-doc --enable-python
make -j3
makecheck

# Without these three directories in place, the makefile never populates them
# properly and leaves us high and dry without their contents.  --+ 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

