r15533 - gnucash/trunk/packaging/win32 - Add optional build commands for qt-enabled aqbanking.

Christian Stimming cstim at cvs.gnucash.org
Fri Feb 9 08:30:56 EST 2007


Author: cstim
Date: 2007-02-09 08:30:55 -0500 (Fri, 09 Feb 2007)
New Revision: 15533
Trac: http://svn.gnucash.org/trac/changeset/15533

Modified:
   gnucash/trunk/packaging/win32/install.sh
Log:
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.

Modified: gnucash/trunk/packaging/win32/install.sh
===================================================================
--- gnucash/trunk/packaging/win32/install.sh	2007-02-09 11:30:48 UTC (rev 15532)
+++ gnucash/trunk/packaging/win32/install.sh	2007-02-09 13:30:55 UTC (rev 15533)
@@ -711,6 +711,32 @@
     ${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 @@
 	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 @@
 		CPPFLAGS="-I${_LIBOFX_UDIR}/include" \
 		LDFLAGS="-L${_LIBOFX_UDIR}/lib" \
 	        --prefix=${_AQBANKING_UDIR}
-	    make
+	    fi
+	    make LDFLAGS="${LDFLAGS} -no-undefined"
 	    make install
 	qpopd
     fi



More information about the gnucash-changes mailing list