62 lines
2.1 KiB
Plaintext
62 lines
2.1 KiB
Plaintext
# Description: Qt Free Edition
|
|
# URL: http://www.trolltech.com
|
|
# Maintainer: Johannes Winkelmann, jw at smts dot ch
|
|
# Depends on: fontconfig glib libmng libpng mesa3d xorg-libxcursor xorg-libxi xorg-libxinerama xorg-libxrandr dbus
|
|
|
|
name=qt4
|
|
version=4.4.0
|
|
release=1
|
|
source=(ftp://ftp.trolltech.com/pub/qt/source/qt-x11-opensource-src-$version.tar.bz2)
|
|
|
|
build () {
|
|
cd qt-x11-opensource-src-$version
|
|
|
|
sed -i 's|X11R6/||g' mkspecs/*/*.conf
|
|
sed -i "s|-O2|$CXXFLAGS|" mkspecs/common/g++.conf
|
|
sed -i "s|read acceptance|acceptance=yes|" configure
|
|
sed -i "s|INSTALLS += translations||" projects.pro
|
|
|
|
./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 \
|
|
-tablet -nis -verbose -qt-gif -system-zlib \
|
|
-system-lib{png,jpeg} \
|
|
-no-{cups,fast,exceptions,nas-sound} \
|
|
-x{cursor,inerama,kb,randr,render} \
|
|
-nomake demos -nomake examples -nomake docs \
|
|
-no-separate-debug-info
|
|
|
|
make
|
|
make INSTALL_ROOT=$PKG install
|
|
|
|
rm -rf `find $PKG/usr/share/qt4/mkspecs/* | \
|
|
grep -v linux-g++ | grep -v common | grep -v features`
|
|
rm -f $PKG/usr/share/qt4/mkspecs/linux-g++/linux-g++
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
mkdir -p $PKG/usr/bin
|
|
cd $PKG/usr/bin
|
|
for f in assistant designer linguist lrelease lupdate moc qmake qtconfig uic
|
|
do
|
|
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
|
|
}
|