aboutsummaryrefslogtreecommitdiff
path: root/lib/ncurses/config.mk
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2021-01-12 16:34:49 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2021-02-25 13:25:11 +0000
commit61f66a1f4403fded9aae14d890ad96914a3c0bc1 (patch)
tree4f46a9193517fbef9a3e8566d8367e5145c9b2da /lib/ncurses/config.mk
parent3fd63ddfdf3541faea762143365dbc70c16fa49e (diff)
downloadsrc-61f66a1f4403fded9aae14d890ad96914a3c0bc1.tar.gz
src-61f66a1f4403fded9aae14d890ad96914a3c0bc1.zip
ncurses: Add support for terminfo database
Along with the termcap database, ncurses will now lookup for the terminfo database, note that the terminfo database is being looked up first and then it fallsback on the termcap one. While here drop our custom reader for the termcap database, over the time it is needed maintenance to be able to catchup with changes on ncurses side. Install the ncurses tools which are needed to deal with the terminfo database: tic, infocmp, toe Replace our termcap only aware tools with the ncurses counterpart: tput, tabs, tset, clear and reset In particular they can your the extra capabilities described in the terminfo database, which does not exist in termcap Note that to add a new terminfo information to the database from ports the ports will just need to add their extra information into: /usr/local/share/site-terminfo/<firstletteroftheterm>/<term> Tested by: jbeich, manu
Diffstat (limited to 'lib/ncurses/config.mk')
-rw-r--r--lib/ncurses/config.mk14
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/ncurses/config.mk b/lib/ncurses/config.mk
index f199c5829b65..7a64a7b948ee 100644
--- a/lib/ncurses/config.mk
+++ b/lib/ncurses/config.mk
@@ -3,8 +3,11 @@
# This Makefile is shared by libncurses, libform, libmenu, libpanel.
NCURSES_DIR= ${SRCTOP}/contrib/ncurses
+NCURSES_MAJOR= 6
+NCURSES_MINOR= 2
+NCURSES_PATCH= 20200215
-CFLAGS+= -D_XOPEN_SOURCE_EXTENDED -DENABLE_WIDEC
+CFLAGS+= -D_XOPEN_SOURCE_EXTENDED
NCURSES_CFG_H= ${.CURDIR}/ncurses_cfg.h
CFLAGS+= -I.
@@ -41,5 +44,12 @@ MANFILTER= sed -e 's%@TERMINFO@%${TERMINFODIR}/terminfo%g' \
-e 's%@NCURSES_MAJOR@%${NCURSES_MAJOR}%g' \
-e 's%@NCURSES_MINOR@%${NCURSES_MINOR}%g' \
-e 's%@NCURSES_PATCH@%${NCURSES_PATCH}%g' \
+ -e 's%@TSET@%tset%g' \
+ -e 's%@RESET@%reset%g' \
+ -e 's%@CLEAR@%clear%g' \
+ -e 's%@TABS@%tabs%g' \
-e 's%@TIC@%tic%g' \
- -e 's%@INFOCMP@%infocmp%g'
+ -e 's%@TOE@%toe%g' \
+ -e 's%@INFOCMP@%infocmp%g' \
+ -e 's%@CAPTOINFO@%captoinfo%g' \
+ -e 's%@INFOTOCAP@%infotocap%g'