summaryrefslogtreecommitdiff
path: root/games/tanked/Makefile
blob: 886e7d5137577a79832805ce0b3cc0da33b6f053 (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
# $NetBSD: Makefile,v 1.20 2014/09/23 18:55:24 jperkin Exp $
#

DISTNAME=		tanked-0.90
PKGREVISION=		3
CATEGORIES=		games x11
MASTER_SITES=		# empty

MAINTAINER=		pkgsrc-users@NetBSD.org
#HOMEPAGE=		http://ogresoft.dyn.ml.org/tanked.html
COMMENT=		Multiplayer internet tank game for X11

MAKE_JOBS_SAFE=		no

USE_TOOLS=		imake
SETGIDGAME=		yes
INSTALLATION_DIRS+=	bin

OPSYSVARS+=		MAKE_ENV
MAKE_ENV.SunOS+=	EXTRALIBS="-lsocket -lnsl"

SPECIAL_PERMS=		bin/tanked ${SETGID_GAMES_PERMS}

.for dir in maps logs
OWN_DIRS_PERMS+=	share/tanked/${dir}	\
			${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE}
.endfor

post-patch:
	@${TOUCH} ${WRKSRC}/client/tanked.man
	@${MV} ${WRKSRC}/server/maps.list ${WRKSRC}/server/maps.list.bak
	@${SED} -e 's@XXX@${PREFIX}/share/tanked/@' \
		< ${WRKSRC}/server/maps.list.bak > ${WRKSRC}/server/maps.list

.include "../../x11/libXmu/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"