Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Sep 2020 16:48:13 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r549122 - branches/2020Q3/games/wmtictactoe
Message-ID:  <202009201648.08KGmDxM020633@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sun Sep 20 16:48:13 2020
New Revision: 549122
URL: https://svnweb.freebsd.org/changeset/ports/549122

Log:
  MFH: r549081
  
  games/wmtictactoe: Fix build with clang-11
  
  PR:		249464
  Submitted by:	jd.fbsd@goneja.de (initial version)
  
  Approved by:	ports-secteam (fluffy)

Modified:
  branches/2020Q3/games/wmtictactoe/Makefile
Directory Properties:
  branches/2020Q3/   (props changed)

Modified: branches/2020Q3/games/wmtictactoe/Makefile
==============================================================================
--- branches/2020Q3/games/wmtictactoe/Makefile	Sun Sep 20 16:47:18 2020	(r549121)
+++ branches/2020Q3/games/wmtictactoe/Makefile	Sun Sep 20 16:48:13 2020	(r549122)
@@ -12,11 +12,16 @@ COMMENT=	Dockable TicTacToe game for WindowMaker and A
 LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/../COPYING
 
-WRKSRC=		${WRKDIR}/wmtictactoe.app/wmtictactoe
-
 USES=		gmake xorg
 USE_XORG=	x11 xext xpm
 
+WRKSRC=		${WRKDIR}/wmtictactoe.app/wmtictactoe
+
 PLIST_FILES=	bin/wmtictactoe
+
+post-patch: # fix for the build failure with -fno-common
+	@${REINPLACE_CMD} 's|^Display|extern Display|; s|^Window|extern Window|' ${WRKSRC}/../wmgeneral/wmgeneral.h
+	@${ECHO} "Display         *display;"           >> ${WRKSRC}/../wmgeneral/wmgeneral.c
+	@${ECHO} "Window          Root, iconwin, win;" >> ${WRKSRC}/../wmgeneral/wmgeneral.c
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009201648.08KGmDxM020633>