Add package termcap, and make readline use it instead of pdcurses.

This fixes runtime problems with applications using readline.
This commit is contained in:
Martin Lambers 2015-01-21 21:01:48 +01:00
parent 4ece94bda1
commit 9da60dc368
3 changed files with 27 additions and 4 deletions

View File

@ -2409,6 +2409,10 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre>
<td class="package">teem</td>
<td class="website"><a href="http://teem.sourceforge.net/">Teem</a></td>
</tr>
<tr>
<td class="package">termcap</td>
<td class="website"><a href="https://www.gnu.org/software/termutils/">Termcap</a></td>
</tr>
<tr>
<td class="package">theora</td>
<td class="website"><a href="http://theora.org/">Theora</a></td>

View File

@ -8,7 +8,7 @@ $(PKG)_CHECKSUM := 017b92dc7fd4e636a2b5c9265a77ccc05798c9e1
$(PKG)_SUBDIR := readline-$($(PKG)_VERSION)
$(PKG)_FILE := readline-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := http://ftp.gnu.org/gnu/readline/$($(PKG)_FILE)
$(PKG)_DEPS := gcc pdcurses
$(PKG)_DEPS := gcc termcap
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://tiswww.case.edu/php/chet/readline/rltop.html' | \
@ -23,7 +23,6 @@ define $(PKG)_BUILD
$(MXE_CONFIGURE_OPTS) \
--enable-multibyte \
--without-purify \
--with-curses \
LIBS='-lcurses'
$(MAKE) -C '$(1)' -j '$(JOBS)' install $(if $(BUILD_STATIC),SHARED_LIBS=,SHLIB_LIBS='-lcurses')
--without-curses
$(MAKE) -C '$(1)' -j '$(JOBS)' install
endef

20
src/termcap.mk Normal file
View File

@ -0,0 +1,20 @@
# This file is part of MXE.
# See index.html for further information.
PKG := termcap
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.3.1
$(PKG)_CHECKSUM := 42dd1e6beee04f336c884f96314f0c96cc2578be
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := http://ftp.gnu.org/gnu/termcap/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
/bin/false
endef
define $(PKG)_BUILD
cd '$(1)' && autoreconf -fi && ./configure $(MXE_CONFIGURE_OPTS)
$(MAKE) -C '$(1)' -j '$(JOBS)' install oldincludedir=
endef