git: e9728244e5a6 - main - games/rubix: Drop support for old versions of GCC

From: Gerald Pfeifer <gerald_at_FreeBSD.org>
Date: Tue, 06 Dec 2022 22:58:33 UTC
The branch main has been updated by gerald:

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

commit e9728244e5a6a27756313b1d2fe9589ce0e0125a
Author:     Gerald Pfeifer <gerald@FreeBSD.org>
AuthorDate: 2022-12-06 22:56:13 +0000
Commit:     Gerald Pfeifer <gerald@FreeBSD.org>
CommitDate: 2022-12-06 22:57:17 +0000

    games/rubix: Drop support for old versions of GCC
    
    Remove code catering to GCC 4.2 (as system compiler) which is not
    necessary any longer: USES=compiler never pulls that in any more.
    
    This reverts most of commit 96ec6abecd308e55bbffb19e603b179ebf9a14ab
    from 2019 and parts of commit bb2dcea4df840a7acf309b73f5a79c999143e45c
    from 2015.
---
 games/rubix/Makefile | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/games/rubix/Makefile b/games/rubix/Makefile
index 315862dafe73..a3116e2bab75 100644
--- a/games/rubix/Makefile
+++ b/games/rubix/Makefile
@@ -20,12 +20,6 @@ PLIST_FILES=	bin/rubix
 
 OPTIONS_DEFINE=	DOCS
 
-.include <bsd.port.pre.mk>
-
-.if ${CHOSEN_COMPILER_TYPE} == gcc && ${COMPILER_VERSION} <= 42
-CFLAGS+=	-fnested-functions
-.endif
-
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/rubix ${STAGEDIR}${PREFIX}/bin
 
@@ -35,4 +29,4 @@ do-install-DOCS-on:
 	${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
 .endfor
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>