git: afcde63b907f - main - games/slump: Jettison byteswap/endian hacks

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 31 Dec 2023 04:26:45 UTC
The branch main has been updated by bofh:

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

commit afcde63b907f1b8bc875e06a49eff094e57a031b
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-12-31 04:25:09 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-12-31 04:25:09 +0000

    games/slump: Jettison byteswap/endian hacks
    
    - Make the OSVERSION conditionals simpler
---
 games/slump/Makefile           |  2 +-
 games/slump/files/patch-dump.c | 15 ---------------
 2 files changed, 1 insertion(+), 16 deletions(-)

diff --git a/games/slump/Makefile b/games/slump/Makefile
index d3be126347a9..643eac4d3219 100644
--- a/games/slump/Makefile
+++ b/games/slump/Makefile
@@ -20,7 +20,7 @@ OPTIONS_DEFINE=	DOCS
 
 .include <bsd.port.options.mk>
 
-.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1302505
 CFLAGS+=	-Wno-error=int-conversion
 .endif
 
diff --git a/games/slump/files/patch-dump.c b/games/slump/files/patch-dump.c
deleted file mode 100644
index 44bf886aaa69..000000000000
--- a/games/slump/files/patch-dump.c
+++ /dev/null
@@ -1,15 +0,0 @@
---- ./dump.c.orig	Sun May 29 23:48:57 2005
-+++ ./dump.c	Mon Oct  9 23:53:07 2006
-@@ -36,6 +36,12 @@
- #include <assert.h>
- #include "slump.h"
- 
-+#include <machine/endian.h>
-+
-+#if BYTE_ORDER == BIG_ENDIAN
-+#define ENDIAN_BIG
-+#endif
-+
- /* Global variables */
- 
- extern int current_level_number;