Mercurial > mxe-octave
changeset 330:67fb15f9072f
new package: readline
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Mon, 20 Apr 2009 15:02:18 +0200 |
parents | 522b01e6ec2a |
children | 0d33bf4aa55f |
files | src/readline.mk |
diffstat | 1 files changed, 30 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/readline.mk Mon Apr 20 15:02:18 2009 +0200 @@ -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