diff --git a/devel/rhtvision/Makefile b/devel/rhtvision/Makefile index 6187df45b54f..1e33885a6a5d 100644 --- a/devel/rhtvision/Makefile +++ b/devel/rhtvision/Makefile @@ -1,48 +1,51 @@ PORTNAME= rhtvision PORTVERSION= 2.2.1.1 PORTREVISION= 11 CATEGORIES= devel MASTER_SITES= SF/tvision/UNIX/${PORTVERSION:R}%20CVS20100714%20Source%20and%20Debian%205.0 DISTNAME= ${PORTNAME}_${PORTVERSION:R}-${PORTVERSION:E} 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 WRKSRC= ${WRKDIR}/tvision USES= gmake perl5 shebangfix SHEBANG_FILES= config.pl confignt.pl conflib.pl linux/compress USE_GCC= yes HAS_CONFIGURE= yes CONFIGURE_ARGS= --prefix=${STAGEDIR}${PREFIX} \ --real-prefix=${PREFIX} \ --no-libs-here USE_LDCONFIG= yes CFLAGS+= -I${LOCALBASE}/include \ -fpermissive LDFLAGS+= -L${LOCALBASE}/lib # The port does not build with C++11 or later (bug 219275). USE_CXXSTD= gnu++98 PLIST_SUB= VERSION="${PORTVERSION:R}" NLS_USES= gettext NLS_CONFIGURE_OFF= --no-intl X11_USES= xorg X11_USE= XORG=x11,xmu X11_CONFIGURE_ON= --x-include=${LOCALBASE}/include \ --x-lib=${LOCALBASE}/lib X11_CONFIGURE_OFF= --X11lib=no post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/rhtv-config \ ${STAGEDIR}${PREFIX}/lib/librhtv.so .include 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 + #include + + #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)