CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
keyutils: updated to 1.6.1
[ports/opt-arm.git] / qt4 / Pkgfile
CommitLineData
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 5# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
af48b7a7 6# Depends on: fontconfig glib libmng libpng mesa3d xorg-libxcursor xorg-libxi xorg-libxinerama xorg-libxrandr dbus
2891e795
VM
7
8name=qt4
af48b7a7 9version=4.8.7
2891e795 10release=1
69603186 11source=(http://download.qt-project.org/official_releases/qt/${version%.*}/$version/qt-everywhere-opensource-src-$version.tar.gz)
2891e795
VM
12
13build () {
14 cd qt-everywhere-opensource-src-$version
c5745abc
VM
15
16 sed -i 's|X11R6/||g' mkspecs/*/*.conf
4178823d 17
2891e795
VM
18 sed -i "s|-O2|$CXXFLAGS|" mkspecs/common/g++.conf
19 sed -i "s|INSTALLS += translations||" projects.pro
c5745abc
VM
20 sed -i 's|"$COMPILER" -c|$COMPILER -c|' config.tests/unix/fvisibility.test
21
2891e795
VM
22 ./configure -prefix /usr/share/qt4 \
23 -bindir /usr/share/qt4/bin \
24 -headerdir /usr/share/qt4/include \
25 -libdir /usr/share/qt4/lib \
26 -plugindir /usr/share/qt4/plugins \
27 -platform linux-g++ -release -shared -sm \
c5745abc 28 -nis -verbose -system-zlib \
2891e795
VM
29 -system-lib{png,jpeg} -xmlpatterns \
30 -no-{cups,fast,nas-sound,phonon} \
31 -x{cursor,inerama,kb,randr,render} \
32 -nomake demos -nomake examples -nomake docs \
c5745abc
VM
33 -no-separate-debug-info -opensource -confirm-license \
34 -no-pch
2891e795 35
c5745abc 36 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD/lib" make
2891e795
VM
37 make INSTALL_ROOT=$PKG install
38
39 rm -rf `find $PKG/usr/share/qt4/mkspecs/* | \
c5745abc 40 grep -v linux-g++ | grep -v common | grep -v pri | grep -v features`
2891e795
VM
41 rm -f $PKG/usr/share/qt4/mkspecs/linux-g++/linux-g++
42 rm -rf $PKG/usr/share/qt4/mkspecs/features/{mac,win32}
43 rm -rf $PKG/usr/share/qt4/mkspecs/common/mac*
44 rm -rf $PKG/usr/share/qt4/phrasebooks
45
46 install -d $PKG/{etc/ld.so.conf.d,usr/{bin,lib,include}}
47 echo "/usr/share/qt4/lib" > $PKG/etc/ld.so.conf.d/qt4.conf
48
49 ln -s ../share/qt4/include $PKG/usr/include/qt4
50 ln -s ../share/qt4/lib $PKG/usr/lib/qt4
51 ln -s linux-g++ $PKG/usr/share/qt4/mkspecs/default
52
53 mv $PKG/usr/share/qt4/lib/pkgconfig $PKG/usr/lib
54
55 sed -i -e "s|-L$SRC/qt-everywhere-opensource-src-$version/lib ||g" \
56 -e "s|$SRC/qt-everywhere-opensource-src-$version/bin|/usr/share/qt4/bin|g" \
57 $PKG/usr/lib/pkgconfig/*.pc
58
59 for f in assistant designer linguist lrelease lupdate moc qmake qtconfig uic \
c5745abc 60 pixeltool qdbus qdbuscpp2xml qdbusxml2cpp qt3to4 rcc uic3; do
2891e795
VM
61 ln -s ../share/qt4/bin/$f $PKG/usr/bin/$f
62 done
63}