|
|
@ -21,9 +21,14 @@ |
|
|
|
# --- ROCK-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
if [ $prefix_auto = 1 ] ; then |
|
|
|
prefix="opt/qt33" |
|
|
|
prefix="opt/$xpkg" |
|
|
|
set_confopt |
|
|
|
fi |
|
|
|
if [ $xpkg == 'qt40' ] ; then |
|
|
|
splitdesc_debug() { desc_I="Qt debug libraries"; } |
|
|
|
splitreg 10 debug $prefix/lib/.+_debug |
|
|
|
splitreg 41 dev $prefix/examples/ |
|
|
|
fi |
|
|
|
|
|
|
|
qt_pass() { |
|
|
|
QTDIR=$PWD |
|
|
@ -33,22 +38,31 @@ qt_pass() { |
|
|
|
|
|
|
|
# Qt only supports some selected options ... |
|
|
|
confopt="$1 -prefix $root/$prefix -bindir $bindir -libdir $libdir \ |
|
|
|
-docdir $docdir -sysconfdir $sysconfdir \ |
|
|
|
-thread -qt-gif -xft -xrender -no-g++-exceptions -no-stl" |
|
|
|
|
|
|
|
pkginstalled zlib && var_append confopt " " "-system-zlib" |
|
|
|
-docdir $docdir -sysconfdir $sysconfdir" |
|
|
|
|
|
|
|
pkginstalled libpng && var_append confopt " " "-system-libpng" |
|
|
|
pkginstalled libmng && var_append confopt " " "-system-libmng" |
|
|
|
pkginstalled libjpeg && var_append confopt " " "-system-libjpeg" |
|
|
|
|
|
|
|
CXXFLAGS="$CXXFLAGS -I/usr/X11/include" |
|
|
|
# config options used by all qt versions |
|
|
|
var_append confopt " " "-qt-gif" |
|
|
|
pkginstalled nas && var_append confopt " " "-system-nas-sound" |
|
|
|
|
|
|
|
pkginstalled mysql && var_append confopt " " "-plugin-sql-mysql \ |
|
|
|
-I$pkg_mysql_prefix/include/mysql -L$pkg_mysql_prefix/lib" |
|
|
|
# pkginstalled postgresql && var_append confopt " " "-plugin-sql-psql \ |
|
|
|
# -I$pkg_postgresql_prefix/include" # maybe more |
|
|
|
# -I$pkg_postgresql_prefix/include" # maybe more |
|
|
|
|
|
|
|
if [ $xpkg == qt33 ]; then |
|
|
|
var_append CXXFLAGS " " "-I/usr/X11/include" |
|
|
|
pkginstalled libmng && var_append confopt " " "-system-libmng" |
|
|
|
var_append confopt " " "-thread" |
|
|
|
var_append confopt " " "-xft" |
|
|
|
var_append confopt " " "-no-stl" |
|
|
|
var_append confopt " " "-xrender" |
|
|
|
var_append confopt " " "-no-g++-exceptions" |
|
|
|
pkginstalled zlib && var_append confopt " " "-system-zlib" |
|
|
|
pkginstalled libpng && var_append confopt " " "-system-libpng" |
|
|
|
pkginstalled libjpeg && var_append confopt " " "-system-libjpeg" |
|
|
|
elif [ $xpkg == qt40 ]; then |
|
|
|
pkginstalled postgresql && var_append confopt " " "-plugin-sql-psql \ |
|
|
|
-I$pkg_postgresql_prefix/include -L$pkg_postgresql_prefix/lib" |
|
|
|
fi |
|
|
|
|
|
|
|
# an optimization crashes g++ during the Makefile generator build :-( |
|
|
|
echo "yes" | ( CXX_WRAPPER_BYPASS=1 ; ./configure $confopt ) |
|
|
@ -65,18 +79,29 @@ qt_pass() { |
|
|
|
[ -f libqt-mt.a ] && ln -svf libqt-mt.a libqt.a |
|
|
|
) |
|
|
|
|
|
|
|
echo "Copy some documentation ..." |
|
|
|
# to be done in another package: examples extensions tutorial tools ... |
|
|
|
cp -a ch* tutorial $docdir/ |
|
|
|
echo "Copy some documentation ..." |
|
|
|
if [ $xpkg == qt33 ] ; then |
|
|
|
cp -a ch* tutorial $docdir/ |
|
|
|
elif [ $xpkg == qt40 ] ; then |
|
|
|
cp -a changes-$ver $docdir/ |
|
|
|
fi |
|
|
|
|
|
|
|
find $docdir -name '*.o' | xargs rm -vf |
|
|
|
find $docdir -type f -perm +111 -exec strip -v '{}' \; |
|
|
|
|
|
|
|
# until kde 4 which will be based on qt4 the standard is qt33 here |
|
|
|
if [ $xpkg == qt33 ]; then |
|
|
|
cat > $root/etc/profile.d/qt33 <<-EOT |
|
|
|
QT33DIR=/$prefix |
|
|
|
QTDIR=/$prefix |
|
|
|
QT33DIR=$root/opt/qt33 |
|
|
|
QTDIR=$QT33DIR |
|
|
|
export QT33DIR QTDIR |
|
|
|
EOT |
|
|
|
elif [ $xpkg == qt40 ]; then |
|
|
|
cat > $root/etc/profile.d/qt40 <<-EOT |
|
|
|
QT40DIR=$root/opt/qt40 |
|
|
|
export QT40DIR |
|
|
|
EOT |
|
|
|
fi |
|
|
|
} |
|
|
|
|
|
|
|
qt_main() { |
|
|
|