10.47. Ncurses-6.0 N32 Libraries

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

10.47.1. Installation of Ncurses

Prepare Ncurses for compilation:

PKG_CONFIG_PATH=${PKG_CONFIG_PATHN32} \
CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" ./configure \
    --prefix=/usr \
    --libdir=/usr/lib32 \
    --with-shared \
    --without-debug \
    --enable-widec \
    --enable-pc-files \
    --with-pkg-config-libdir=/usr/lib32/pkgconfig

Compile the package:

make

This package has a test suite, but it can only be run after the package is installed. The tests are in the test/ directory. See the README file in that directory for details.

Install the package:

make install

Prepare ncursesw6-config to be wrapped by the multiarch wrapper:

mv -v /usr/bin/ncursesw6-config{,-n32}

Move the libncursesw shared library to /lib32 and create a new symlink in /usr/lib32:

mv -v /usr/lib32/libncursesw.so.* /lib32
ln -svf ../../lib32/$(readlink /usr/lib/libncursesw.so) /usr/lib32/libncursesw.so

Many packages that use Ncurses will compile just fine against the widechar libraries, but won't know to look for them. Create linker scripts and symbolic links to allow older and non-widec compatible programs to build properly:

for lib in ncurses form panel menu ; do
        echo "INPUT(-l${lib}w)" > /usr/lib32/lib${lib}.so
        ln -sfv lib${lib}w.a /usr/lib32/lib${lib}.a
done
ln -sfv libncurses++w.a /usr/lib32/libncurses++.a
ln -sfv ncursesw6-config-32 /usr/bin/ncurses6-config-32

Details on this package are located in Section 10.48.2, “Contents of Ncurses.”