summaryrefslogtreecommitdiff
path: root/qt4/Pkgfile
blob: 172889d74bf41f573b7c99d7828646169bac5a67 (plain)
    1 # Description: Qt Free Edition
    2 # URL: http://www.trolltech.com
    3 # Maintainer: Jose V Beneyto, sepen at crux dot nu
    4 # Packager: Johannes Winkelmann, jw at smts dot ch
    5 # Depends on: fontconfig glib libmng libpng mesa3d xorg-libxcursor xorg-libxi xorg-libxinerama xorg-libxrandr dbus gst-plugins-base
    6 
    7 name=qt4
    8 version=4.8.5
    9 release=1
   10 source=(http://download.qt-project.org/official_releases/qt/${version%.*}/$version/qt-everywhere-opensource-src-$version.tar.gz)
   11 
   12 build () {
   13     cd qt-everywhere-opensource-src-$version
   14 
   15     sed -i 's|X11R6/||g' mkspecs/*/*.conf
   16 
   17     sed -i "s|-O2|$CXXFLAGS|" mkspecs/common/g++-unix.conf
   18     sed -i "s|INSTALLS += translations||" projects.pro
   19     sed -i 's|"$COMPILER" -c|$COMPILER -c|' config.tests/unix/fvisibility.test
   20 
   21     ./configure -prefix /usr/share/qt4 \
   22                 -bindir /usr/share/qt4/bin \
   23                 -headerdir /usr/share/qt4/include \
   24                 -libdir /usr/share/qt4/lib \
   25                 -plugindir /usr/share/qt4/plugins \
   26                 -platform linux-g++ -release -shared -sm \
   27                 -nis -verbose -system-zlib \
   28                 -system-lib{png,jpeg} -xmlpatterns \
   29                 -no-{cups,fast,nas-sound,phonon} \
   30                 -x{cursor,inerama,kb,randr,render} \
   31                 -nomake demos -nomake examples -nomake docs \
   32                 -no-separate-debug-info -opensource -confirm-license
   33 
   34     LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD/lib" make
   35     make INSTALL_ROOT=$PKG install
   36 
   37     rm -rf `find $PKG/usr/share/qt4/mkspecs/* | \
   38        grep -v linux-g++ | grep -v common | grep -v pri | grep -v features`
   39     rm -f $PKG/usr/share/qt4/mkspecs/linux-g++/linux-g++
   40     rm -rf $PKG/usr/share/qt4/mkspecs/features/{mac,win32}
   41     rm -rf $PKG/usr/share/qt4/mkspecs/common/mac*
   42     rm -rf $PKG/usr/share/qt4/phrasebooks
   43 
   44     install -d $PKG/{etc/ld.so.conf.d,usr/{bin,lib,include}}
   45     echo "/usr/share/qt4/lib" > $PKG/etc/ld.so.conf.d/qt4.conf
   46 
   47     ln -s ../share/qt4/include     $PKG/usr/include/qt4
   48     ln -s ../share/qt4/lib         $PKG/usr/lib/qt4
   49     ln -s linux-g++                $PKG/usr/share/qt4/mkspecs/default
   50 
   51     mv $PKG/usr/share/qt4/lib/pkgconfig $PKG/usr/lib
   52 
   53     sed -i -e "s|-L$SRC/qt-everywhere-opensource-src-$version/lib ||g" \
   54            -e "s|$SRC/qt-everywhere-opensource-src-$version/bin|/usr/share/qt4/bin|g" \
   55         $PKG/usr/lib/pkgconfig/*.pc
   56 
   57     for f in assistant designer linguist lrelease lupdate moc qmake qtconfig uic \
   58     pixeltool qdbus qdbuscpp2xml qdbusxml2cpp qt3to4 rcc uic3; do
   59         ln -s ../share/qt4/bin/$f $PKG/usr/bin/$f
   60     done
   61 }

Generated by cgit