1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/qte/qte.conf
3 # Copyright (C) 2007 - 2021 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
17 var_insert LD_LIBRARY_PATH ':' "$QTDIR/lib"
18 var_insert PATH ':' "$QTDIR/bin"
19 export QTDIR LD_LIBRARY_PATH PATH
22 confopt="-prefix $root/$prefix -release -thread -qt-gif -system-zlib -system-libpng -system-libjpeg"
24 # # Embedded cross compile? requires native uic!
25 # if [ "$SDECFG_CROSSBUILD" -ne 0 ]; then
26 # var_append confopt " " "-embedded $SDECFG_ARCH"
29 # Freetype2 font support
30 var_append confopt " " "-freetype"
33 var_append confopt " " "-plugin-sql-sqlite"
35 if pkginstalled mysql; then
37 var_append confopt " " "-plugin-sql-mysql"
39 var_append ${x}_WRAPPER_APPEND ' ' "-L$( pkgprefix libdir mysql)/mysql"
41 for x in CXX GCC CPP; do
42 var_append ${x}_WRAPPER_APPEND ' ' "-I$( pkgprefix includedir mysql )/mysql"
43 var_append ${x}_WRAPPER_APPEND ' ' "-I$( pkgprefix includedir mysql )/mysql"
47 if pkginstalled postgresql; then
48 pkgprefix -t postgresql
49 var_append confopt " " "-plugin-sql-psql"
52 var_append ${x}_WRAPPER_APPEND ' ' "-L$( pkgprefix libdir postgresql)"
53 var_append ${x}_WRAPPER_APPEND ' ' "-L$( pkgprefix libdir postgresql)"
56 for x in CXX GCC CPP; do
57 var_append ${x}_WRAPPER_APPEND ' ' "-I$( pkgprefix includedir postgresql )/server"
58 var_append ${x}_WRAPPER_APPEND ' ' "-I$( pkgprefix includedir postgresql )"
62 # Hack: build with exceptions and rtti to make mythtv happy
63 sed -i -e 's,\(QMAKE_CXXFLAGS.*=.*\) -fno-exceptions -fno-rtti,\1,' mkspecs/qws/linux-x86-g++/qmake.conf
65 # TBD: create config.in
67 echo "yes" | ( CXX_WRAPPER_BYPASS=1; ./configure $confopt )
72 cat > $root/etc/profile.d/qte <<-EOT
80 # create compatibility links ...
81 (cd ${root}$libdir/; for x in libqte-mt.so*; do
86 # Do not build tutorials and examples. Tools and Plugins are build during install.
87 var_append makeopt " " "symlinks src-qmake src-moc sub-src"
89 hook_add preconf 5 "qte_preconf"
90 hook_add postmake 5 "qte_setup"
91 hook_add postinstall 5 "qte_links"