Commit | Line | Data |
---|---|---|
2891e795 VM |
1 | # Description: Qt Free Edition |
2 | # URL: http://www.trolltech.com | |
3 | # Packager: Johannes Winkelmann, jw at smts dot ch | |
4 | # Maintainer: Jose V Beneyto, sepen at crux dot nu | |
5 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu | |
6 | # Depends on: fontconfig glib libmng libpng mesa3d xorg-libxcursor xorg-libxi xorg-libxinerama xorg-libxrandr dbus | |
7 | ||
8 | name=qt4 | |
9 | version=4.7.3 | |
10 | release=1 | |
11 | source=(ftp://ftp.trolltech.com/pub/qt/source/qt-everywhere-opensource-src-$version.tar.gz) | |
12 | ||
13 | build () { | |
14 | cd qt-everywhere-opensource-src-$version | |
15 | # We avoid thumb instructions over CFLAGS | |
16 | export CFLAGS="$(echo $CFLAGS | sed -e 's/\-mthumb//')" | |
17 | sed -i -e 's|X11R6/||g' -e "s/\-mthumb//" mkspecs/*/*.conf | |
18 | export CXXFLAGS="$CFLAGS" | |
19 | sed -i "s|-O2|$CXXFLAGS|" mkspecs/common/g++.conf | |
20 | sed -i "s|INSTALLS += translations||" projects.pro | |
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 -qt-gif -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 | 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 | } |