git: 9612586d89fa - 2026Q2 - devel/rhtvision: fix build on FreeBSD 15.1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 22 Jun 2026 09:32:22 UTC
The branch 2026Q2 has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=9612586d89fa93a0fd280478e36c36f6ea6a01e2
commit 9612586d89fa93a0fd280478e36c36f6ea6a01e2
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2026-06-21 19:51:26 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2026-06-22 09:32:05 +0000
devel/rhtvision: fix build on FreeBSD 15.1
The header <termios.h> needs to be included in unixkey.cc for this
port to build. I presume it got previously included transitively
but now isn't anymore.
While we are at it, define LICENSE and have the port not run
ldconfig at stage time.
MFH: 2026Q2
(cherry picked from commit 2b39263be5a6d1a4d6cd8e8162e40f18776e220c)
---
devel/rhtvision/Makefile | 3 +++
devel/rhtvision/files/patch-classes_unix_unixkey.cc | 10 ++++++++++
devel/rhtvision/files/patch-config.pl | 11 +++++++++++
3 files changed, 24 insertions(+)
diff --git a/devel/rhtvision/Makefile b/devel/rhtvision/Makefile
index 6187df45b54f..1e33885a6a5d 100644
--- a/devel/rhtvision/Makefile
+++ b/devel/rhtvision/Makefile
@@ -9,6 +9,9 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Complete C++ Text User Interface (TUI) library
WWW= https://sourceforge.net/projects/tvision/
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/copying
+
OPTIONS_DEFINE= NLS X11
OPTIONS_SUB= yes
diff --git a/devel/rhtvision/files/patch-classes_unix_unixkey.cc b/devel/rhtvision/files/patch-classes_unix_unixkey.cc
new file mode 100644
index 000000000000..f5236d2567ee
--- /dev/null
+++ b/devel/rhtvision/files/patch-classes_unix_unixkey.cc
@@ -0,0 +1,10 @@
+--- classes/unix/unixkey.cc.orig 2026-06-21 19:50:02 UTC
++++ classes/unix/unixkey.cc
+@@ -22,6 +22,7 @@ key, Shift+(Inset,End,Home,PgUp,PgDn,Delete,Arrows,etc
+ key, Shift+(Inset,End,Home,PgUp,PgDn,Delete,Arrows,etc.) and more.
+
+ *****************************************************************************/
++#include <termios.h>
+ #include <tv/configtv.h>
+
+ #define Uses_stdio
diff --git a/devel/rhtvision/files/patch-config.pl b/devel/rhtvision/files/patch-config.pl
new file mode 100644
index 000000000000..3271cb916794
--- /dev/null
+++ b/devel/rhtvision/files/patch-config.pl
@@ -0,0 +1,11 @@
+--- config.pl.orig 2026-06-21 20:07:49 UTC
++++ config.pl
+@@ -1254,7 +1254,7 @@ sub GenerateMakefile
+ # Darwin: doesn't have ldconfig.
+ if ($OSf ne 'Darwin')
+ {
+- $rep.=($OSf eq 'FreeBSD') ? "\t-ldconfig -m \$(libdir)\n" : "\t-ldconfig\n";
++# $rep.=($OSf eq 'FreeBSD') ? "\t-ldconfig -m \$(libdir)\n" : "\t-ldconfig\n";
+ }
+ }
+ if ($internac)