You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxe/src/readline.mk

30 lines
974 B

# This file is part of MXE. See LICENSE.md for licensing information.
PKG := readline
$(PKG)_WEBSITE := https://tiswww.case.edu/php/chet/readline/rltop.html
$(PKG)_DESCR := Readline
$(PKG)_IGNORE :=
$(PKG)_VERSION := 8.0
$(PKG)_CHECKSUM := e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461
$(PKG)_SUBDIR := readline-$($(PKG)_VERSION)
$(PKG)_FILE := readline-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := https://ftp.gnu.org/gnu/readline/$($(PKG)_FILE)
$(PKG)_DEPS := cc termcap
define $(PKG)_UPDATE
$(WGET) -q -O- 'https://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
cd '$(1)' && bash_cv_wcwidth_broken=no \
./configure \
$(MXE_CONFIGURE_OPTS) \
--enable-multibyte \
--without-purify \
--without-curses
$(MAKE) -C '$(1)' -j '$(JOBS)' install
endef