aboutsummaryrefslogtreecommitdiff
path: root/games/wmtictactoe/Makefile
blob: 391dd7b3bb61106959912a6b64455b34daf8125c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
PORTNAME=	wmtictactoe
DISTVERSION=	1.1-1
CATEGORIES=	games windowmaker afterstep
MASTER_SITES=	LOCAL/jim

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Dockable TicTacToe game for WindowMaker and AfterStep

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/../COPYING

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>