|
|
|
@ -77,7 +77,7 @@ pkg_setup() {
|
|
|
|
|
ewarn
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
export TQTDIR="${S}"
|
|
|
|
|
export QTDIR="${S}"
|
|
|
|
|
|
|
|
|
|
CXX=$(tc-getCXX)
|
|
|
|
|
if [[ ${CXX/g++/} != ${CXX} ]]; then
|
|
|
|
@ -164,7 +164,7 @@ src_prepare() {
|
|
|
|
|
# Ensuring tqt build with mariadb flag
|
|
|
|
|
if use mariadb ; then
|
|
|
|
|
sed -i 's/-lmysqlclient/-lmariadb/' "${S}/configure" || die
|
|
|
|
|
sed -i 's/-lmysqlclient/-lmariadb/' "${S}/config.tests/unix/checkavail" || dei
|
|
|
|
|
sed -i 's/-lmysqlclient/-lmariadb/' "${S}/config.tests/unix/checkavail" || die
|
|
|
|
|
sed -i 's/-lmysqlclient/-lmariadb/' "${S}/src/sql/qt_sql.pri" || die
|
|
|
|
|
sed -i 's/-lmysqlclient/-lmariadb/' "${S}/plugins/src/sqldrivers/mysql/mysql.pro" || die
|
|
|
|
|
fi
|
|
|
|
@ -201,8 +201,13 @@ src_configure() {
|
|
|
|
|
|
|
|
|
|
use debug && myconf+=" -debug" || myconf+=" -release -no-g++-exceptions -no-exceptions"
|
|
|
|
|
|
|
|
|
|
use mysql && myconf+=" -plugin-sql-mysql -I/usr/include/mysql -L/usr/$(get_libdir)/mysql" || myconf+=" -no-sql-mysql"
|
|
|
|
|
use mariadb && myconf+=" -plugin-sql-mysql -I/usr/include/mariadb -L/usr/$(get_libdir)/mariadb" || myconf+=" -no-sql-mysql"
|
|
|
|
|
if use mysql ; then
|
|
|
|
|
myconf+=" -plugin-sql-mysql -I/usr/include/mysql -L/usr/$(get_libdir)/mysql"
|
|
|
|
|
elif use mariadb ; then
|
|
|
|
|
myconf+=" -plugin-sql-mysql -I/usr/include/mariadb -L/usr/$(get_libdir)/mariadb"
|
|
|
|
|
else
|
|
|
|
|
myconf+=" -no-sql-mysql"
|
|
|
|
|
fi
|
|
|
|
|
use postgres && myconf+=" -plugin-sql-psql -I/usr/include/postgresql/server -I/usr/include/postgresql/pgsql -I/usr/include/postgresql/pgsql/server" || myconf+=" -no-sql-psql"
|
|
|
|
|
use firebird && myconf+=" -plugin-sql-ibase -I/opt/firebird/include" || myconf+=" -no-sql-ibase"
|
|
|
|
|
use sqlite && myconf+=" -plugin-sql-sqlite -plugin-sql-sqlite3" || myconf+=" -no-sql-sqlite -no-sql-sqlite3"
|
|
|
|
@ -246,7 +251,13 @@ src_install() {
|
|
|
|
|
|
|
|
|
|
# Fix qmake.conf files
|
|
|
|
|
find "${D}${TQTBASE}/mkspecs" -name qmake.conf | xargs \
|
|
|
|
|
sed -i -e "s:\$(TQTDIR):${TQTBASE}:" || die
|
|
|
|
|
sed -i -e "s:\$(QTDIR):${TQTBASE}:" || die
|
|
|
|
|
find "${D}${TQTBASE}/mkspecs" -name qmake.conf | while read file
|
|
|
|
|
do
|
|
|
|
|
if ! grep CONFIG "${file}" | grep -q thread ; then
|
|
|
|
|
sed "s/link_prl/link_prl thread/" -i "${file}" || die
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# Fix pkgconfig location
|
|
|
|
|
dodir /usr/$(get_libdir)
|
|
|
|
|