#
# author: hackbard@hackdaworld.dyndns.org
#
-# [V] 3.3.2
+# [V] 3.3.4
# [S] 3-4
-# [D] qt-x11-free-3.3.2.tar.bz2 ftp://ftp.trolltech.com/qt/source/
+# [D] qt-x11-free-3.3.4.tar.bz2 ftp://ftp.trolltech.com/qt/source/
pre_install() {
# where is qt stuff
# modify configure, so it is none interactive
sed 's/read acceptance/acceptance="yes"/' configure > configure_tmp
mv -vf configure_tmp configure ; chmod 755 configure
+
+ # adjust qmake.conf directories (use ' instead of " to not eval $QTDIR)
+ sed -i -e 's:$(QTDIR)/include:&/qt:' -e 's:$(QTDIR)/lib:&/qt:' \
+ mkspecs/linux*/qmake.conf
}
-confopt="-prefix $prefix -headerdir $root/usr/include/qt"
-confopt="$confopt -docdir $docdir"
-confopt="$confopt -system-zlib -thread -no-stl -no-g++-exceptions"
-confopt="$confopt -system-libpng -system-libjpeg -qt-gif"
-confopt="$confopt -plugin-imgfmt-mng"
+confopt="-prefix $prefix -headerdir $prefix/include/qt -docdir $docdir"
+confopt="$confopt -plugindir $prefix/lib/qt/plugins -datadir $prefix/share/qt"
+confopt="$confopt -translationdir $prefix/share/qt/translation"
+confopt="$confopt -sysconfdir $sysconfdir/qt"
+confopt="$confopt -thread -no-exceptions"
+confopt="$confopt -system-zlib -system-libpng -system-libjpeg -qt-gif"
+confopt="$confopt -plugin-imgfmt-mng -plugin-imgfmt-png"
+
+build_main() {
+ ./configure $confopt
+ find -type f -name Makefile | xargs sed -i "s@-Wl,-rpath,/usr/lib@@g"
+ make $make_conf
+ make $install_conf install
+ }
post_install() {
# compatibility symlinks
done
# documentation
mkdir -p $docdir
- cp -r doc/man $prefix/man
- cp -r examples $docdir
+ cp -v -r doc/man $prefix/man
+ cp -v -r examples $docdir
# profile
cat > $root/etc/profile.d/qt <<-EOP
QTDIR=$prefix