2007-01-20 07:46:45 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2007-03-09 09:54:07 +00:00
|
|
|
# This Makefile is shared by libncurses, libform, libmenu, libpanel.
|
|
|
|
|
2017-01-20 04:27:40 +00:00
|
|
|
NCURSES_DIR= ${SRCTOP}/contrib/ncurses
|
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-01-12 16:34:49 +00:00
|
|
|
NCURSES_MAJOR= 6
|
|
|
|
NCURSES_MINOR= 2
|
2021-02-25 21:40:07 +00:00
|
|
|
NCURSES_PATCH= 20210220
|
2007-01-20 07:46:45 +00:00
|
|
|
|
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-01-12 16:34:49 +00:00
|
|
|
CFLAGS+= -D_XOPEN_SOURCE_EXTENDED
|
2007-01-20 07:46:45 +00:00
|
|
|
NCURSES_CFG_H= ${.CURDIR}/ncurses_cfg.h
|
|
|
|
|
|
|
|
CFLAGS+= -I.
|
2021-01-04 16:29:40 +00:00
|
|
|
CFLAGS+= -I${.CURDIR:H}/ncurses
|
2007-01-20 07:46:45 +00:00
|
|
|
|
|
|
|
# for ${NCURSES_CFG_H}
|
2017-01-20 04:27:40 +00:00
|
|
|
CFLAGS+= -I${.CURDIR:H}/ncurses
|
2007-01-20 07:46:45 +00:00
|
|
|
|
|
|
|
CFLAGS+= -I${NCURSES_DIR}/include
|
|
|
|
CFLAGS+= -I${NCURSES_DIR}/ncurses
|
2021-02-25 18:27:29 +00:00
|
|
|
CFLAGS+= -I${.OBJDIR:H}/ncurses/
|
2007-01-20 07:46:45 +00:00
|
|
|
|
|
|
|
CFLAGS+= -Wall
|
|
|
|
|
|
|
|
CFLAGS+= -DNDEBUG
|
|
|
|
|
|
|
|
CFLAGS+= -DHAVE_CONFIG_H
|
|
|
|
|
|
|
|
# everyone needs this
|
|
|
|
.PATH: ${NCURSES_DIR}/include
|
|
|
|
|
|
|
|
# tools and directories
|
|
|
|
AWK?= awk
|
|
|
|
TERMINFODIR?= ${SHAREDIR}/misc
|
|
|
|
|
|
|
|
# Generate headers
|
|
|
|
ncurses_def.h: MKncurses_def.sh ncurses_defs
|
|
|
|
AWK=${AWK} sh ${NCURSES_DIR}/include/MKncurses_def.sh \
|
|
|
|
${NCURSES_DIR}/include/ncurses_defs > ncurses_def.h
|
2007-07-21 00:27:17 +00:00
|
|
|
|
|
|
|
# Manual pages filter
|
|
|
|
MANFILTER= sed -e 's%@TERMINFO@%${TERMINFODIR}/terminfo%g' \
|
|
|
|
-e 's%@DATADIR@%/usr/share%g' \
|
|
|
|
-e 's%@NCURSES_OSPEED@%${NCURSES_OSPEED}%g' \
|
|
|
|
-e 's%@NCURSES_MAJOR@%${NCURSES_MAJOR}%g' \
|
|
|
|
-e 's%@NCURSES_MINOR@%${NCURSES_MINOR}%g' \
|
|
|
|
-e 's%@NCURSES_PATCH@%${NCURSES_PATCH}%g' \
|
2021-04-14 15:16:59 +00:00
|
|
|
-e 's%@TPUT@%tput%g' \
|
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-01-12 16:34:49 +00:00
|
|
|
-e 's%@TSET@%tset%g' \
|
|
|
|
-e 's%@RESET@%reset%g' \
|
|
|
|
-e 's%@CLEAR@%clear%g' \
|
|
|
|
-e 's%@TABS@%tabs%g' \
|
2007-07-21 00:27:17 +00:00
|
|
|
-e 's%@TIC@%tic%g' \
|
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-01-12 16:34:49 +00:00
|
|
|
-e 's%@TOE@%toe%g' \
|
|
|
|
-e 's%@INFOCMP@%infocmp%g' \
|
|
|
|
-e 's%@CAPTOINFO@%captoinfo%g' \
|
|
|
|
-e 's%@INFOTOCAP@%infotocap%g'
|