changeset 129:9fb896207491

translated package: gettext
author Volker Grabsch <vog@notjusthosting.com>
date Sat, 08 Nov 2008 18:46:08 +0100
parents 934257e8c8aa
children d7e4464a369d
files src/gettext.mk
diffstat 1 files changed, 25 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
new file mode 100644
--- /dev/null
+++ b/src/gettext.mk
@@ -0,0 +1,25 @@
+# gettext
+# http://www.gnu.org/software/gettext/
+
+PKG            := gettext
+$(PKG)_VERSION := 0.17
+$(PKG)_SUBDIR  := gettext-$($(PKG)_VERSION)/gettext-runtime
+$(PKG)_FILE    := gettext-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL     := ftp://ftp.gnu.org/pub/gnu/gettext/$($(PKG)_FILE)
+$(PKG)_DEPS    := gcc
+
+define $(PKG)_UPDATE
+    wget -q -O- 'ftp://ftp.gnu.org/pub/gnu/gettext/' | \
+    $(SED) -n 's,.*gettext-\([0-9][^>]*\)\.tar.*,\1,p' | \
+    sort | \
+    tail -1
+endef
+
+define $(PKG)_BUILD
+    cd '$(2)' && ./configure \
+        --host='$(TARGET)' \
+        --disable-shared \
+        --prefix='$(PREFIX)/$(TARGET)' \
+        --enable-threads=win32
+    $(MAKE) -C '$(2)/intl' -j '$(JOBS)' install
+endef