tce-load -i Xorg-7.7-3d-dev sqlite3-dev dbus-dev openssl-1.0.1-dev alsa-dev glib2-dev libmng-dev libpng-dev libtiff-dev cups-dev pulseaudio-dev perl5 icu-dev cd qt-everywhere-opensource-src-4.8.6 sed -i -e '631a if (image->isNull()) { state = Error; return -1; }' src/gui/image/qgifhandler.cpp sed -i -e "/#if/d" -e "/#error/d" -e "/#endif/d" config.tests/unix/libmng/libmng.cpp sed -i '/CONFIG -/ a\isEmpty(OUTPUT_DIR): OUTPUT_DIR = ../..' src/3rdparty/webkit/Source/WebKit2/DerivedSources.pro QT4LINK=/usr/local CC="gcc -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -march=i486 -mtune=i686 -Os -pipe" ./configure -prefix /usr/local -bindir /usr/local/bin -plugindir /usr/local/lib/qt4/plugins -importdir /usr/local/lib/qt4/imports -headerdir /usr/local/include/qt4 -datadir /usr/local/share/qt4 -sysconfdir /usr/local/etc/xdg -docdir /usr/local/share/doc/qt4 -demosdir /usr/local/share/doc/qt4/demos -examplesdir /usr/local/share/doc/qt4/examples -translationdir /usr/local/share/qt4/translations -confirm-license -opensource -release -dbus-linked -openssl-linked -system-sqlite -no-phonon -no-phonon-backend -no-nis -no-openvg -nomake demos -nomake examples -no-qt3support -no-webkit -no-javascript-jit find . -name Makefile -type f -exec sed -i 's/-O2//g' {} \; time make -j5 [14m 23.42s] find . -name "*.pc" -exec perl -pi -e "s, -L$PWD/?\S+,,g" {} \; sudo make install sudo rm -rf /usr/local/tests sudo install -Dm644 src/gui/dialogs/images/qtlogo-64.png /usr/local/share/pixmaps/qt4logo.png sudo install -Dm644 tools/assistant/tools/assistant/images/assistant-128.png /usr/local/share/pixmaps/assistant-qt4.png sudo install -Dm644 tools/designer/src/designer/images/designer.png /usr/local/share/pixmaps/designer-qt4.png sudo install -Dm644 tools/linguist/linguist/images/icons/linguist-128-32.png /usr/local/share/pixmaps/linguist-qt4.png sudo install -Dm644 tools/qdbus/qdbusviewer/images/qdbusviewer-128.png /usr/local/share/pixmaps/qdbusviewer-qt4.png tce-load -i coreutils for file in 3Support CLucene Core DBus Declarative DesignerComponents Designer Gui Help Multimedia Network OpenGL Script ScriptTools Sql Svg Test UiTools WebKit XmlPatterns Xml phonon do [ -e /usr/local/lib/libQt${file}.prl ] && sed -i -e '/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/' /usr/local/lib/libQt${file}.prl done unset file