mxe/src/readline.mk

31 lines
990 B
Makefile
Raw Normal View History

2009-04-20 14:02:18 +01:00
# 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 SHARED_LIBS=
2009-04-20 14:02:18 +01:00
endef