build_gimp2-basic() { HERE=`pwd` NAME=gimp2-basic VER=2.6.11 BUILDDEPS="perl5.tcz python.tcz compiletc.tcz gettext.tcz python-dev.tcz" if [ ! -f gimp-2.6.11.tar.bz2 ]; then wget ftp://ftp.gimp.org/pub/gimp/v2.6/gimp-2.6.11.tar.bz2 || exit 1 fi . ./libexif-sc.inc || exit 1 . ./gegl-sc.inc || exit 1 for I in `echo "$BUILDDEPS"`; do su tc -c "tce-load -i "$I"" || su tc -c "tce-load -iw "$I"" done PKGPATH=$1 export LDFLAGS="-L/apps/gtk2/lib $LDFLAGS" export CPPFLAGS="-I/apps/gtk2/include $CPPFLAGS" export PATH="/apps/gtk2/bin:$PATH" export PKG_CONFIG_PATH="/apps/gtk2/lib/pkgconfig:$PKG_CONFIG_PATH" export LD_LIBRARY_PATH="/apps/gtk2/lib:$LD_LIBRARY_PATH" if [ ! -f "$TMPDIR"/libexif ]; then build_libexif "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/gegl ]; then build_gegl "$PKGPATH" || exit 1 fi tar xvf gimp-2.6.11.tar.bz2 || exit 1 cd gimp-2.6.11 || exit 1 ./configure --prefix="$PKGPATH" || exit 1 make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/gimp2-basic }