1.7. tmp ncurses-6.3
#!/bin/sh # Copyright © 1999-2022 Gerard Beekmans # Copyright © 2017-2022 Random Crew # Distributed under the terms of MIT License.
Configuration
Options under variable add_options are absent in lfs-11.1 and added later. The same version of ncurses package is used in different LFS versions, so we need to check it out.
src_config() { sed -i s/mawk// configure mkdir build pushd build ../configure make -C include make -C progs tic popd add_options=' --without-normal --with-cxx-shared ' case ${LFS_VERSION} in 11.1) add_options= ;; esac ./configure \ --prefix=${PREFIX} \ --host=${LFS_TGT} \ --build=$(./config.guess) \ --mandir=${PREFIX}/share/man \ --with-manpage-format=normal \ --with-shared \ ${add_options} \ --without-debug \ --without-ada \ --disable-stripping \ --enable-widec }
Compilation
src_compile() { make ${MAKEOPTS} }
Installation
src_install() { make DESTDIR=${D} TIC_PATH=$(pwd)/build/progs/tic install ${MAKEOPTS} echo "INPUT(-lncursesw)" > ${D}${PREFIX}/lib/libncurses.so }
Links
- url.lfs: https://linuxfromscratch.org/lfs/view/11.1/chapter08/ncurses.html
- url.lfs.stage1: https://linuxfromscratch.org/lfs/view/11.1/chapter06/ncurses.html