-#!/bin/sh
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-QTVER=$(get_pkg_ver ${1})
-
-# Applying patches (if any)
-apply_patches ${1} &&
-
-# You can edit the $QTDIR/mkspecs/linux-g++/qmake.conf file and then
-# configure/build qt and it will use those settings
-cd ${LFS_TMP}/${1} &&
-export QTDIR=${PWD} &&
-export LD_LIBRARY_PATH=${PWD}/lib:${LD_LIBRARY_PATH} &&
-export PATH=${PWD}/bin:${PATH} &&
-# The "yes" input is needed to accept the license. */
-echo "yes" | ./configure \
- -prefix /opt/qt-${QTVER} \
- -sysconfdir /etc/qt \
- -qt-gif \
- -system-zlib \
- -system-libpng \
- -system-libjpeg \
- -system-libmng \
- -plugin-imgfmt-png \
- -plugin-imgfmt-jpeg \
- -plugin-imgfmt-mng \
- -no-exceptions \
- -thread \
- -tablet &&
-make sub-tools &&
-make install &&
-ln -v -sfn qt-${QTVER} /opt/qt &&
-ln -v -s libqt-mt.so /opt/qt/lib/libqt.so &&
-cp -v -r doc/man /opt/qt/doc &&
-cp -v -r examples /opt/qt/doc &&
-
-string_add "/opt/qt/lib" /etc/ld.so.conf &&
-ldconfig &&
-
-var_add_path QTDIR /etc/profile "/opt/qt" &&
-var_export QTDIR /etc/profile &&
-
-var_add_path MANPATH /etc/profile "/opt/qt/doc/man" &&
-var_export MANPATH /etc/profile &&
-
-var_add_path PKG_CONFIG_PATH /etc/profile "/opt/qt/lib/pkgconfig" &&
-var_export PKG_CONFIG_PATH /etc/profile &&
-
-# Enlèvement de la documentation pour sauver 40M.
-cd /opt/qt/doc &&
-rm -rf exemples html
-
-# Return last error
-exit $?