blob: 83fce437144773ad13ee22891b9aa8428b3b48fc (
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|-O2|$CXXFLAGS|" mkspecs/common/g++.conf
15 sed -i "s|-I. |$CXXFLAGS -I. |" qmake/Makefile.unix
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 sed -i 's|X11R6/||g' $PKG/usr/share/qt4/mkspecs/*/*.conf
42
43 ln -s ../../include/qt4 $PKG/usr/share/qt4/include
44 ln -s ../../lib $PKG/usr/share/qt4/lib
45 ln -s ../../lib/qt $PKG/usr/share/qt4/plugins
46 ln -s linux-g++ $PKG/usr/share/qt4/mkspecs/default
47
48 sed -i "s|-L$SRC/qt-x11-opensource-src-$version/lib ||g" $PKG/usr/lib/*.prl
49 sed -i -e "s|-L$SRC/qt-x11-opensource-src-$version/lib ||g" \
50 -e "s|$SRC/qt-x11-opensource-src-$version/bin|/usr/share/qt4/bin|g" \
51 $PKG/usr/lib/pkgconfig/*.pc
52
53 mkdir -p $PKG/usr/bin
54 cd $PKG/usr/bin
55 for f in assistant designer linguist lrelease lupdate moc qmake qtconfig uic
56 do
57 ln -s ../share/qt4/bin/$f $f-qt4
58 done
59
60 for f in pixeltool qdbus qdbuscpp2xml qdbusxml2cpp qt3to4 rcc uic3; do
61 ln -s ../share/qt4/bin/$f $f
62 done
63 }
|