1
0
mirror of https://git.freebsd.org/ports.git synced 2026-06-02 11:08:52 +00:00

japanese/mh: fix build on 16.0-current/15.0-stable and add LICENSE

${WRKSRC}/uip/vmh.c includes <term.h> (a part of ncurses).
And on FreeBSD term.h includes <termios.h> with ncurses-6.5.

But since ncurses-6.6 term.h doesn't include termios/termio/sgttyb headers
and doesn't define some related symbols.  These directive has been excluded
with "#ifdef NCURSES_INTERNALS".

PR:		293936
MFH:		2026Q2
See also:	https://forums.gentoo.org/viewtopic-t-1100154-start-0-postdays-0-postorder-asc-highlight-.html
Event:		Wiesbaden Hackathon 202604
This commit is contained in:
WATANABE Kazuhiro
2026-04-24 15:52:48 +02:00
committed by Robert Clausecker
parent 6ede25fa51
commit b0f02c542d
2 changed files with 19 additions and 5 deletions
+4 -1
View File
@@ -1,6 +1,6 @@
PORTNAME= mh
PORTVERSION= ${VERSION}.j${JP_VERSION}
PORTREVISION= 8
PORTREVISION= 9
CATEGORIES= japanese mail
MASTER_SITES= ftp://ftp.laic.u-hyogo.ac.jp/pub/net/mh/
DISTNAME= ${PORTNAME}-${VERSION}-JP-${JP_VERSION}
@@ -8,6 +8,9 @@ DISTNAME= ${PORTNAME}-${VERSION}-JP-${JP_VERSION}
MAINTAINER= CQG00620@nifty.ne.jp
COMMENT= Rand MH mail handling system + Japanese patches
LICENSE= PD
LICENSE_FILE= ${WRKSRC}/READ-ME
BUILD_DEPENDS= jless:japanese/less
RUN_DEPENDS= jless:japanese/less
+15 -4
View File
@@ -1,16 +1,27 @@
--- uip/vmh.c.orig 2001-04-21 11:16:49 UTC
+++ uip/vmh.c
@@ -116,6 +116,13 @@ void __cputchar __P((int));
@@ -42,6 +42,10 @@ static char ident[] = "@(#)$Id: vmh.c,v 1.20 1993/08/2
#endif
#undef OK /* tricky */
#ifdef TERMINFO
+#include <sys/param.h>
+#if defined(__FreeBSD__) && __FreeBSD_version > 1500068
+#define NCURSES_INTERNALS
+#endif
#include <term.h> /* variables describing terminal capabilities */
#if defined(HAVE_TCGETATTR) && !defined(TCGETATTR)
#define TCGETATTR
@@ -115,6 +119,13 @@ void __cputchar __P((int));
#define XYZ /* XXX */
+
+#if defined(__FreeBSD__) && __FreeBSD__ >= 5
+struct ldat
+{
+ unsigned long *text;
+};
+#endif
+
/* */
static struct swit switches[] = {