git: cb7e0ef208e9 - main - games/nInvaders: work around duplicate symbol issue

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Fri, 14 Apr 2023 14:17:59 UTC
The branch main has been updated by fuz:

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

commit cb7e0ef208e9808e4910e9133fde733947c1381f
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2023-04-13 08:53:15 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-04-14 14:16:08 +0000

    games/nInvaders: work around duplicate symbol issue
    
    Supply -fcommon to enable a build with recent LLVM.
    This fixes the build on FreeBSD 13+.
    While we are at it, define LICENSE.
---
 games/nInvaders/Makefile | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/games/nInvaders/Makefile b/games/nInvaders/Makefile
index 46c19d9bb458..64e413487c29 100644
--- a/games/nInvaders/Makefile
+++ b/games/nInvaders/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	nInvaders
-PORTVERSION=	0.1.1
+DISTVERSION=	0.1.1
+PORTREVISION=	1
 CATEGORIES=	games
 MASTER_SITES=	SF
 DISTNAME=	ninvaders-${PORTVERSION}
@@ -8,10 +9,11 @@ MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Space Invaders clone for ncurses
 WWW=		http://ninvaders.sourceforge.net/
 
-BROKEN_FreeBSD_13=	ld: error: duplicate symbol: alienBlock
-BROKEN_FreeBSD_14=	ld: error: duplicate symbol: alienBlock
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/gpl.txt
 
 USES=		ncurses
+CFLAGS+=	-fcommon
 
 OPTIONS_DEFINE=	DOCS