summaryrefslogtreecommitdiffstats
path: root/games/brainparty/Makefile
blob: c60d7328a2c6f130f8f23c6b532f3c3d8ec7b388 (plain)
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
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$

PORTNAME=	brainparty
PORTVERSION=	0.5
PORTREVISION=	4
CATEGORIES=	games
MASTER_SITES=	http://www.tuxradar.com/files/brainparty/ \
		http://mirror.amdmi3.ru/distfiles/
DISTNAME=	${PORTNAME}${PORTVERSION}

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	Family-friendly set of 36 puzzle games

USE_GMAKE=	yes
USE_SDL=	sdl mixer ttf gfx image
USE_GL=		gl glu

WRKSRC=		${WRKDIR}/${PORTNAME}

PORTDOCS=	CREDITS README

.include <bsd.port.options.mk>

post-patch:
	@${REINPLACE_CMD} -e 's|Content/|${DATADIR}/|' ${WRKSRC}/*.cpp

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
	${MKDIR} ${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/Content/* ${DATADIR}/
.if ${PORT_OPTIONS:MDOCS}
	${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
.endfor
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud