summaryrefslogtreecommitdiffstats
path: root/src/readline.mk
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2009-04-20 13:02:18 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2009-04-20 13:02:18 (GMT)
commit3e43ec294ff9baadb27465d9f2e66826f6b11058 (patch)
tree6b54a9e5d3209637a2677394c1810364baad61ca /src/readline.mk
parentead0d7e5278b7f676a744cdf66077c6b05230fc0 (diff)
downloadmxe-3e43ec294ff9baadb27465d9f2e66826f6b11058.zip
mxe-3e43ec294ff9baadb27465d9f2e66826f6b11058.tar.gz
mxe-3e43ec294ff9baadb27465d9f2e66826f6b11058.tar.bz2
new package: readline
Diffstat (limited to 'src/readline.mk')
-rw-r--r--src/readline.mk30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/readline.mk b/src/readline.mk
new file mode 100644
index 0000000..b9c8c24
--- /dev/null
+++ b/src/readline.mk
@@ -0,0 +1,30 @@
+# Readline
+
+PKG := readline
+$(PKG)_VERSION := 6.0
+$(PKG)_CHECKSUM := 1e511b091514ef631c539552316787c75ace5262
+$(PKG)_SUBDIR := readline-$($(PKG)_VERSION)
+$(PKG)_FILE := readline-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://tiswww.case.edu/php/chet/readline/rltop.html
+$(PKG)_URL := http://ftp.gnu.org/gnu/readline/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc pdcurses
+
+define $(PKG)_UPDATE
+ wget -q -O- 'http://tiswww.case.edu/php/chet/readline/rltop.html' | \
+ grep 'readline-' | \
+ $(SED) -n 's,.*readline-\([0-9][^>]*\)\.tar.*,\1,p' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ $(SED) 's,^ *case SIGQUIT:.*,,' -i '$(1)/signals.c'
+ $(SED) 's,^ *case SIGTSTP:.*,,' -i '$(1)/signals.c'
+ cd '$(1)' && ./configure \
+ --host='$(TARGET)' \
+ --disable-shared \
+ --prefix='$(PREFIX)/$(TARGET)' \
+ --without-purify \
+ --with-curses \
+ LIBS='-lpdcurses'
+ $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
+endef