Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Feb 2021 11:30:22 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r566529 - head/x11/foot
Message-ID:  <202102251130.11PBUM4M013317@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202102251130.11PBUM4M013317>