# --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # T2 SDE: package/.../ncurses/ncurses.conf # Copyright (C) 2004 - 2005 The T2 SDE Project # Copyright (C) 1998 - 2003 ROCK Linux Project # # 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 as published by # the Free Software Foundation; version 2 of the License. A copy of the # GNU General Public License can be found in the file COPYING. # --- T2-COPYRIGHT-NOTE-END --- prefix='' set_confopt if ! atstage native; then var_append confopt " " "--without-cxx" fi var_append confopt " " "--with-normal" [ "$SDECFG_STATIC" != 1 ] && var_append confopt " " "--with-shared" var_append confopt " " "--enable-sigwinch --enable-hard-tabs --enable-colorfgbg" hook_add prepatch 5 "bunzip2 < `match_source_file -p termtypes` > misc/terminfo.src" 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 ->" \ "disable 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 # (maybe) build the wide-curses variant ... [ "$SDECFG_LIBC" != dietlibc ] && hook_add postmake 5 "eval $MAKE clean ;\ eval_config_command $confopt --enable-widec ;\ 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'"