2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
PKG_NAME = "readline"
2022-08-28 23:47:36 +00:00
PKG_VERSION = "8.1.2"
PKG_SHA256 = "7589a2381a8419e68654a47623ce7dfcb756815c8fee726b98f90bf668af7bc6"
2022-02-05 14:23:32 +00:00
PKG_LICENSE = "MIT"
PKG_SITE = "http://www.gnu.org/software/readline/"
2022-08-28 23:47:36 +00:00
PKG_URL = " http://ftpmirror.gnu.org/readline/ ${ PKG_NAME } - ${ PKG_VERSION } .tar.gz "
2022-02-05 14:23:32 +00:00
PKG_DEPENDS_TARGET = "toolchain ncurses"
PKG_LONGDESC = "The GNU Readline library provides a set of functions for use by applications that allow users to edit command lines as they are typed in."
PKG_BUILD_FLAGS = "+pic"
PKG_CONFIGURE_OPTS_TARGET = " bash_cv_wcwidth_broken=no \
2022-08-28 23:47:36 +00:00
--enable-shared \
--disable-static \
2022-02-05 14:23:32 +00:00
--with-curses"
2022-10-25 11:30:07 +00:00
p r e _ c o n f i g u r e _ t a r g e t ( ) {
export LDFLAGS = " ${ LDFLAGS } -lncursesw -ltinfow "
export CFLAGS = " ${ CFLAGS } -fcommon "
}
2022-02-05 14:23:32 +00:00
p o s t _ m a k e i n s t a l l _ t a r g e t ( ) {
2022-08-30 10:12:29 +00:00
sed -i 's/-lreadline/-lreadline -lncursesw/' ${ SYSROOT_PREFIX } /usr/lib/pkgconfig/readline.pc
2022-08-28 23:47:36 +00:00
rm -rf ${ INSTALL } /usr/share/readline
2022-02-05 14:23:32 +00:00
}