x11/foot: expose terminfo support on -CURRENT

Makes foot default to TERM=foot instead of TERM=xterm-256color.
Proper 24-bit color support without relying on COLORTERM=truecolor
and hardcoded xterm escape sequences requires TERM=foot-direct e.g.,

  $ foot -t foot-direct
  $ tput Co
  16777216
This commit is contained in:
Jan Beich 2021-02-25 11:30:22 +00:00
parent 5343f263a0
commit 60107aa325
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=566529

View file

@ -24,6 +24,16 @@ LIB_DEPENDS= libepoll-shim.so:devel/libepoll-shim \
USES= compiler:c11 meson pkgconfig xorg
USE_XORG= pixman
WRKSRC= ${WRKDIR}/${PORTNAME}
.if exists(/usr/bin/tic)
PKGMESSAGE= ${NONEXISTENT}
PLIST_FILES= share/site-terminfo/f/${PORTNAME} \
share/site-terminfo/f/${PORTNAME}-direct
post-patch: terminfo-patch
terminfo-patch:
@${REINPLACE_CMD} '/datadir/s/terminfo/site-&/' ${WRKSRC}/meson.build
.else
MESON_ARGS= -Dterminfo=disabled
.endif
.include <bsd.port.mk>