tce-load -i Xorg-7.7-3d-dev libdrm-dev libGL-dev sqlite3-dev dbus-dev openssl-1.0.0-dev alsa-dev glib2-dev libmng-dev libpng-dev tiff-dev cups-dev pulseaudio-dev perl5 cd qt-everywhere-opensource-src-4.8.5 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 CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -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 *** what about gtk themes and sse4.1, etc? *** find . -name Makefile -type f -exec sed -i 's/-O2/ /g' {} \; make 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