2006-02-23 15:26:10 +00:00
|
|
|
# Description: A System V Release 4.0 curses emulation library
|
2021-10-23 16:07:05 +02:00
|
|
|
# URL: https://invisible-island.net/ncurses/announce.html
|
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=ncurses
|
2023-01-02 15:08:07 +01:00
|
|
|
version=6.4
|
2018-01-29 18:48:47 +01:00
|
|
|
release=1
|
2021-10-23 16:07:05 +02:00
|
|
|
source=(https://invisible-mirror.net/archives/$name/$name-$version.tar.gz)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build() {
|
2021-10-23 16:07:05 +02:00
|
|
|
cd $name-$version
|
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--with-{normal,shared} \
|
|
|
|
--without-{debug,ada,tests} \
|
|
|
|
--enable-pc-files \
|
|
|
|
--with-pkg-config-libdir=/usr/lib/pkgconfig \
|
|
|
|
--enable-widec
|
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
install -d $PKG/lib
|
|
|
|
|
|
|
|
# move library to /lib and create symlinks
|
|
|
|
mv $PKG/usr/lib/libncursesw.so.* $PKG/lib
|
|
|
|
ln -sf ../../lib/libncursesw.so.$version $PKG/usr/lib/libncursesw.so
|
|
|
|
ln -s libncursesw.so.$version $PKG/lib/libncurses.so.${version%%.*}
|
|
|
|
|
|
|
|
# linker scripts and .pc files for non-wide ncurses
|
|
|
|
for LIB in ncurses form panel menu ; do
|
2021-12-13 12:02:48 +01:00
|
|
|
echo "INPUT(-l${LIB}w)" > $PKG/usr/lib/lib${LIB}.so
|
|
|
|
ln -s ${LIB}w.pc $PKG/usr/lib/pkgconfig/${LIB}.pc
|
2021-10-23 16:07:05 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
# provided by contrib/foot-terminfo
|
|
|
|
rm -r $PKG/usr/share/terminfo/f/foot{,-direct}
|
|
|
|
|
|
|
|
# linker script for the curses library
|
|
|
|
echo "INPUT(-lncursesw)" > $PKG/usr/lib/libcursesw.so
|
|
|
|
ln -s libncurses.so $PKG/usr/lib/libcurses.so
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|