2008-02-14 17:23:44 +00:00
|
|
|
# Description: Qt Free Edition
|
|
|
|
# URL: http://www.trolltech.com
|
2009-10-06 06:39:46 +00:00
|
|
|
# Maintainer: Jose V Beneyto, sepen at crux dot nu
|
|
|
|
# Packager: Johannes Winkelmann, jw at smts dot ch
|
2016-02-10 00:08:59 +00:00
|
|
|
# Depends on: fontconfig glib libmng libpng mesa3d xorg-libxcursor xorg-libxi xorg-libxinerama xorg-libxrandr xorg-libsm dbus
|
2008-05-16 07:57:33 +02:00
|
|
|
|
2008-02-14 17:23:44 +00:00
|
|
|
name=qt4
|
2016-01-14 16:35:02 +00:00
|
|
|
version=4.8.7
|
2013-10-03 13:39:24 +02:00
|
|
|
release=1
|
|
|
|
source=(http://download.qt-project.org/official_releases/qt/${version%.*}/$version/qt-everywhere-opensource-src-$version.tar.gz)
|
2008-02-14 17:23:44 +00:00
|
|
|
|
|
|
|
build () {
|
2010-02-09 11:12:44 +01:00
|
|
|
cd qt-everywhere-opensource-src-$version
|
|
|
|
|
2008-05-16 19:45:20 +02:00
|
|
|
sed -i 's|X11R6/||g' mkspecs/*/*.conf
|
2013-02-14 19:57:12 +01:00
|
|
|
|
|
|
|
sed -i "s|-O2|$CXXFLAGS|" mkspecs/common/g++-unix.conf
|
2008-05-16 07:57:33 +02:00
|
|
|
sed -i "s|INSTALLS += translations||" projects.pro
|
2012-01-04 08:23:09 +01:00
|
|
|
sed -i 's|"$COMPILER" -c|$COMPILER -c|' config.tests/unix/fvisibility.test
|
2008-02-14 17:23:44 +00:00
|
|
|
|
|
|
|
./configure -prefix /usr/share/qt4 \
|
2010-02-09 11:12:44 +01:00
|
|
|
-bindir /usr/share/qt4/bin \
|
|
|
|
-headerdir /usr/share/qt4/include \
|
|
|
|
-libdir /usr/share/qt4/lib \
|
|
|
|
-plugindir /usr/share/qt4/plugins \
|
|
|
|
-platform linux-g++ -release -shared -sm \
|
2011-12-20 08:47:08 +01:00
|
|
|
-nis -verbose -system-zlib \
|
2010-02-09 11:12:44 +01:00
|
|
|
-system-lib{png,jpeg} -xmlpatterns \
|
|
|
|
-no-{cups,fast,nas-sound,phonon} \
|
|
|
|
-x{cursor,inerama,kb,randr,render} \
|
2008-05-16 07:57:33 +02:00
|
|
|
-nomake demos -nomake examples -nomake docs \
|
2009-06-04 14:24:09 +02:00
|
|
|
-no-separate-debug-info -opensource -confirm-license
|
2010-02-09 11:12:44 +01:00
|
|
|
|
2012-05-24 08:58:55 +02:00
|
|
|
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD/lib" make
|
2008-02-14 17:23:44 +00:00
|
|
|
make INSTALL_ROOT=$PKG install
|
|
|
|
|
|
|
|
rm -rf `find $PKG/usr/share/qt4/mkspecs/* | \
|
2010-02-09 11:12:44 +01: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
|
|
|
|
2010-02-09 11:12:44 +01:00
|
|
|
install -d $PKG/{etc/ld.so.conf.d,usr/{bin,lib,include}}
|
|
|
|
echo "/usr/share/qt4/lib" > $PKG/etc/ld.so.conf.d/qt4.conf
|
|
|
|
|
2010-07-30 00:26:32 +02:00
|
|
|
ln -s ../share/qt4/include $PKG/usr/include/qt4
|
|
|
|
ln -s ../share/qt4/lib $PKG/usr/lib/qt4
|
2010-02-09 11:12:44 +01:00
|
|
|
ln -s linux-g++ $PKG/usr/share/qt4/mkspecs/default
|
|
|
|
|
|
|
|
mv $PKG/usr/share/qt4/lib/pkgconfig $PKG/usr/lib
|
|
|
|
|
|
|
|
sed -i -e "s|-L$SRC/qt-everywhere-opensource-src-$version/lib ||g" \
|
|
|
|
-e "s|$SRC/qt-everywhere-opensource-src-$version/bin|/usr/share/qt4/bin|g" \
|
|
|
|
$PKG/usr/lib/pkgconfig/*.pc
|
2008-02-14 17:23:44 +00:00
|
|
|
|
2010-02-09 11:12:44 +01:00
|
|
|
for f in assistant designer linguist lrelease lupdate moc qmake qtconfig uic \
|
|
|
|
pixeltool qdbus qdbuscpp2xml qdbusxml2cpp qt3to4 rcc uic3; do
|
|
|
|
ln -s ../share/qt4/bin/$f $PKG/usr/bin/$f
|
2008-02-14 17:23:44 +00:00
|
|
|
done
|
|
|
|
}
|