summaryrefslogtreecommitdiffstats
path: root/src/readline.mk
diff options
context:
space:
mode:
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