summaryrefslogtreecommitdiff
path: root/games/rocksndiamonds/Makefile
blob: 32c5a8443944cb84c7438b24f4b3815a315221c3 (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
# $NetBSD: Makefile,v 1.2 2000/01/05 01:02:12 wiz Exp $
#

DISTNAME=		rocksndiamonds-1.4.0
CATEGORIES=		games x11
MASTER_SITES=		http://www.artsoft.org/rocksndiamonds/RELEASES/

MAINTAINER=		wiz@netbsd.org
HOMEPAGE=		http://www.artsoft.org/rocksndiamonds/

USE_GMAKE=		YES

# if you change SCORE_PATH, don't forget to change patch-aa, too
SCORE_PATH=		/var/games/rocksndiamonds

do-install:
	${INSTALL_PROGRAM} -o games -g games -m 2755 \
		${WRKSRC}/rocksndiamonds ${PREFIX}/bin/
	${INSTALL_MAN} ${WRKSRC}/rocksndiamonds.1 ${PREFIX}/man/man1/
	${MKDIR} ${PREFIX}/share/rocksndiamonds
	cd ${WRKSRC} && ${PAX} -r -w sounds graphics levels \
		${PREFIX}/share/rocksndiamonds/
	${CHOWN} -R games:games ${PREFIX}/share/rocksndiamonds
	${MKDIR} ${SCORE_PATH}/scores
	${CHMOD} 755 ${SCORE_PATH}
	${CHMOD} 775 ${SCORE_PATH}/scores
.for directory in classic_boulderdash classic_emerald_mine \
	classic_sokoban classic_supaplex rnd_tutorial \
	rnd_ben_braithwaite rnd_charles_briscoe-smith \
	rnd_gerhard_haeusler rnd_holger_schemel rnd_jan_hubicka \
	rnd_kimball_robinson rnd_kjell_kristiansson \
	rnd_martin_herrmann rnd_pavel_machek rnd_tobias_authmann \
	rnd_visa_hastrup rnd_warwick_allison rnd_stephan_beyer \
	bd_boulderdash_16 bd_boulderdash_2 bd_xbd
		${MKDIR} ${SCORE_PATH}/scores/${directory} \
		&& ${CHMOD} 775 ${SCORE_PATH}/scores/${directory}
.endfor
	${CHOWN} -R games:games ${SCORE_PATH}

.include "../../mk/bsd.pkg.mk"