git: 66018c8f381d - 2026Q3 - games/bsdgames: Update 0.76 => 0.77

From: Yusuf Yaman <nxjoseph_at_FreeBSD.org>
Date: Sat, 26 Sep 2026 13:57:12 UTC
The branch 2026Q3 has been updated by nxjoseph:

URL: https://cgit.FreeBSD.org/ports/commit/?id=66018c8f381da08ec738bdb57c4a7ec0167032fa

commit 66018c8f381da08ec738bdb57c4a7ec0167032fa
Author:     Joachim Werner <jockl@pianojockl.org>
AuthorDate: 2026-09-26 13:52:10 +0000
Commit:     Yusuf Yaman <nxjoseph@FreeBSD.org>
CommitDate: 2026-09-26 13:56:57 +0000

    games/bsdgames: Update 0.76 => 0.77
    
    This release fixes segmentation faults after reloading a save game.
    
    While here:
    - Drop backported patches since they are in now upstream.
    - Regenerate tetris patch with `make makepatch` (stage-qa).
    
    Commit log:
    https://github.com/pianojockl/bsdgames/compare/v0.76...v0.77
    
    PR:             281947
    Approved by:    osa, vvd (Mentors, implicit)
    MFH:            2026Q3
    
    (cherry picked from commit 4b2ff5266c239dfe67c43f78df7838dd99da22cb)
---
 games/bsdgames/Makefile                            |  2 +-
 games/bsdgames/distinfo                            |  6 ++---
 games/bsdgames/files/patch-atc_update.c            | 11 ---------
 .../files/patch-backgammon_teachgammon_Makefile    | 11 ---------
 games/bsdgames/files/patch-battlestar_BSDmakefile  | 27 ----------------------
 games/bsdgames/files/patch-tetris_screen.c         |  6 ++---
 6 files changed, 7 insertions(+), 56 deletions(-)

diff --git a/games/bsdgames/Makefile b/games/bsdgames/Makefile
index ea1956e9c3e4..ccd5c83852fe 100644
--- a/games/bsdgames/Makefile
+++ b/games/bsdgames/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	bsdgames
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.76
+DISTVERSION=	0.77
 PORTEPOCH=	2
 CATEGORIES=	games
 
diff --git a/games/bsdgames/distinfo b/games/bsdgames/distinfo
index 6e60bf1ebb5e..ba724adbd753 100644
--- a/games/bsdgames/distinfo
+++ b/games/bsdgames/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1726606774
-SHA256 (pianojockl-bsdgames-v0.76_GH0.tar.gz) = fba58361de9c6c3d4489f60e3d61e6fde1655ef53a6bb12378880af19b2e748f
-SIZE (pianojockl-bsdgames-v0.76_GH0.tar.gz) = 2500755
+TIMESTAMP = 1790422781
+SHA256 (pianojockl-bsdgames-v0.77_GH0.tar.gz) = 1f1f6cf3cc8b5b7e380561a121bd5488d731042babe26e35c5dfe2f9dfaa54a0
+SIZE (pianojockl-bsdgames-v0.77_GH0.tar.gz) = 2502650
diff --git a/games/bsdgames/files/patch-atc_update.c b/games/bsdgames/files/patch-atc_update.c
deleted file mode 100644
index 3431b036e161..000000000000
--- a/games/bsdgames/files/patch-atc_update.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- atc/update.c.orig	2020-02-26 16:22:47 UTC
-+++ atc/update.c
-@@ -284,7 +284,7 @@ next_plane(void)
- 					break;
- 				}
- 	} while (found && last_plane != start_plane);
--	if (last_plane == start_plane)
-+	if (found)
- 		return (-1);
- 	return (last_plane);
- }
diff --git a/games/bsdgames/files/patch-backgammon_teachgammon_Makefile b/games/bsdgames/files/patch-backgammon_teachgammon_Makefile
deleted file mode 100644
index 021c95251439..000000000000
--- a/games/bsdgames/files/patch-backgammon_teachgammon_Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
---- backgammon/teachgammon/Makefile.orig	2019-03-07 17:01:43 UTC
-+++ backgammon/teachgammon/Makefile
-@@ -1,7 +1,7 @@
- #	@(#)Makefile	8.1 (Berkeley) 5/31/93
- 
- PROG=	teachgammon
--NOMAN=	noman
-+MK_MAN= no
- CFLAGS+=-DTEACHGAMMON_TEXT -I${.CURDIR}/../common_source
- SRCS=	allow.c board.c check.c data.c fancy.c init.c odds.c one.c save.c \
- 	subs.c table.c teach.c ttext1.c ttext2.c tutor.c
diff --git a/games/bsdgames/files/patch-battlestar_BSDmakefile b/games/bsdgames/files/patch-battlestar_BSDmakefile
deleted file mode 100644
index c378a3184928..000000000000
--- a/games/bsdgames/files/patch-battlestar_BSDmakefile
+++ /dev/null
@@ -1,27 +0,0 @@
---- battlestar/BSDmakefile.orig	2020-02-26 16:22:47 UTC
-+++ battlestar/BSDmakefile
-@@ -1,5 +1,5 @@
--#	$NetBSD: Makefile,v 1.9 2001/10/19 03:06:09 tv Exp $
- #	@(#)Makefile	8.1 (Berkeley) 5/31/93
-+# $FreeBSD: src/games/battlestar/Makefile,v 1.5.2.3 2002/08/07 16:31:41 ru Exp $
- 
- PROG=	battlestar
- SRCS=	battlestar.c command1.c command2.c command3.c command4.c \
-@@ -7,9 +7,13 @@ SRCS=	battlestar.c command1.c command2.c command3.c co
- 	init.c cypher.c getcom.c parse.c room.c save.c fly.c misc.c \
- 	globals.c dayfile.c nightfile.c dayobjs.c nightobjs.c words.c
- MAN=	battlestar.6
--DPADD=	${LIBCURSES}
--LDADD=	-lcurses
--HIDEGAME=hidegame
--SETGIDGAME=yes
-+VARGAMES=
-+GAMESCURSES=
-+
-+beforeinstall:
-+.if !exists(${DESTDIR}/var/games/battlestar.log)
-+	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
-+	    ${DESTDIR}/var/games/battlestar.log
-+.endif
- 
- .include <bsd.prog.mk>
diff --git a/games/bsdgames/files/patch-tetris_screen.c b/games/bsdgames/files/patch-tetris_screen.c
index 816c78e7b51c..9cf317c52d18 100644
--- a/games/bsdgames/files/patch-tetris_screen.c
+++ b/games/bsdgames/files/patch-tetris_screen.c
@@ -1,10 +1,10 @@
---- ./tetris/screen.c.ORIG	2024-09-17 22:29:09.000000000 +0200
-+++ ./tetris/screen.c	2026-05-12 07:56:04.845628000 +0200
+--- tetris/screen.c.orig	2026-09-26 10:54:51 UTC
++++ tetris/screen.c
 @@ -48,6 +48,7 @@
  #include <stdlib.h>
  #include <string.h>
  #include <term.h>
 +#include <termios.h>
  #include <unistd.h>
-
+ 
  #include "screen.h"