freebsd-dev/usr.bin/ncurses/Makefile
Baptiste Daroussin 61f66a1f44 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
2021-02-25 14:25:11 +01:00

41 lines
1.1 KiB
Makefile

PACKAGE= runtime
.include <bsd.own.mk>
.include "${SRCTOP}/lib/ncurses/config.mk"
.PATH: ${NCURSES_DIR}/progs ${NCURSES_DIR}/man
PROGS= tic tput infocmp toe tabs clear tset
SRCS.tic= tic.c transform.c dump_entry.c tparm_type.c
SRCS.tput= tput.c tparm_type.c transform.c dump_entry.c clear_cmd.c reset_cmd.c \
tty_settings.c
SRCS.infocmp= infocmp.c dump_entry.c
SRCS.tabs= tabs.c tty_settings.c
SRCS.clear= clear.c clear_cmd.c tty_settings.c
SRCS.tset= tset.c tty_settings.c transform.c reset_cmd.c
CFLAGS+= -I${NCURSES_DIR}/progs \
-I${NCURSES_DIR}/include \
-I${SRCTOP}/lib/ncurses/ncurses \
-I${OBJTOP}/lib/ncurses/ncurses \
-I${.CURDIR}
LIBADD= ncursesw
CLEANFILES= termsort.c
termsort.c: MKtermsort.sh
sh ${NCURSES_DIR}/progs/MKtermsort.sh ${AWK} ${NCURSES_DIR}/include/Caps > ${.TARGET}
dump_entry.c: termsort.c
LINKS.tic= ${BINDIR}/tic ${BINDIR}/captoinfo \
${BINDIR}/tic ${BINDIR}/infotocap
LINKS.tset= ${BINDIR}/tset ${BINDIR}/reset
MLINKS.tic= tic.1 captoinfo.1 \
tic.1 infotocap.1
MLINKS.tset= tset.1 reset.1
.include <bsd.progs.mk>
.SUFFIXES: .1 .1m
.1m.1:
cat ${.IMPSRC} > ${.TARGET}