summaryrefslogtreecommitdiff
path: root/games/cbzone/Makefile
blob: 5589de0393a2af49cec2e19291b11cbe2389f440 (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
# $NetBSD: Makefile,v 1.10 2011/03/16 08:47:37 obache Exp $

DISTNAME=		cbzone-sound
PKGNAME=		cbzone-2.0c
PKGREVISION=		2
CATEGORIES=		games x11
MASTER_SITES=		ftp://ftp.cdrom.com/pub/X11/R5contrib/

MAINTAINER=		pkgsrc-users@NetBSD.org
COMMENT=		Simple classic game of 3D tank warfare

PKG_DESTDIR_SUPPORT=	user-destdir

WRKSRC=			${WRKDIR}/cbzone
USE_TOOLS+=		gmake
USE_IMAKE=		yes

BUILD_DEFS+=		VARBASE
BUILD_DEFS+=		GAMES_USER
BUILD_DEFS+=		GAMES_GROUP
BUILD_DEFS+=		GAMEDATAMODE

MAKE_DIRS_PERMS+=	${VARBASE}/games ${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE}
REQD_FILES_PERMS+=	/dev/null ${VARBASE}/games/cbzone.highscores \
			${GAMES_USER} ${GAMES_GROUP} ${GAMEDATAMODE}
SPECIAL_PERMS+=		bin/cbzone.exec ${SETGID_GAMES_PERMS}

SUBST_CLASSES+=		scoredir
SUBST_STAGE.scoredir=	post-configure
SUBST_FILES.scoredir=	c_scores.c
SUBST_VARS.scoredir=	VARBASE

.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"