changeset 15:ac399e5d9fba

new library: gettext (libintl)
author Volker Grabsch <vog@notjusthosting.com>
date Tue, 19 Jun 2007 21:20:39 +0200
parents f0bc78ad384a
children 7732e7db965c
files build_mingw_cross_env.sh
diffstat 1 files changed, 38 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/build_mingw_cross_env.sh	Tue Jun 19 14:55:44 2007 +0200
+++ b/build_mingw_cross_env.sh	Tue Jun 19 21:20:39 2007 +0200
@@ -63,6 +63,7 @@
 VERSION_pkg_config=0.21
 VERSION_pthreads=2-8-0
 VERSION_zlib=1.2.3
+VERSION_gettext=0.16.1
 VERSION_libxml2=2.6.29
 VERSION_libgpg_error=1.5
 VERSION_libgcrypt=1.2.4
@@ -433,6 +434,43 @@
 
 
 #---
+#   gettext
+#
+#   http://www.gnu.org/software/gettext/
+#---
+
+case "$1" in
+
+--new-versions)
+    echo "VERSION_gettext=`
+        wget -q -O- 'ftp://ftp.gnu.org/pub/gnu/gettext/' |
+        sed -n 's,.*gettext-\([0-9][^>]*\)\.tar.*,\1,p' |
+        sort | tail -1`"
+    ;;
+
+--download)
+    cd "$DOWNLOAD"
+    tar tfz "gettext-$VERSION_gettext.tar.gz" &>/dev/null ||
+    wget -c "ftp://ftp.gnu.org/pub/gnu/gettext/gettext-$VERSION_gettext.tar.gz"
+    ;;
+
+--build)
+    cd "$SOURCE"
+    tar xfvz "$DOWNLOAD/gettext-$VERSION_gettext.tar.gz"
+    cd "gettext-$VERSION_gettext"
+    cd gettext-runtime
+    ./configure \
+        --build="$BUILD" --host="$TARGET" \
+        --disable-shared \
+        --prefix="$PREFIX/$TARGET" \
+        --enable-threads=win32
+    make -C intl install
+    ;;
+
+esac
+
+
+#---
 #   libxml2
 #
 #   http://www.xmlsoft.org/