build_qt4() { HERE=`pwd` BUILDDEPS="compiletc.tcz gettext.tcz Xorg-7.6-dev.tcz Xorg-7.6-lib.tcz cmake.tcz intltool.tcz nasm.tcz" #DEPS= for I in `echo "$BUILDDEPS"`; do su tc -c "tce-load -i "$I"" || su tc -c "tce-load -iw "$I"" done . ./libjpeg-turbo-sc.inc || exit 1 . ./libmng-sc.inc || exit 1 . ./sqlite3-sc.inc || exit 1 . ./tiff-sc.inc || exit 1 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"/libjpeg-turbo ]; then build_libjpeg-turbo "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libmng ]; then build_libmng "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/sqlite3 ]; then build_sqlite3 "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/tiff ]; then build_tiff "$PKGPATH" || exit 1 fi tar xvf qt-everywhere-opensource-src-4.8.0.tar.xz || exit 1 cd qt-everywhere-opensource-src-4.8.0 || exit 1 ./configure -prefix "$PKGPATH" \ -release \ -nomake examples \ -nomake demos \ -system-sqlite \ -no-nis || exit 1 make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/qt4 }