# ncurses/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] 1. We have the option of splitting "libncurses" into two libraries: "libncurses" and "libtinfo". To do so, we'd add the "configure" option switch "--with-termlib". However, this should *not* be done, as split- ting the library breaks a lot of things. If you encounter packages that need "libtinfo", don't split "libncur- ses". Instead, modify the relevant source files and/or "build" config- uration files so that the applications in question build against "lib- ncurses" instead of "libtinfo". #--------------------------------------------------------------------- [buildtimes] 00.02 hours (or 001.40 minutes) - HP EliteBook 8560w 32GB RAM 00.03 hours (or 001.90 minutes) - ThinkPad E540 i7 4x2 16GB RAM 00.04 hours (or 002.33 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo 7200 2GB RAM 00.17 hours (or 010.32 minutes) - Compaq 1.7 GHz Intel Pentium 4 512MB RAM #--------------------------------------------------------------------- [settings] ldbefore = -lstdc++ -lc license = See "license*.txt" in installed tree licfile = COPYING purge = no # This is a critical package mstatic = yes unpack = relaxed setpaths = ncurses xzutils #--------------------------------------------------------------------- [depends] gpm:forward grep:forward sed xzutils:forward #--------------------------------------------------------------------- [configure] # Courtesy of BLFS: sed -i '/LIBTOOL_INSTALL/d' c++/Makefile.in if [ "x$USE_MUSL" == "xyes" ]; then NOSTATIC= else NOSTATIC="--without-normal" fi bash ./configure \ --prefix=$PKGDIR_PROD \ --build=$LACARCHBUILD \ --host=$LACARCHHOST \ --enable-pc-files \ --enable-symlinks \ --enable-widec \ --with-gpm \ --with-shared \ --with-ospeed=short \ --without-debug \ --without-termlib \ $NOSTATIC #--------------------------------------------------------------------- [build] export LACPREARG="-DNCURSES_OSPEED=short" smpmake && make install #--------------------------------------------------------------------- [postbuild] DOCDIR=$PKGDIR_PROD/doc INCDIR=$PKGDIR_PROD/include LIBDIR=$PKGDIR_PROD/lib PCFDIR=$PKGDIR_PROD/lib/pkgconfig mkdir -p $DOCDIR $INCDIR $LIBDIR $PCFDIR rm -fr /usr/lib/terminfo rm -fr /usr/share/terminfo cp -p misc/*.pc $PCFDIR/ cp -p $PKGDIR_SPECIAL/license.txt $DOCDIR/ cd $LIBDIR chmod 755 *.so *.so.* # Courtesy of BLFS: for lib in form menu ncurses panel do OLDLIBSO=lib${lib}.so rm -f $OLDLIBSO echo "INPUT(-l${lib}w)" > $OLDLIBSO ln -nsf ${lib}w.pc $PCFDIR/${lib}.pc done cd $INCDIR ln -nsf ncursesw ncurses for x in curses form menu ncurses panel term do echo "#include " > $x.h done #--------------------------------------------------------------------- [setup.bash] export TERMINFO=$PKGDIR_PROD/share/terminfo #--------------------------------------------------------------------- # Original URLs. These URLs were valid at one point, but may have died # since then. If you download newer versions of tarballs [etc.], don't # delete the original versions, as you may not be able to replace # them. [urls] url_debian = http://packages.debian.org/unstable/source/ncurses url_home = http://www.gnu.org/software/ncurses/ url_lfs = http://www.linuxfromscratch.org/lfs/view/stable/\ chapter06/ncurses.html url_tarball = http://ftp.gnu.org/gnu/ncurses/ncurses-6.2.tar.gz #--------------------------------------------------------------------- [history] 170502 Updated from 5.9 to 6.0 180303 Updated from 6.0 to 6.1 210203 Updated to 6.2