# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/ncurses/ncurses.conf # Copyright (C) 2004 - 2024 The T2 SDE Project # Copyright (C) 1998 - 2003 ROCK Linux Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-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 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, # also at least one fails on uclibc cross builds (with some sincos sym) hook_add premake 5 "echo -e 'all:\ninstall:\ndistclean:' > test/Makefile" 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; \ hook_eval premake; \ eval $MAKE $makeopt; eval $MAKE $makeinstopt includedir=$includedir/ncursesw" 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'"