summaryrefslogtreecommitdiff
path: root/games/tanked/Makefile
blob: 4f81e56ed717d075d1e44acf62a1f46fbaf5e8e7 (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
# $NetBSD: Makefile,v 1.21 2016/02/25 08:27:03 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

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"