2019-05-15 01:44:57 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://invisible-island.net/ncurses/
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="Library for text-based user interfaces in a terminal-independent manner"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="MIT"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2020-07-28 11:55:45 +02:00
|
|
|
TERMUX_PKG_VERSION=(6.2.20200725
|
2021-05-16 22:07:01 +02:00
|
|
|
9.26
|
2021-01-31 22:55:09 +01:00
|
|
|
15
|
2021-09-12 10:32:44 +02:00
|
|
|
0.20.3
|
|
|
|
0.9.0)
|
|
|
|
TERMUX_PKG_REVISION=5
|
2021-02-04 19:49:49 +01:00
|
|
|
TERMUX_PKG_SRCURL=(https://github.com/termux/distfiles/releases/download/2021.01.04/ncurses-${TERMUX_PKG_VERSION:0:3}-${TERMUX_PKG_VERSION:4}.tgz
|
2019-06-30 19:20:00 +02:00
|
|
|
https://fossies.org/linux/misc/rxvt-unicode-${TERMUX_PKG_VERSION[1]}.tar.bz2
|
2021-01-31 22:55:09 +01:00
|
|
|
https://github.com/thestinger/termite/archive/v${TERMUX_PKG_VERSION[2]}.tar.gz
|
2021-09-12 10:32:44 +02:00
|
|
|
https://github.com/kovidgoyal/kitty/archive/v${TERMUX_PKG_VERSION[3]}.tar.gz
|
|
|
|
https://github.com/alacritty/alacritty/archive/refs/tags/v${TERMUX_PKG_VERSION[4]}.tar.gz)
|
2020-07-28 11:55:45 +02:00
|
|
|
TERMUX_PKG_SHA256=(05da39f964643b595bfdb874e52eabfd407c02d8fbed35602040735f4af9b09d
|
2021-05-16 22:07:01 +02:00
|
|
|
643116b9a25d29ad29f4890131796d42e6d2d21312282a613ef66c80c5b8c98b
|
2021-01-31 22:55:09 +01:00
|
|
|
3ae9ebef28aad081c6c11351f086776e2fd9547563b2f900732b41c376bec05a
|
2021-09-12 10:32:44 +02:00
|
|
|
7048cc0e6c17fe5ef3fbac18125dbd5f05d6c628838f004b8e2ad3546fb77d85
|
|
|
|
6d3aaac9e0477f903563b6fb26e089118407cdbfe952a1e2ffbf4e971b7062b3)
|
2019-07-20 10:42:33 +02:00
|
|
|
# ncurses-utils: tset/reset/clear are moved to package 'ncurses'.
|
|
|
|
TERMUX_PKG_BREAKS="ncurses-dev, ncurses-utils (<< 6.1.20190511-4)"
|
|
|
|
TERMUX_PKG_REPLACES="ncurses-dev, ncurses-utils (<< 6.1.20190511-4)"
|
2019-07-22 13:44:25 +02:00
|
|
|
|
2018-01-31 11:15:34 +01:00
|
|
|
# --disable-stripping to disable -s argument to install which does not work when cross compiling:
|
2017-07-02 11:21:08 +02:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
ac_cv_header_locale_h=no
|
2018-01-31 11:15:34 +01:00
|
|
|
--disable-stripping
|
2017-07-02 11:21:08 +02:00
|
|
|
--enable-const
|
|
|
|
--enable-ext-colors
|
|
|
|
--enable-ext-mouse
|
|
|
|
--enable-overwrite
|
|
|
|
--enable-pc-files
|
2019-07-25 01:06:06 +02:00
|
|
|
--enable-termcap
|
2017-07-02 11:21:08 +02:00
|
|
|
--enable-widec
|
|
|
|
--mandir=$TERMUX_PREFIX/share/man
|
|
|
|
--without-ada
|
|
|
|
--without-cxx-binding
|
|
|
|
--without-debug
|
|
|
|
--without-tests
|
2019-07-20 10:42:33 +02:00
|
|
|
--with-normal
|
|
|
|
--with-static
|
2017-07-02 11:21:08 +02:00
|
|
|
--with-shared
|
2019-07-25 01:06:06 +02:00
|
|
|
--with-termpath=$TERMUX_PREFIX/etc/termcap:$TERMUX_PREFIX/share/misc/termcap
|
2017-07-02 11:21:08 +02:00
|
|
|
"
|
2019-07-20 10:42:33 +02:00
|
|
|
|
2017-07-07 12:22:28 +02:00
|
|
|
TERMUX_PKG_RM_AFTER_INSTALL="
|
2017-08-11 00:50:24 +02:00
|
|
|
share/man/man5
|
|
|
|
share/man/man7
|
2017-07-07 12:22:28 +02:00
|
|
|
"
|
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-pkg-config-libdir=$PKG_CONFIG_LIBDIR"
|
2021-05-29 13:41:04 +02:00
|
|
|
export CPPFLAGS+=" -fPIC"
|
2017-07-07 12:22:28 +02:00
|
|
|
}
|
2015-06-13 01:03:31 +02:00
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_post_make_install() {
|
2015-06-13 01:03:31 +02:00
|
|
|
cd $TERMUX_PREFIX/lib
|
2019-08-11 14:41:19 +02:00
|
|
|
|
|
|
|
# Ncursesw/Ncurses compatibility symlinks.
|
2015-06-13 01:03:31 +02:00
|
|
|
for lib in form menu ncurses panel; do
|
2019-08-11 14:41:19 +02:00
|
|
|
ln -sfr lib${lib}w.so.${TERMUX_PKG_VERSION:0:3} lib${lib}.so.${TERMUX_PKG_VERSION:0:3}
|
|
|
|
ln -sfr lib${lib}w.so.${TERMUX_PKG_VERSION:0:3} lib${lib}.so.${TERMUX_PKG_VERSION:0:1}
|
|
|
|
ln -sfr lib${lib}w.so.${TERMUX_PKG_VERSION:0:3} lib${lib}.so
|
|
|
|
ln -sfr lib${lib}w.a lib${lib}.a
|
2018-06-08 21:00:17 +02:00
|
|
|
(cd pkgconfig; ln -sf ${lib}w.pc $lib.pc)
|
2015-06-13 01:03:31 +02:00
|
|
|
done
|
2019-07-25 01:06:06 +02:00
|
|
|
|
2019-08-11 14:41:19 +02:00
|
|
|
# Legacy compatibility symlinks (libcurses, libtermcap, libtic, libtinfo).
|
2019-08-05 22:27:49 +02:00
|
|
|
for lib in curses termcap tic tinfo; do
|
2019-07-25 01:06:06 +02:00
|
|
|
ln -sfr libncursesw.so.${TERMUX_PKG_VERSION:0:3} lib${lib}.so.${TERMUX_PKG_VERSION:0:3}
|
|
|
|
ln -sfr libncursesw.so.${TERMUX_PKG_VERSION:0:3} lib${lib}.so.${TERMUX_PKG_VERSION:0:1}
|
|
|
|
ln -sfr libncursesw.so.${TERMUX_PKG_VERSION:0:3} lib${lib}.so
|
2019-07-20 10:42:33 +02:00
|
|
|
ln -sfr libncursesw.a lib${lib}.a
|
2019-07-25 01:06:06 +02:00
|
|
|
(cd pkgconfig; ln -sfr ncursesw.pc ${lib}.pc)
|
2018-06-08 21:00:17 +02:00
|
|
|
done
|
2015-06-13 01:03:31 +02:00
|
|
|
|
2018-04-26 21:26:17 +02:00
|
|
|
# Some packages want these:
|
2015-07-11 13:18:46 +02:00
|
|
|
cd $TERMUX_PREFIX/include/
|
2018-04-26 21:26:17 +02:00
|
|
|
rm -Rf ncurses{,w}
|
|
|
|
mkdir ncurses{,w}
|
|
|
|
ln -s ../{ncurses.h,termcap.h,panel.h,unctrl.h,menu.h,form.h,tic.h,nc_tparm.h,term.h,eti.h,term_entry.h,ncurses_dll.h,curses.h} ncurses
|
|
|
|
ln -s ../{ncurses.h,termcap.h,panel.h,unctrl.h,menu.h,form.h,tic.h,nc_tparm.h,term.h,eti.h,term_entry.h,ncurses_dll.h,curses.h} ncursesw
|
2015-06-13 01:03:31 +02:00
|
|
|
}
|
2015-07-16 01:05:58 +02:00
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_post_massage() {
|
2015-07-16 01:05:58 +02:00
|
|
|
# Strip away 30 years of cruft to decrease size.
|
2017-06-14 00:48:09 +02:00
|
|
|
local TI=$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/share/terminfo
|
2015-07-16 01:05:58 +02:00
|
|
|
mv $TI $TERMUX_PKG_TMPDIR/full-terminfo
|
2021-01-31 22:55:09 +01:00
|
|
|
mkdir -p $TI/{a,d,e,n,k,l,p,r,s,t,v,x}
|
2015-07-16 01:05:58 +02:00
|
|
|
cp $TERMUX_PKG_TMPDIR/full-terminfo/a/ansi $TI/a/
|
2015-08-04 02:27:02 +02:00
|
|
|
cp $TERMUX_PKG_TMPDIR/full-terminfo/d/{dtterm,dumb} $TI/d/
|
|
|
|
cp $TERMUX_PKG_TMPDIR/full-terminfo/e/eterm-color $TI/e/
|
2015-07-16 01:05:58 +02:00
|
|
|
cp $TERMUX_PKG_TMPDIR/full-terminfo/n/nsterm $TI/n/
|
2021-01-31 22:55:09 +01:00
|
|
|
cp $TERMUX_PKG_TMPDIR/full-terminfo/k/kitty{,+common,-direct} $TI/k/
|
2015-07-16 01:05:58 +02:00
|
|
|
cp $TERMUX_PKG_TMPDIR/full-terminfo/l/linux $TI/l/
|
|
|
|
cp $TERMUX_PKG_TMPDIR/full-terminfo/p/putty{,-256color} $TI/p/
|
|
|
|
cp $TERMUX_PKG_TMPDIR/full-terminfo/r/rxvt{,-256color} $TI/r/
|
2019-07-21 01:43:22 +02:00
|
|
|
cp $TERMUX_PKG_TMPDIR/full-terminfo/s/{screen{,2,-256color},st{,-256color}} $TI/s/
|
2016-08-16 17:23:20 +02:00
|
|
|
cp $TERMUX_PKG_TMPDIR/full-terminfo/t/tmux{,-256color} $TI/t/
|
2015-07-16 01:05:58 +02:00
|
|
|
cp $TERMUX_PKG_TMPDIR/full-terminfo/v/{vt52,vt100,vt102} $TI/v/
|
|
|
|
cp $TERMUX_PKG_TMPDIR/full-terminfo/x/xterm{,-color,-new,-16color,-256color,+256color} $TI/x/
|
2017-06-14 00:48:09 +02:00
|
|
|
|
2018-06-13 02:15:26 +02:00
|
|
|
tic -x -o $TI $TERMUX_PKG_SRCDIR/rxvt-unicode-${TERMUX_PKG_VERSION[1]}/doc/etc/rxvt-unicode.terminfo
|
2019-06-30 19:20:00 +02:00
|
|
|
tic -x -o $TI $TERMUX_PKG_SRCDIR/termite-${TERMUX_PKG_VERSION[2]}/termite.terminfo
|
2021-01-31 22:55:09 +01:00
|
|
|
tic -x -o $TI $TERMUX_PKG_SRCDIR/kitty-${TERMUX_PKG_VERSION[3]}/terminfo/kitty.terminfo
|
2021-09-12 10:32:44 +02:00
|
|
|
tic -x -o $TI $TERMUX_PKG_SRCDIR/alacritty-${TERMUX_PKG_VERSION[4]}/extra/alacritty.info
|
2015-07-16 01:05:58 +02:00
|
|
|
}
|