svn commit: r566529 - head/x11/foot

Jan Beich jbeich at FreeBSD.org
Thu Feb 25 11:30:23 UTC 2021


Author: jbeich
Date: Thu Feb 25 11:30:22 2021
New Revision: 566529
URL: https://svnweb.freebsd.org/changeset/ports/566529

Log:
  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

Modified:
  head/x11/foot/Makefile   (contents, props changed)

Modified: head/x11/foot/Makefile
==============================================================================
--- head/x11/foot/Makefile	Thu Feb 25 11:16:33 2021	(r566528)
+++ head/x11/foot/Makefile	Thu Feb 25 11:30:22 2021	(r566529)
@@ -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>


More information about the svn-ports-all mailing list