3.2. Ncurses-6.6

The Ncurses package contains libraries for terminal-independent handling of character screens.

Package Information

Ncurses Dependencies

Required

Binutils-2.46.0-pass1, GCC-15.2.0-pass1, Linux-7.0.3-headers, Glibc-2.43, and M4-1.4.21

3.2.1. Installation of Ncurses

Prepare Ncurses for compilation:

mkdir build
pushd build
  ../configure --prefix=$LFS/tools AWK=gawk
  make -C include
  make -C progs tic
  install progs/tic $LFS/tools/bin
popd

Now Configure the Package, issue:

./configure AWK=gawk --prefix=/usr \
      --host=$LFS_TGT \
      --build=$(./config.guess) \
      --mandir=/usr/share/man \
      --with-manpage-format=normal \
      --with-shared \
      --without-normal \
      --with-cxx-shared \
      --without-debug \
      --without-ada \
      --disable-stripping

To Compile the Package, issue:

make

Now Install the Package, issue:

make DESTDIR=$LFS install

ln -sv libncursesw.so $LFS/usr/lib/libncurses.so
sed -e 's/^#if.*XOPEN.*$/#if 1/' -i $LFS/usr/include/curses.h

3.2.2. Contents of Ncurses

Installed programs: PROGRAMS
Installed libraries: LIBRARIES
Installed directories: DIRECTORIES