# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/ncurses/ncurses.conf # Copyright (C) 2004 - 2025 The T2 SDE Project # Copyright (C) 1998 - 2003 ROCK Linux Project # SPDX-License-Identifier: GPL-2.0 # --- T2-COPYRIGHT-END --- if [ $prefix_auto = 1 ]; then prefix= set_confopt var_append confopt ' ' --with-ada-include=/$datadir/ada/adainclude fi var_append makeopt ' ' AR_OPTS=rv var_append CXX_WRAPPER_APPEND ' ' -std=c++17 atstage toolchain && var_remove_regex confopt " " "--target=.*" atstage native && var_append confopt ' ' --with-ada-objects="$libdir/ada/adalib" || var_append confopt ' ' --without-ada # we do not need to waste build cpu cycles just for the tests, var_append confopt ' ' --without-tests var_append confopt ' ' "--with-normal --disable-widec" [ "$SDECFG_STATIC" != 1 ] && var_append confopt ' ' --with-shared var_append confopt ' ' "--enable-sigwinch --enable-hard-tabs --enable-colorfgbg" remove_include_termcap() { echo "Removing 'termcap.h' from include/Makefile for 'make install'." sed -i 's,termcap.h,,g' include/Makefile } if pkginstalled termcap; then echo_status "Found termcap package -> disabling ncurses internal termcap library." var_append confopt ' ' --disable-termcap hook_add inmake 5 "remove_include_termcap" else hook_add postmake 6 "\ ln -svf libncurses.a $root$libdir/libtermcap.a; \ ln -svf libncurses.so $root$libdir/libtermcap.so" fi var_append confopt ' ' "--enable-pc-files --with-pkg-config-libdir=$libdir/pkgconfig" # (maybe) build the wide-curses variant ... [ "$SDECFG_LIBC" != dietlibc ] && hook_add postmake 5 "eval $MAKE distclean; \ eval_config_command $confopt --enable-widec --includedir=$includedir/ncursesw; \ hook_eval premake; \ eval $MAKE $makeopt; eval $MAKE $makeinstopt" hook_add postmake 7 "\ ln -svf libncurses.so $root$libdir/libcurses.so; \ ln -svf libncurses.a $root$libdir/libcurses.a" # includedir=$includedir/ncurses var_append makeinstopt ' ' "'INSTALL_LIB=\$(INSTALL) -m 755'"