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) 2017-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="ncurses"
|
2022-08-28 23:47:36 +00:00
|
|
|
PKG_VERSION="6.3-20220827"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="MIT"
|
|
|
|
PKG_SITE="http://www.gnu.org/software/ncurses/"
|
2022-02-07 01:41:01 +00:00
|
|
|
PKG_URL="http://invisible-mirror.net/archives/ncurses/current/ncurses-${PKG_VERSION}.tgz"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_DEPENDS_HOST="ccache:host"
|
|
|
|
PKG_DEPENDS_TARGET="toolchain zlib ncurses:host"
|
|
|
|
PKG_LONGDESC="A library is a free software emulation of curses in System V Release 4.0, and more."
|
2022-08-28 23:47:36 +00:00
|
|
|
PKG_BUILD_FLAGS="+pic +pic:host"
|
2022-02-07 01:41:01 +00:00
|
|
|
PKG_TOOLCHAIN="auto"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2022-02-07 01:41:01 +00:00
|
|
|
PKG_CONFIGURE_OPTS_TARGET="
|
|
|
|
--without-ada \
|
2022-02-05 14:23:32 +00:00
|
|
|
--without-cxx \
|
|
|
|
--without-cxx-binding \
|
|
|
|
--disable-db-install \
|
|
|
|
--without-manpages \
|
|
|
|
--without-progs \
|
|
|
|
--without-tests \
|
2022-02-07 01:41:01 +00:00
|
|
|
--with-shared \
|
2022-02-05 14:23:32 +00:00
|
|
|
--with-normal \
|
|
|
|
--without-debug \
|
|
|
|
--without-profile \
|
2022-02-07 01:41:01 +00:00
|
|
|
--with-termlib \
|
2022-02-05 14:23:32 +00:00
|
|
|
--without-ticlib \
|
|
|
|
--without-gpm \
|
|
|
|
--without-dbmalloc \
|
|
|
|
--without-dmalloc \
|
|
|
|
--disable-rpath \
|
|
|
|
--disable-database \
|
|
|
|
--with-fallbacks=linux,screen,xterm,xterm-color,dumb,st-256color \
|
|
|
|
--with-termpath=/storage/.config/termcap \
|
|
|
|
--disable-big-core \
|
|
|
|
--enable-termcap \
|
|
|
|
--enable-getcap \
|
|
|
|
--disable-getcap-cache \
|
|
|
|
--enable-symlinks \
|
|
|
|
--disable-bsdpad \
|
|
|
|
--without-rcs-ids \
|
|
|
|
--enable-ext-funcs \
|
|
|
|
--disable-const \
|
|
|
|
--enable-no-padding \
|
|
|
|
--disable-sigwinch \
|
|
|
|
--enable-pc-files \
|
|
|
|
--with-pkg-config-libdir=/usr/lib/pkgconfig \
|
|
|
|
--disable-tcap-names \
|
|
|
|
--without-develop \
|
|
|
|
--disable-hard-tabs \
|
|
|
|
--disable-xmc-glitch \
|
|
|
|
--disable-hashmap \
|
|
|
|
--disable-safe-sprintf \
|
|
|
|
--disable-scroll-hints \
|
2022-08-30 09:43:45 +00:00
|
|
|
--enable-widec \
|
2022-02-05 14:23:32 +00:00
|
|
|
--disable-echo \
|
|
|
|
--disable-warnings \
|
|
|
|
--disable-home-terminfo \
|
2022-08-30 09:43:45 +00:00
|
|
|
--enable-lib-suffixes \
|
2022-02-07 01:41:01 +00:00
|
|
|
--disable-assertions"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2022-08-28 23:47:36 +00:00
|
|
|
PKG_CONFIGURE_OPTS_HOST="--enable-termcap \
|
2022-08-29 23:59:31 +00:00
|
|
|
--with-termlib \
|
2022-08-28 23:47:36 +00:00
|
|
|
--without-shared \
|
|
|
|
--enable-pc-files \
|
|
|
|
--without-tests \
|
|
|
|
--without-manpages"
|
|
|
|
|
2022-02-05 14:23:32 +00:00
|
|
|
post_makeinstall_target() {
|
|
|
|
cp misc/ncurses-config ${TOOLCHAIN}/bin
|
|
|
|
chmod +x ${TOOLCHAIN}/bin/ncurses-config
|
2022-08-30 09:43:45 +00:00
|
|
|
sed -e "s:\(['=\" ]\)/usr:\\1${SYSROOT_PREFIX}/usr:g" -i ${TOOLCHAIN}/bin/ncurses-config
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|