summaryrefslogtreecommitdiffstats
path: root/games/xnibbles/Makefile
blob: dbafdb6400f2caf5fa5a36a962e1ae1e9d46425e (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
40
41
42
43
44
45
46
47
# New ports collection makefile for:	xnibbles
# Date created:				2 March 1998
# Whom:					Andrey Zakhvatov
#
# $FreeBSD$
#

PORTNAME=	xnibbles
PORTVERSION=	1.0.b3
CATEGORIES=	games
MASTER_SITES=	http://www.tjhsst.edu/xnibbles/
DISTNAME=	${PORTNAME}-${PORTVERSION:S/.b/BETA/}

MAINTAINER=	ports@FreeBSD.org

PORTCOMMENT=	A simple X11 snake game, like one seen in MS-DOS\'s qbasic

WRKSRC=		${WRKDIR}/${PORTNAME}

USE_X_PREFIX=	yes
USE_XPM=	yes
USE_GMAKE=	yes
MAKE_ENV=	CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
ALL_TARGET=	linux

MAN6=		xnibbles.6

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/xnibbles ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/xnibbles.6 ${MANPREFIX}/man/man6
	@${MKDIR} ${PREFIX}/share/xnibbles/sounds
	${INSTALL_DATA} ${WRKSRC}/sounds/*.ub ${PREFIX}/share/xnibbles/sounds
	@${MKDIR} ${PREFIX}/share/xnibbles/levels
.if exists(${PREFIX}/share/xnibbles/levels/LEVELS)
	@${RM} ${PREFIX}/share/xnibbles/levels/LEVELS
.endif
	@${TOUCH} ${PREFIX}/share/xnibbles/levels/LEVELS
.for file in 001 002 003 004 005 006 007 008 009 010 011 012
	@${ECHO_CMD} ${PREFIX}/share/xnibbles/levels/level${file}.xnl >> ${PREFIX}/share/xnibbles/levels/LEVELS
	${INSTALL_DATA} ${WRKSRC}/levels/*.xnl ${PREFIX}/share/xnibbles/levels
.endfor
	@${MKDIR} ${PREFIX}/share/doc/xnibbles
	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xnibbles
	${INSTALL_DATA} ${WRKSRC}/TODO ${PREFIX}/share/doc/xnibbles
	${INSTALL_DATA} ${WRKSRC}/levels/README ${PREFIX}/share/doc/xnibbles/README.levels

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