build_gdk-pixbuf2() { . ./glib2-sc.inc || exit 1 . ./libtiff-sc.inc || exit 1 . ./libjpeg-turbo-sc.inc || exit 1 HERE=`pwd` BUILDEPS="compiletc.tcz" 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$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 ldconfig tar xvf gdk-pixbuf-2.26.4.tar.xz || exit 1 cd gdk-pixbuf-2.26.4 || exit 1 ./configure --prefix="$PKGPATH" --bindir="$PKGPATH"/localbin --with-x11 --with-included-loaders=png --without-libjasper || exit 1 make || exit 1 make install || exit 1 "$PKGPATH"/localbin/gdk-pixbuf-query-loaders --update-cache || exit 1 touch "$TMPDIR"/gdk-pixbuf2 cd "$HERE" }