blob: 08f9ef674f855f4c347d67a81a82bed91c2603cd (
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.2
8 release=2
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,phonon} \
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 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 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 -e "s|-L$SRC/qt-x11-opensource-src-$version/lib ||g" \
48 -e "s|$SRC/qt-x11-opensource-src-$version/bin|/usr/share/qt4/bin|g" \
49 $PKG/usr/lib/pkgconfig/*.pc
50
51 mkdir -p $PKG/usr/bin
52 cd $PKG/usr/bin
53 for f in assistant designer linguist lrelease lupdate moc qmake qtconfig uic
54 do
55 ln -s ../share/qt4/bin/$f $f-qt4
56 done
57
58 for f in pixeltool qdbus qdbuscpp2xml qdbusxml2cpp qt3to4 rcc uic3; do
59 ln -s ../share/qt4/bin/$f $f
60 done
61 }
|