summaryrefslogtreecommitdiff
path: root/games/ttt/Makefile
blob: 2fae0d59e21c65183064e172c668bbbac69c4b15 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# New ports collection makefile for:	ttt
# Date created:				11 July 2005
# Whom:					Alejandro Pulver <alejandro@varnet.biz>
#
# $FreeBSD$
#

PORTNAME=	ttt
PORTVERSION=	2011.04
CATEGORIES=	games
MASTER_SITES=	ftp://ftp.tuxpaint.org/unix/x/ttt/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Simple one or two player Tic Tac Toe game

# net/ttt
CONFLICTS=	ttt-1*
NO_LATEST_LINK=	yes

LICENSE=	GPLv2 GPLv3
LICENSE_COMB=	dual

USE_SDL=	sdl
USE_GMAKE=	yes
USE_AUTOTOOLS=	aclocal automake autoheader autoconf
AUTOMAKE_ARGS=	--add-missing --force
CONFIGURE_ENV=	LDFLAGS="${LDFLAGS}"
MAKE_JOBS_SAFE=	yes

CPPFLAGS=	-I${LOCALBASE}/include
LDFLAGS=	-L${LOCALBASE}/lib

post-patch:
	@${REINPLACE_CMD} -e \
		'/SDL_mixer/d' ${WRKSRC}/configure.ac
	@${REINPLACE_CMD} -e \
		's|\./images|${DATADIR}/images|g' ${WRKSRC}/src/init.c

post-install:
	@${MKDIR} ${DATADIR}/images
	${INSTALL_DATA} ${WRKSRC}/images/*.bmp ${DATADIR}/images

.include <bsd.port.mk>