build_gdk-pixbuf2() { . ./glib2-sc.inc HERE=`pwd` NAME=gdk-pixbuf2 VER=2.24.1 BUILDEPS="compiletc.tcz" if [ ! -f gdk-pixbuf-2.24.1.tar.xz ]; then wget http://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/2.24/gdk-pixbuf-2.24.1.tar.xz fi for I in `echo "$BUILDDEPS"`; do DEPNAME=`basename "$I" .tcz` if [ ! -f /usr/local/tce.installed/"$DEPNAME" ]; then if [ -f "$TCEDIR"/"$I" ]; then if su tc -c "tce-load -i "$I""; then echo "$I" loaded locally" else echo ""$I" failed to load, exiting.." exit 1 fi else if su tc -c "tce-load -iw "$I""; then echo '"$I" loaded from repo" else echo ""$I" failed to load, exiting.." exit 1 fi fi fi done PKGPATH=$1 export LDFLAGS="-L$PKGPATH/lib" export CPPFLAGS="-I$PKGPATH/include" export PATH="$PKGPATH/bin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:$PKG_CONFIG_PATH" if [ ! -f "$TMPDIR"/glib2 ]; then build_glib2 "$PKGPATH" fi tar xvf gdk-pixbuf-2.24.1.tar.xz cd gdk-pixbuf-2.24.1 ./configure --prefix="$PKGPATH" || exit 1 make || exit 1 make install || exit 1 "$PKGPATH"/bin/gdk-pixbuf-query-loaders --update-cache || exit 1 touch "$TMPDIR"/"$NAME" cd "$HERE" }