2008-02-14 17:23:44 +00:00
|
|
|
# Description: Qt Free Edition
|
|
|
|
# URL: http://www.trolltech.com
|
2008-05-16 07:57:33 +02:00
|
|
|
# Maintainer: Johannes Winkelmann, jw at smts dot ch
|
2008-05-16 16:23:27 +02:00
|
|
|
# Depends on: fontconfig glib libmng libpng mesa3d xorg-libxcursor xorg-libxi xorg-libxinerama xorg-libxrandr dbus
|
2008-05-16 07:57:33 +02:00
|
|
|
|
2008-02-14 17:23:44 +00:00
|
|
|
name=qt4
|
2009-03-03 12:15:15 +01:00
|
|
|
version=4.5.0
|
|
|
|
release=1
|
2008-05-16 13:32:01 +02:00
|
|
|
source=(ftp://ftp.trolltech.com/pub/qt/source/qt-x11-opensource-src-$version.tar.bz2)
|
2008-02-14 17:23:44 +00:00
|
|
|
|
|
|
|
build () {
|
|
|
|
cd qt-x11-opensource-src-$version
|
|
|
|
|
2008-05-16 19:45:20 +02:00
|
|
|
sed -i 's|X11R6/||g' mkspecs/*/*.conf
|
2008-05-16 07:57:33 +02:00
|
|
|
sed -i "s|-O2|$CXXFLAGS|" mkspecs/common/g++.conf
|
2008-02-14 17:23:44 +00:00
|
|
|
sed -i "s|read acceptance|acceptance=yes|" configure
|
2008-05-16 07:57:33 +02:00
|
|
|
sed -i "s|INSTALLS += translations||" projects.pro
|
2008-02-14 17:23:44 +00:00
|
|
|
|
|
|
|
./configure -prefix /usr/share/qt4 \
|
|
|
|
-bindir /usr/share/qt4/bin \
|
|
|
|
-headerdir /usr/include/qt4 \
|
|
|
|
-libdir /usr/lib \
|
|
|
|
-plugindir /usr/lib/qt4 \
|
|
|
|
-platform linux-g++ -release -shared -sm \
|
2009-03-03 12:15:15 +01:00
|
|
|
-nis -verbose -qt-gif -system-zlib \
|
2008-02-14 17:23:44 +00:00
|
|
|
-system-lib{png,jpeg} \
|
2008-09-03 18:01:17 +02:00
|
|
|
-no-{cups,fast,exceptions,nas-sound,phonon} \
|
2008-02-14 17:23:44 +00:00
|
|
|
-x{cursor,inerama,kb,randr,render} \
|
2008-05-16 07:57:33 +02:00
|
|
|
-nomake demos -nomake examples -nomake docs \
|
|
|
|
-no-separate-debug-info
|
|
|
|
|
2008-02-14 17:23:44 +00:00
|
|
|
make
|
|
|
|
make INSTALL_ROOT=$PKG install
|
|
|
|
|
|
|
|
rm -rf `find $PKG/usr/share/qt4/mkspecs/* | \
|
2008-10-16 21:49:38 +02:00
|
|
|
grep -v linux-g++ | grep -v common | grep -v pri | grep -v features`
|
2008-02-14 17:23:44 +00:00
|
|
|
rm -f $PKG/usr/share/qt4/mkspecs/linux-g++/linux-g++
|
2008-05-16 07:57:33 +02:00
|
|
|
rm -rf $PKG/usr/share/qt4/mkspecs/features/{mac,win32}
|
|
|
|
rm -rf $PKG/usr/share/qt4/mkspecs/common/mac*
|
|
|
|
rm -rf $PKG/usr/share/qt4/phrasebooks
|
2008-02-14 17:23:44 +00:00
|
|
|
|
|
|
|
ln -s ../../include/qt4 $PKG/usr/share/qt4/include
|
|
|
|
ln -s ../../lib $PKG/usr/share/qt4/lib
|
|
|
|
ln -s ../../lib/qt $PKG/usr/share/qt4/plugins
|
|
|
|
ln -s linux-g++ $PKG/usr/share/qt4/mkspecs/default
|
|
|
|
|
2008-05-16 07:57:33 +02:00
|
|
|
sed -i -e "s|-L$SRC/qt-x11-opensource-src-$version/lib ||g" \
|
|
|
|
-e "s|$SRC/qt-x11-opensource-src-$version/bin|/usr/share/qt4/bin|g" \
|
|
|
|
$PKG/usr/lib/pkgconfig/*.pc
|
|
|
|
|
2008-02-14 17:23:44 +00:00
|
|
|
mkdir -p $PKG/usr/bin
|
|
|
|
cd $PKG/usr/bin
|
2008-05-16 07:57:33 +02:00
|
|
|
for f in assistant designer linguist lrelease lupdate moc qmake qtconfig uic
|
|
|
|
do
|
2008-02-14 17:23:44 +00:00
|
|
|
ln -s ../share/qt4/bin/$f $f-qt4
|
|
|
|
done
|
|
|
|
|
|
|
|
for f in pixeltool qdbus qdbuscpp2xml qdbusxml2cpp qt3to4 rcc uic3; do
|
|
|
|
ln -s ../share/qt4/bin/$f $f
|
|
|
|
done
|
|
|
|
}
|