distribution/packages/devel/ncurses/package.mk
2022-02-05 09:23:32 -05:00

75 lines
3.3 KiB
Makefile

# 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"
PKG_VERSION="6.1-20181215"
PKG_SHA256="08b07c3e792961f300829512c283d5fefc0b1c421a57b76922c3d13303ed677d"
PKG_LICENSE="MIT"
PKG_SITE="http://www.gnu.org/software/ncurses/"
PKG_URL="http://invisible-mirror.net/archives/ncurses/current/ncurses-${PKG_VERSION}.tgz"
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."
# causes some segmentation fault's (dialog) when compiled with gcc's link time optimization.
PKG_BUILD_FLAGS="+pic"
PKG_TOOLCHAIN="auto"
pre_configure_target() {
export CFLAGS="${CFLAGS} -fcommon -fPIC"
}
PKG_CONFIGURE_OPTS_TARGET="
--without-ada \
--without-cxx \
--without-cxx-binding \
--disable-db-install \
--without-manpages \
--without-progs \
--without-tests \
--with-shared \
--with-normal \
--without-debug \
--without-profile \
--with-termlib \
--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 \
--disable-widec \
--disable-echo \
--disable-warnings \
--disable-home-terminfo \
--disable-assertions"
post_makeinstall_target() {
#cp -rf ${INSTALL}/usr/lib/* ${TOOLCHAIN}/${TARGET_ARCH}-libreelec-linux-gnu${TARGET_ABI}/lib
cp misc/ncurses-config ${TOOLCHAIN}/bin
chmod +x ${TOOLCHAIN}/bin/ncurses-config
sed -e "s:\(['=\" ]\)/usr:\\1${SYSROOT_PREFIX}/usr:g" -i ${TOOLCHAIN}/bin/ncurses-config
#rm -rf ${INSTALL}/usr/bin
}