MFH: r549081

games/wmtictactoe: Fix build with clang-11

PR:		249464
Submitted by:	jd.fbsd@goneja.de (initial version)

Approved by:	ports-secteam (fluffy)
This commit is contained in:
Yuri Victorovich 2020-09-20 16:48:13 +00:00
parent a210370526
commit 1353618573
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2020Q3/; revision=549122

View File

@ -12,11 +12,16 @@ COMMENT= Dockable TicTacToe game for WindowMaker and AfterStep
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>