summaryrefslogtreecommitdiff
path: root/qt4/Pkgfile
blob: 1f11d0bbc286448d671ec928aad0a94eb8827011 (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
    6 
    7 name=qt4
    8 version=4.7.4
    9 release=1
   10 source=(http://get.qt.nokia.com/qt/source/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     sed -i "s|-O2|$CXXFLAGS|" mkspecs/common/g++.conf
   17     sed -i "s|INSTALLS += translations||" projects.pro
   18 
   19     ./configure -prefix /usr/share/qt4 \
   20                 -bindir /usr/share/qt4/bin \
   21                 -headerdir /usr/share/qt4/include \
   22                 -libdir /usr/share/qt4/lib \
   23                 -plugindir /usr/share/qt4/plugins \
   24                 -platform linux-g++ -release -shared -sm \
   25                 -nis -verbose -qt-gif -system-zlib \
   26                 -system-lib{png,jpeg} -xmlpatterns \
   27                 -no-{cups,fast,nas-sound,phonon} \
   28                 -x{cursor,inerama,kb,randr,render} \
   29                 -nomake demos -nomake examples -nomake docs \
   30                 -no-separate-debug-info -opensource -confirm-license
   31 
   32     make
   33     make INSTALL_ROOT=$PKG install
   34 
   35     rm -rf `find $PKG/usr/share/qt4/mkspecs/* | \
   36        grep -v linux-g++ | grep -v common | grep -v pri | grep -v features`
   37     rm -f $PKG/usr/share/qt4/mkspecs/linux-g++/linux-g++
   38     rm -rf $PKG/usr/share/qt4/mkspecs/features/{mac,win32}
   39     rm -rf $PKG/usr/share/qt4/mkspecs/common/mac*
   40     rm -rf $PKG/usr/share/qt4/phrasebooks
   41 
   42     install -d $PKG/{etc/ld.so.conf.d,usr/{bin,lib,include}}
   43     echo "/usr/share/qt4/lib" > $PKG/etc/ld.so.conf.d/qt4.conf
   44 
   45     ln -s ../share/qt4/include     $PKG/usr/include/qt4
   46     ln -s ../share/qt4/lib         $PKG/usr/lib/qt4
   47     ln -s linux-g++                $PKG/usr/share/qt4/mkspecs/default
   48 
   49     mv $PKG/usr/share/qt4/lib/pkgconfig $PKG/usr/lib
   50 
   51     sed -i -e "s|-L$SRC/qt-everywhere-opensource-src-$version/lib ||g" \
   52            -e "s|$SRC/qt-everywhere-opensource-src-$version/bin|/usr/share/qt4/bin|g" \
   53         $PKG/usr/lib/pkgconfig/*.pc
   54 
   55     for f in assistant designer linguist lrelease lupdate moc qmake qtconfig uic \
   56     pixeltool qdbus qdbuscpp2xml qdbusxml2cpp qt3to4 rcc uic3; do
   57         ln -s ../share/qt4/bin/$f $PKG/usr/bin/$f
   58     done
   59 }

Generated by cgit