1 # hdw - linux qt package
3 # author: hackbard@hackdaworld.dyndns.org
7 # [D] qt-x11-free-3.3.4.tar.bz2 ftp://ftp.trolltech.com/qt/source/
12 export PATH="$PATH:$QTDIR/bin"
13 export LD_LIBRARY_PATH="$QTDIR/lib"
15 # modify configure, so it is none interactive
16 sed 's/read acceptance/acceptance="yes"/' configure > configure_tmp
17 mv -vf configure_tmp configure ; chmod 755 configure
19 # adjust qmake.conf directories (use ' instead of " to not eval $QTDIR)
20 sed -i -e 's:$(QTDIR)/include:&/qt:' -e 's:$(QTDIR)/lib:&/qt:' \
21 mkspecs/linux*/qmake.conf
24 confopt="-prefix $prefix -headerdir $prefix/include/qt -docdir $docdir"
25 confopt="$confopt -plugindir $prefix/lib/qt/plugins -datadir $prefix/share/qt"
26 confopt="$confopt -translationdir $prefix/share/qt/translation"
27 confopt="$confopt -sysconfdir $sysconfdir/qt"
28 confopt="$confopt -thread -no-exceptions"
29 confopt="$confopt -system-zlib -system-libpng -system-libjpeg -qt-gif"
30 confopt="$confopt -plugin-imgfmt-mng -plugin-imgfmt-png"
34 find -type f -name Makefile | xargs sed -i "s@-Wl,-rpath,/usr/lib@@g"
36 make $install_conf install
40 # compatibility symlinks
41 for i in $prefix/lib/libqt-mt.so*; do
46 cp -v -r doc/man $prefix/man
47 cp -v -r examples $docdir
49 cat > $root/etc/profile.d/qt <<-EOP
51 PATH="\$PATH:\$QTDIR/bin"
52 MANDIR="\$MANPATH:\$QTDIR/man"
53 export QTDIR PATH MANPATH