Add optional build commands for qt-enabled aqbanking.

Enable this by export aqbanking_with_qt=yes before running install.
Needs qt4 from trolltech.com installed beforehand.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15533 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming
2007-02-09 13:30:55 +00:00
parent cc05b19836
commit 2e312544e5

View File

@@ -711,6 +711,32 @@ function inst_gwenhywfar() {
${PKG_CONFIG} --exists gwenhywfar || die "Gwenhywfar not installed correctly"
}
function inst_qt4() {
# This section is not a full install, but the .la creation is
# already useful in itself and that's why it has already been
# added.
_QTDIR=`unix_path ${QTDIR}`
# This section creates .la files for the Qt-4 DLLs so that
# libtool correctly links to the DLLs.
if test ! -f ${_QTDIR}/lib/libQtCore4.la ; then
qpushd ${_QTDIR}/lib
for A in lib*.a; do
LIBBASENAME=`basename ${A} .a`
OUTFILE="${LIBBASENAME}.la"
BASENAME=`echo ${LIBBASENAME} | sed -e"s/lib//" `
DLLNAME="${BASENAME}.dll"
# Create la file
echo "# Generated by foo bar libtool" > $OUTFILE
echo "dlname='../bin/${DLLNAME}'" >> $OUTFILE
echo "library_names='${DLLNAME}'" >> $OUTFILE
echo "libdir='/c/Qt/4.2.2/bin'" >> $OUTFILE
done
qpopd
fi
}
function inst_aqbanking() {
setup AqBanking
_AQBANKING_UDIR=`unix_path ${AQBANKING_DIR}`
@@ -724,6 +750,21 @@ function inst_aqbanking() {
wget_unpacked $AQBANKING_URL $DOWNLOAD_DIR $TMP_DIR
assert_one_dir $TMP_UDIR/aqbanking-*
qpushd $TMP_UDIR/aqbanking-*
if test x$aqbanking_with_qt = xyes; then
inst_qt4
_QTDIR=`unix_path ${QTDIR}`
./configure \
--with-gwen-dir=${_GWENHYWFAR_UDIR} \
--with-frontends="cbanking qbanking" \
--with-backends="aqdtaus aqhbci aqofxconnect" \
CPPFLAGS="-I${_LIBOFX_UDIR}/include" \
LDFLAGS="-L${_LIBOFX_UDIR}/lib" \
qt3_libs="-L${_QTDIR}/lib -L${_QTDIR}/bin -lQtCore4 -lQtGui4 -lQt3Support4" \
qt3_includes="-I${_QTDIR}/include -I${_QTDIR}/include/Qt -I${_QTDIR}/include/QtCore -I${_QTDIR}/include/QtGui -I${_QTDIR}/include/Qt3Support" \
--prefix=${_AQBANKING_UDIR}
make qt4-port
make clean
else
./configure \
--with-gwen-dir=${_GWENHYWFAR_UDIR} \
--with-frontends="cbanking" \
@@ -731,7 +772,8 @@ function inst_aqbanking() {
CPPFLAGS="-I${_LIBOFX_UDIR}/include" \
LDFLAGS="-L${_LIBOFX_UDIR}/lib" \
--prefix=${_AQBANKING_UDIR}
make
fi
make LDFLAGS="${LDFLAGS} -no-undefined"
make install
qpopd
fi