summaryrefslogtreecommitdiffstats
path: root/src/libiconv.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/libiconv.mk')
-rw-r--r--src/libiconv.mk25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/libiconv.mk b/src/libiconv.mk
new file mode 100644
index 0000000..04df747
--- /dev/null
+++ b/src/libiconv.mk
@@ -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