diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2021-02-23 16:17:32 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2021-02-25 13:25:32 +0000 |
commit | 2a50a9de8340f08bd876e9e5993332ae14376f80 (patch) | |
tree | 004afbecfcb81e5fe27298b3e0b29df1584607c4 | |
parent | 0af562d7e1850bbef230d30805c101b26588a3ed (diff) | |
download | src-2a50a9de8340f08bd876e9e5993332ae14376f80.tar.gz src-2a50a9de8340f08bd876e9e5993332ae14376f80.zip |
terminfo: add terminfo database
Tested by: manu, jbeich
-rw-r--r-- | share/Makefile | 1 | ||||
-rw-r--r-- | share/terminfo/Makefile | 34 |
2 files changed, 35 insertions, 0 deletions
diff --git a/share/Makefile b/share/Makefile index c4e12b05f7db..d6854b230ae5 100644 --- a/share/Makefile +++ b/share/Makefile @@ -26,6 +26,7 @@ SUBDIR= ${_colldef} \ ${_syscons} \ tabset \ termcap \ + terminfo \ ${_timedef} \ ${_vt} \ ${_zoneinfo} diff --git a/share/terminfo/Makefile b/share/terminfo/Makefile new file mode 100644 index 000000000000..7bb11f3fdf24 --- /dev/null +++ b/share/terminfo/Makefile @@ -0,0 +1,34 @@ +PACKAGE= runtime + +.PATH: ${SRCTOP}/contrib/ncurses/misc +TINFOBUILDDIR= ${.OBJDIR}/builddir +CLEANDIRS+= builddir + +.include <src.tools.mk> + +.if !defined(_SKIP_BUILD) +all: terminfo +.endif +META_TARGETS+= terminfo install-terminfo + +terminfo: terminfo.src + mkdir -p ${TINFOBUILDDIR} + ${TIC_CMD} -x -o ${TINFOBUILDDIR} ${.ALLSRC} + +.if make(*install*) +TINFOS!= cd ${TINFOBUILDDIR} && find * -type f | LC_ALL=C sort +TINFOSDIRS= ${TINFOS:C/(.).*/\1/g:O:u} +.endif + +beforeinstall: install-terminfo +install-terminfo: + mkdir -p ${DESTDIR}/usr/share/terminfo + cd ${DESTDIR}/usr/share/terminfo; mkdir -p ${TINFOSDIRS} +.for f in ${TINFOS} + ${INSTALL} ${TAG_ARGS} \ + -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \ + ${TINFOBUILDDIR}/${f} ${DESTDIR}/usr/share/terminfo/${f} +.endfor + +.include <bsd.prog.mk> + |