# HG changeset patch # User vog # Date 1183333667 -7200 # Node ID 59538eb93f163e5bb45093eaaf3fabad2655727d # Parent 081d06ac4db5198e5f7ab623848eb9fcc780df1e new library: xmlwrapp diff -r 081d06ac4db5 -r 59538eb93f16 build_mingw_cross_env.sh --- a/build_mingw_cross_env.sh Sun Jul 01 19:42:35 2007 +0200 +++ b/build_mingw_cross_env.sh Mon Jul 02 01:47:47 2007 +0200 @@ -92,6 +92,7 @@ VERSION_gnutls=1.6.3 VERSION_libxml2=2.6.29 VERSION_libxslt=1.1.21 +VERSION_xmlwrapp=0.5.0 VERSION_curl=7.16.3 VERSION_libpng=1.2.18 VERSION_jpeg=6b @@ -841,6 +842,52 @@ #--- +# xmlwrapp +# +# http://sourceforge.net/projects/xmlwrapp/ +#--- + +case "$1" in + +--new-versions) + VERSION=` + wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=142403' | + $SED -n 's,.*xmlwrapp-\([0-9][^>]*\)\.tgz.*,\1,p' | + head -1` + test -n "$VERSION" + sed "s,^VERSION_xmlwrapp=.*,VERSION_xmlwrapp=$VERSION," -i "$0" + ;; + +--download) + cd "$DOWNLOAD" + tar tfz "xmlwrapp-$VERSION_xmlwrapp.tgz" &>/dev/null || + wget -c "http://downloads.sourceforge.net/xmlwrapp/xmlwrapp-$VERSION_xmlwrapp.tgz" + ;; + +--build) + cd "$SOURCE" + tar xfvz "$DOWNLOAD/xmlwrapp-$VERSION_xmlwrapp.tgz" + cd "xmlwrapp-$VERSION_xmlwrapp" + EXSLT_LIBS=`$TARGET-pkg-config libexslt --libs | sed 's,-L[^ ]*,,g'` + $SED 's,.*/usr/include.*,,' -i configure.pl + $SED "s,-lxslt -lexslt,$EXSLT_LIBS," -i configure.pl + CXX="$TARGET-g++" \ + AR="$TARGET-ar" \ + CXXFLAGS="`$PREFIX/$TARGET/bin/xml2-config --cflags`" \ + ./configure.pl \ + --disable-shared \ + --prefix="$PREFIX/$TARGET" \ + --xml2-config="$PREFIX/$TARGET/bin/xml2-config" \ + --xslt-config="$PREFIX/$TARGET/bin/xslt-config" + $MAKE install + cd "$SOURCE" + rm -rfv "xmlwrapp-$VERSION_xmlwrapp" + ;; + +esac + + +#--- # cURL # # http://curl.haxx.se/libcurl/