1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/qt3/qt3.conf
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
4 # Copyright (C) 1998 - 2004 ROCK Linux Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 prefix="${SDECFG_PKG_QT_PREFIX:-opt/qt33}"
18 var_insert LD_LIBRARY_PATH ':' "$QTDIR/lib"
19 var_insert PATH ':' "$QTDIR/bin"
20 export QTDIR LD_LIBRARY_PATH PATH
22 # an optimization crashes g++ during the Makefile generator build :-(
23 echo "yes" | ( CXX_WRAPPER_BYPASS=1; ./configure -v $confopt )
25 hook_add preconf 5 qt_preconf
27 # Qt only supports some selected options ...
28 confopt="-prefix $root/$prefix -bindir $root$bindir -libdir $root$libdir \
29 -thread -qt-gif -system-zlib \
30 -system-libpng -system-libjpeg -xft -xrender"
32 pkginstalled libmng ' ' 'system-libmng'
34 [[ $libdir = *lib64* ]] && var_append confopt ' ' '-platform linux-g++-64'
36 [ "$SDECFG_PKG_QT_EXCEPTION" = "0" ] &&
37 var_append confopt " " "-no-g++-exceptions"
38 [ "$SDECFG_PKG_QT_STL" = "0" ] &&
39 var_append confopt " " "-no-stl"
41 if pkginstalled mysql; then
43 var_append confopt " " "-plugin-sql-mysql"
45 var_append ${x}_WRAPPER_APPEND ' ' "-L$( pkgprefix libdir mysql)/mysql"
47 for x in CXX GCC CPP; do
48 var_append ${x}_WRAPPER_APPEND ' ' "-I$( pkgprefix includedir mysql )/mysql"
49 var_append ${x}_WRAPPER_APPEND ' ' "-I$( pkgprefix includedir mysql )/mysql"
53 if pkginstalled postgresql; then
54 pkgprefix -t postgresql
55 var_append confopt " " "-plugin-sql-psql"
58 var_append ${x}_WRAPPER_APPEND ' ' "-L$( pkgprefix libdir postgresql)"
59 var_append ${x}_WRAPPER_APPEND ' ' "-L$( pkgprefix libdir postgresql)"
62 for x in CXX GCC CPP; do
63 var_append ${x}_WRAPPER_APPEND ' ' "-I$( pkgprefix includedir postgresql )/server"
64 var_append ${x}_WRAPPER_APPEND ' ' "-I$( pkgprefix includedir postgresql )"
69 # create compatibility links ...
70 (cd ${root}$libdir/; for x in libqt-mt.so*; do
74 echo "Copy some documentation ..."
75 # to be done in another package: examples extensions tutorial tools ...
76 cp -r ch* doc/html tutorial $docdir/
78 find $docdir -name '*.o' | xargs rm -vf
80 cat > $root/etc/profile.d/qt3 <<-EOT
86 hook_add postmake 5 qt_postmake
91 # we do not want running applications crash due cp'ing the new shared object over the old one
92 var_append makeinstopt ' ' 'INSTALL_FILE=install'