Commit | Line | Data |
---|---|---|
2891e795 VM |
1 | # Description: Qt Free Edition |
2 | # URL: http://www.trolltech.com | |
2891e795 | 3 | # Maintainer: Jose V Beneyto, sepen at crux dot nu |
c5745abc | 4 | # Packager: Johannes Winkelmann, jw at smts dot ch |
2891e795 VM |
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 | |
c5745abc | 9 | version=4.8.4 |
2891e795 | 10 | release=1 |
c5745abc | 11 | source=(http://releases.qt-project.org/qt4/source/qt-everywhere-opensource-src-$version.tar.gz) |
2891e795 VM |
12 | |
13 | build () { | |
14 | cd qt-everywhere-opensource-src-$version | |
c5745abc VM |
15 | |
16 | sed -i 's|X11R6/||g' mkspecs/*/*.conf | |
2891e795 VM |
17 | sed -i "s|-O2|$CXXFLAGS|" mkspecs/common/g++.conf |
18 | sed -i "s|INSTALLS += translations||" projects.pro | |
c5745abc VM |
19 | sed -i 's|"$COMPILER" -c|$COMPILER -c|' config.tests/unix/fvisibility.test |
20 | ||
2891e795 VM |
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 \ | |
c5745abc | 27 | -nis -verbose -system-zlib \ |
2891e795 VM |
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 \ | |
c5745abc VM |
32 | -no-separate-debug-info -opensource -confirm-license \ |
33 | -no-pch | |
2891e795 | 34 | |
c5745abc | 35 | LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD/lib" make |
2891e795 VM |
36 | make INSTALL_ROOT=$PKG install |
37 | ||
38 | rm -rf `find $PKG/usr/share/qt4/mkspecs/* | \ | |
c5745abc | 39 | grep -v linux-g++ | grep -v common | grep -v pri | grep -v features` |
2891e795 VM |
40 | rm -f $PKG/usr/share/qt4/mkspecs/linux-g++/linux-g++ |
41 | rm -rf $PKG/usr/share/qt4/mkspecs/features/{mac,win32} | |
42 | rm -rf $PKG/usr/share/qt4/mkspecs/common/mac* | |
43 | rm -rf $PKG/usr/share/qt4/phrasebooks | |
44 | ||
45 | install -d $PKG/{etc/ld.so.conf.d,usr/{bin,lib,include}} | |
46 | echo "/usr/share/qt4/lib" > $PKG/etc/ld.so.conf.d/qt4.conf | |
47 | ||
48 | ln -s ../share/qt4/include $PKG/usr/include/qt4 | |
49 | ln -s ../share/qt4/lib $PKG/usr/lib/qt4 | |
50 | ln -s linux-g++ $PKG/usr/share/qt4/mkspecs/default | |
51 | ||
52 | mv $PKG/usr/share/qt4/lib/pkgconfig $PKG/usr/lib | |
53 | ||
54 | sed -i -e "s|-L$SRC/qt-everywhere-opensource-src-$version/lib ||g" \ | |
55 | -e "s|$SRC/qt-everywhere-opensource-src-$version/bin|/usr/share/qt4/bin|g" \ | |
56 | $PKG/usr/lib/pkgconfig/*.pc | |
57 | ||
58 | for f in assistant designer linguist lrelease lupdate moc qmake qtconfig uic \ | |
c5745abc | 59 | pixeltool qdbus qdbuscpp2xml qdbusxml2cpp qt3to4 rcc uic3; do |
2891e795 VM |
60 | ln -s ../share/qt4/bin/$f $PKG/usr/bin/$f |
61 | done | |
62 | } |