changeset 69:ec91baeda774

new libraries: PDFlib Lite, libowfat (by Rocco Rutte)
author Volker Grabsch <vog@notjusthosting.com>
date Sat, 07 Jul 2007 22:35:15 +0000
parents 7936a113f475
children fd02ad006886
files build_mingw_cross_env.sh
diffstat 1 files changed, 98 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/build_mingw_cross_env.sh	Sat Jul 07 23:43:12 2007 +0200
+++ b/build_mingw_cross_env.sh	Sat Jul 07 22:35:15 2007 +0000
@@ -120,6 +120,8 @@
 VERSION_proj=4.5.0
 VERSION_libgeotiff=1.2.3
 VERSION_gdal=1.4.2
+VERSION_pdflib_lite=7.0.1
+VERSION_libowfat=0.25
 
 
 #---
@@ -1892,6 +1894,102 @@
 
 
 #---
+#   PDFlib Lite
+#
+#   http://www.pdflib.com/download/pdflib-family/pdflib-lite/
+#---
+
+case "$1" in
+
+--new-versions)
+    VERSION=`
+        wget -q -O- 'http://www.pdflib.com/download/pdflib-family/pdflib-lite/' |
+        $SED -n 's,.*PDFlib-Lite-\([0-9][^>]*\)\.tar.*,\1,p' |
+        head -1`
+    test -n "$VERSION"
+    $SED "s,^VERSION_pdflib_lite=.*,VERSION_pdflib_lite=$VERSION," -i "$0"
+    ;;
+
+--download)
+    cd "$DOWNLOAD"
+    DIR=`echo $VERSION_pdflib_lite | $SED 's,[^0-9],,g'`
+    tar tfz "PDFlib-Lite-$VERSION_pdflib_lite.tar.gz" &>/dev/null ||
+    wget -c "http://www.pdflib.com/binaries/PDFlib/$DIR/PDFlib-Lite-$VERSION_pdflib_lite.tar.gz"
+    ;;
+
+--build)
+    cd "$SOURCE"
+    tar xfvz "$DOWNLOAD/PDFlib-Lite-$VERSION_pdflib_lite.tar.gz"
+    cd "PDFlib-Lite-$VERSION_pdflib_lite"
+    $SED 's,ac_sys_system=`uname -s`,ac_sys_system=MinGW,' -i configure
+    ./configure \
+        --host="$TARGET" \
+        --disable-shared \
+        --prefix="$PREFIX/$TARGET" \
+        --with-pnglib="$PREFIX/$TARGET" \
+        --with-tifflib="$PREFIX/$TARGET" \
+        --with-zlib="$PREFIX/$TARGET" \
+        --without-java \
+        --without-py \
+        --without-perl \
+        --without-ruby \
+        --without-tcl \
+        --disable-php \
+        --enable-cxx \
+        --enable-large-files \
+        --with-openssl
+    $SED 's,-DPDF_PLATFORM=[^ ]* ,,' -i config/mkcommon.inc
+    $MAKE all install -C libs
+    cd "$SOURCE"
+    rm -rfv "PDFlib-Lite-$VERSION_pdflib_lite"
+    ;;
+
+esac
+
+
+#---
+#   libowfat
+#
+#   http://www.fefe.de/libowfat/
+#---
+
+case "$1" in
+
+--new-versions)
+    VERSION=`
+        wget -q -O- 'http://www.fefe.de/libowfat/' |
+        $SED -n 's,.*libowfat-\([0-9][^>]*\)\.tar.*,\1,p' |
+        head -1`
+    test -n "$VERSION"
+    $SED "s,^VERSION_libowfat=.*,VERSION_libowfat=$VERSION," -i "$0"
+    ;;
+
+--download)
+    cd "$DOWNLOAD"
+    tar tfj "libowfat-$VERSION_libowfat.tar.bz2" &>/dev/null ||
+    wget -c "http://dl.fefe.de/libowfat-$VERSION_libowfat.tar.bz2"
+    ;;
+
+--build)
+    cd "$SOURCE"
+    tar xfvj "$DOWNLOAD/libowfat-$VERSION_libowfat.tar.bz2"
+    cd "libowfat-$VERSION_libowfat"
+    $MAKE Makefile -f GNUmakefile \
+        CROSS="$TARGET-" \
+        prefix="$PREFIX/$TARGET" \
+        DIET=
+    $MAKE install \
+        CROSS="$TARGET-" \
+        prefix="$PREFIX/$TARGET" \
+        DIET=
+    cd "$SOURCE"
+    rm -rfv "libowfat-$VERSION_libowfat"
+    ;;
+
+esac
+
+
+#---
 #   Create package
 #---