build_gtk3(){ . ./libjpeg-turbo || exit 1 . ./libtiff-sc.inc || exit 1 . ./glib2-sc.inc || exit 1 . ./shared-mime-info-sc.inc || exit 1 . ./cairo-sc.inc || exit 1 . ./pango-sc.inc || exit 1 . ./ttf-bitstream-vera-sc.inc || exit 1 . ./hicolor-icon-theme-sc.inc || exit 1 . ./fontconfig-sc.inc || exit 1 . ./atk-sc.inc || exit 1 . ./gdk-pixbuf2-sc.inc || exit 1 . ./libxml2-sc.inc || exit 1 . ./pixman-sc.inc || exit 1 NAME=gtk HERE=`pwd` PKGPATH=$1 if [ ! -f gtk+-3.2.3.tar.xz ]; then wget http://ftp.gnome.org/pub/gnome/sources/gtk+/3.2/gtk+-3.2.3.tar.xz fi BUILDDEPS="cups-dev.tcz intltool.tcz gettext.tcz perl5.tcz Xorg-7.6-dev.tcz \ compiletc.tcz Xorg-7.6-bin.tcz" for I in `echo "$BUILDDEPS"`; do su tc -c "tce-load -i "$I"" || su tc -c "tce-load -iw "$I"" done 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" cd "$HERE" echo `pwd` if [ ! -f "$TMPDIR"/libjpeg-turbo ]; then build_libjpeg-turbo "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libtiff ]; then build_libtiff "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/pixman ]; then build_pixman "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/ttf-bitstream-vera ]; then build_ttf-bitstream-vera "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libxml2 ]; then build_libxml2 "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/hicolor-icon-theme ]; then build_hicolor-icon-theme "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/glib2 ]; then build_glib2 "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/fontconfig ]; then build_fontconfig "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/gdk-pixbuf2 ]; then build_gdk-pixbuf2 "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/atk ]; then build_atk "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/cairo ]; then build_cairo "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/pango ]; then build_pango "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/shared-mime-info ]; then build_shared-mime-info "$PKGPATH" || exit 1 fi tar xvf gtk+-3.2.3.tar.xz || exit 1 cd gtk+-3.2.3 || exit 1 patch -p1 < ../gtk3-empty_grid.patch || exit 1 ./configure --prefix="$PKGPATH" || exit 1 make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/gtk3 }