Browse Source

qt4: fixed to correctly parse the database package out of database/driver tuple

stable/0.6
Christian Wiese 12 years ago committed by Christian Wiese
parent
commit
1569919dee
  1. 6
      qt/qt4/qt4.conf

6
qt/qt4/qt4.conf

@ -113,20 +113,20 @@ var_append confopt ' ' "-xmlpatterns"
# Add database support for all installed databases. # Add database support for all installed databases.
tuples="mysql:mysql postgresql:psql sqlite:sqlite sqlite2:sqlite2" tuples="mysql:mysql postgresql:psql sqlite:sqlite sqlite2:sqlite2"
for tuple in $tuples; do for tuple in $tuples; do
tuplepkg=${tuple#:*} tuplepkg=${tuple%:*}
tupledriver=${tuple#*:} tupledriver=${tuple#*:}
if pkginstalled $tuplepkg; then if pkginstalled $tuplepkg; then
pkgprefix -t $tuplepkg pkgprefix -t $tuplepkg
var_append confopt " " "-plugin-sql-$tupledriver" var_append confopt " " "-plugin-sql-$tupledriver"
for x in CXX GCC; do for x in CXX GCC; do
var_append ${x}_WRAPPER_APPEND ' ' "-L$( pkgprefix libdir $tuplepkg )" var_append ${x}_WRAPPER_APPEND ' ' "-L$( pkgprefix libdir $tuplepkg )"
done done
for x in CXX GCC CPP; do for x in CXX GCC CPP; do
var_append ${x}_WRAPPER_APPEND ' ' "-I$( pkgprefix includedir $tuplepkg )" var_append ${x}_WRAPPER_APPEND ' ' "-I$( pkgprefix includedir $tuplepkg )"
var_append ${x}_WRAPPER_APPEND ' ' "-I$( pkgprefix includedir $tuplepkg )" var_append ${x}_WRAPPER_APPEND ' ' "-I$( pkgprefix includedir $tuplepkg )"
done done
fi fi
done done

Loading…
Cancel
Save