CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
qt4: update to 4.8.4
[ports/opt-arm.git] / qt4 / Pkgfile
1 # Description: Qt Free Edition
2 # URL: http://www.trolltech.com
3 # Maintainer: Jose V Beneyto, sepen at crux dot nu
4 # Packager: Johannes Winkelmann, jw at smts dot ch
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.8.4
10 release=1
11 source=(http://releases.qt-project.org/qt4/source/qt-everywhere-opensource-src-$version.tar.gz)
12
13 build () {
14 cd qt-everywhere-opensource-src-$version
15
16 sed -i 's|X11R6/||g' mkspecs/*/*.conf
17 sed -i "s|-O2|$CXXFLAGS|" mkspecs/common/g++.conf
18 sed -i "s|INSTALLS += translations||" projects.pro
19 sed -i 's|"$COMPILER" -c|$COMPILER -c|' config.tests/unix/fvisibility.test
20
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 -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 -no-pch
34
35 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD/lib" make
36 make INSTALL_ROOT=$PKG install
37
38 rm -rf `find $PKG/usr/share/qt4/mkspecs/* | \
39 grep -v linux-g++ | grep -v common | grep -v pri | grep -v features`
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 \
59 pixeltool qdbus qdbuscpp2xml qdbusxml2cpp qt3to4 rcc uic3; do
60 ln -s ../share/qt4/bin/$f $PKG/usr/bin/$f
61 done
62 }