ncurses: enable termcap support + more compatibility symlinks

libtinfo can be actually a symlink to libncursesw.so
This commit is contained in:
Leonid Pliushch 2019-07-25 02:06:06 +03:00
parent 136796f92d
commit 11b87c4834
2 changed files with 15 additions and 9 deletions

View File

@ -4,7 +4,7 @@ TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_VERSION=(6.1.20190511 TERMUX_PKG_VERSION=(6.1.20190511
9.22 9.22
15) 15)
TERMUX_PKG_REVISION=4 TERMUX_PKG_REVISION=5
TERMUX_PKG_SHA256=(fdbd39234fc7e7f8e5fd08d2329014e085fa5c8d0a9cc9a919e94bbc9d411c0e TERMUX_PKG_SHA256=(fdbd39234fc7e7f8e5fd08d2329014e085fa5c8d0a9cc9a919e94bbc9d411c0e
e94628e9bcfa0adb1115d83649f898d6edb4baced44f5d5b769c2eeb8b95addd e94628e9bcfa0adb1115d83649f898d6edb4baced44f5d5b769c2eeb8b95addd
3ae9ebef28aad081c6c11351f086776e2fd9547563b2f900732b41c376bec05a) 3ae9ebef28aad081c6c11351f086776e2fd9547563b2f900732b41c376bec05a)
@ -26,6 +26,7 @@ ac_cv_header_locale_h=no
--enable-ext-mouse --enable-ext-mouse
--enable-overwrite --enable-overwrite
--enable-pc-files --enable-pc-files
--enable-termcap
--enable-widec --enable-widec
--mandir=$TERMUX_PREFIX/share/man --mandir=$TERMUX_PREFIX/share/man
--without-ada --without-ada
@ -35,16 +36,13 @@ ac_cv_header_locale_h=no
--without-static --without-static
--without-tests --without-tests
--with-shared --with-shared
--with-termpath=$TERMUX_PREFIX/etc/termcap:$TERMUX_PREFIX/share/misc/termcap
" "
TERMUX_PKG_INCLUDE_IN_DEVPACKAGE=" TERMUX_PKG_INCLUDE_IN_DEVPACKAGE="
share/man/man1/ncursesw6-config.1* share/man/man1/ncursesw6-config.1*
bin/ncursesw6-config bin/ncursesw6-config
" "
TERMUX_PKG_RM_AFTER_INSTALL=" TERMUX_PKG_RM_AFTER_INSTALL="
bin/captoinfo
bin/infotocap
share/man/man1/captoinfo.1*
share/man/man1/infotocap.1*
share/man/man5 share/man/man5
share/man/man7 share/man/man7
" "
@ -63,10 +61,14 @@ termux_step_post_make_install() {
done done
(cd pkgconfig; ln -sf ${lib}w.pc $lib.pc) (cd pkgconfig; ln -sf ${lib}w.pc $lib.pc)
done done
# some packages want libcurses while building/compiling
rm -f libcurses.so* # Compatibility symlinks (libcurses, libtic, libtinfo)
for file in libncurses.so*; do for lib in curses tic tinfo; do
ln -s $file ${file/libn/lib} rm -f lib${lib}.so*
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
(cd pkgconfig; ln -sfr ncursesw.pc ${lib}.pc)
done done
# Some packages want these: # Some packages want these:

View File

@ -1,9 +1,13 @@
TERMUX_SUBPKG_INCLUDE=" TERMUX_SUBPKG_INCLUDE="
bin/captoinfo
bin/infotocap
bin/toe bin/toe
bin/tput bin/tput
bin/tabs bin/tabs
bin/infocmp bin/infocmp
bin/tic bin/tic
share/man/man1/captoinfo.1.gz
share/man/man1/infotocap.1.gz
share/man/man1/toe.1.gz share/man/man1/toe.1.gz
share/man/man1/tput.1.gz share/man/man1/tput.1.gz
share/man/man1/tabs.1.gz share/man/man1/tabs.1.gz