summaryrefslogtreecommitdiff
path: root/qt4/Pkgfile
blob: dbc0654a0b11fdec3dc4c2d2d05c943ff22b59b0 (plain)
    1 # Description: Qt Free Edition
    2 # URL: http://www.trolltech.com
    3 # Maintainer: Johannes Winkelmann, jw at smts dot ch
    4 # Depends on: fontconfig glib libmng libpng mesa3d xorg-libxcursor xorg-libxi xorg-libxinerama xorg-libxrandr dbus
    5 
    6 name=qt4
    7 version=4.4.0
    8 release=1
    9 source=(ftp://ftp.trolltech.com/pub/qt/source/qt-x11-opensource-src-$version.tar.bz2)
   10 
   11 build () {
   12     cd qt-x11-opensource-src-$version
   13     
   14     sed -i 's|X11R6/||g' mkspecs/*/*.conf
   15     sed -i "s|-O2|$CXXFLAGS|" mkspecs/common/g++.conf
   16     sed -i "s|read acceptance|acceptance=yes|" configure
   17     sed -i "s|INSTALLS += translations||" projects.pro
   18 
   19     ./configure -prefix /usr/share/qt4 \
   20 		-bindir /usr/share/qt4/bin \
   21 		-headerdir /usr/include/qt4 \
   22 		-libdir /usr/lib \
   23 		-plugindir /usr/lib/qt4 \
   24 		-platform linux-g++ -release -shared -sm \
   25 		-tablet -nis -verbose -qt-gif -system-zlib \
   26 		-system-lib{png,jpeg} \
   27 		-no-{cups,fast,exceptions,nas-sound} \
   28 		-x{cursor,inerama,kb,randr,render} \
   29                 -nomake demos -nomake examples -nomake docs \
   30                 -no-separate-debug-info
   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 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     ln -s ../../include/qt4  $PKG/usr/share/qt4/include
   43     ln -s ../../lib          $PKG/usr/share/qt4/lib
   44     ln -s ../../lib/qt       $PKG/usr/share/qt4/plugins
   45     ln -s linux-g++          $PKG/usr/share/qt4/mkspecs/default
   46 
   47     sed -i "s|-L$SRC/qt-x11-opensource-src-$version/lib ||g" $PKG/usr/lib/*.prl
   48     sed -i -e "s|-L$SRC/qt-x11-opensource-src-$version/lib ||g" \
   49            -e "s|$SRC/qt-x11-opensource-src-$version/bin|/usr/share/qt4/bin|g" \
   50 	$PKG/usr/lib/pkgconfig/*.pc
   51 	
   52     mkdir -p $PKG/usr/bin
   53     cd $PKG/usr/bin
   54     for f in assistant designer linguist lrelease lupdate moc qmake qtconfig uic
   55     do 
   56         ln -s ../share/qt4/bin/$f $f-qt4
   57     done
   58 
   59     for f in pixeltool qdbus qdbuscpp2xml qdbusxml2cpp qt3to4 rcc uic3; do 
   60         ln -s ../share/qt4/bin/$f $f
   61     done
   62 }

Generated by cgit