changeset 132:44c3bd0085e8

translated package: libiconv
author Volker Grabsch <vog@notjusthosting.com>
date Sat, 08 Nov 2008 19:12:19 +0100
parents ed98f6b98e35
children 078eb60a189c
files src/libiconv.mk
diffstat 1 files changed, 25 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/libiconv.mk	Sat Nov 08 19:12:19 2008 +0100
@@ -0,0 +1,25 @@
+# libiconv
+# http://www.gnu.org/software/libiconv/
+
+PKG            := libiconv
+$(PKG)_VERSION := 1.11.1
+$(PKG)_SUBDIR  := libiconv-$($(PKG)_VERSION)
+$(PKG)_FILE    := libiconv-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL     := http://ftp.gnu.org/pub/gnu/libiconv/$($(PKG)_FILE)
+$(PKG)_DEPS    := gcc
+
+define $(PKG)_UPDATE
+    wget -q -O- 'http://ftp.gnu.org/pub/gnu/libiconv/' | \
+    $(SED) -n 's,.*libiconv-\([0-9]*\)\.\([0-9]*\)\(\.[0-9]*\)\.tar.*,\1.\2\3,p' | \
+    sort -n | \
+    tail -1
+endef
+
+define $(PKG)_BUILD
+    cd '$(1)' && ./configure \
+        --host='$(TARGET)' \
+        --prefix='$(PREFIX)/$(TARGET)' \
+        --disable-shared \
+        --disable-nls
+    $(MAKE) -C '$(1)' -j '$(JOBS)' install
+endef