blob: 49fc53fb7c73605190313e26c25ce43377eaf607 (
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
48
49
50
51
52
53
54
55
56
57
|
# $NetBSD: Makefile,v 1.25 2009/08/26 19:57:32 sno Exp $
#
DISTNAME= mirrormagic-2.0.2
PKGNAME= ${DISTNAME:S/-/-sdl-/}
PKGREVISION= 14
CATEGORIES= games x11
MASTER_SITES= http://www.artsoft.org/RELEASES/unix/mirrormagic/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.artsoft.org/mirrormagic/
COMMENT= Nice little puzzle game with color graphics and sound
CONFLICTS= mirrormagic-[1-9]*
PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= gmake pax
PLIST_SRC= ${WRKDIR}/PLIST PLIST
# if you change SCORE_PATH, don't forget to change patch-aa, too
SCORE_PATH= /var/games/mirrormagic
SETGIDGAME= yes
OWN_DIRS_PERMS= ${SCORE_PATH} ${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE}
OWN_DIRS_PERMS+= ${SCORE_PATH}/scores \
${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE}
OWN_DIRS_PERMS+= ${SCORE_PATH}/scores/classic_deflektor \
${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE}
OWN_DIRS_PERMS+= ${SCORE_PATH}/scores/classic_mindbender \
${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE}
SPECIAL_PERMS= bin/mirrormagic ${SETGID_GAMES_PERMS}
INSTALLATION_DIRS= bin
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mirrormagic ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/mirrormagic
cd ${WRKSRC} && pax -rw graphics levels music sounds \
${DESTDIR}${PREFIX}/share/mirrormagic/
${RM} -f ${WRKDIR}/PLIST
.for levdir in Classic_Games
cd ${DESTDIR}${PREFIX} && \
${FIND} share/mirrormagic/levels/${levdir} -type f -print \
>>${WRKDIR}/PLIST
.endfor
.for directory in graphics music sounds
cd ${DESTDIR}${PREFIX} && \
${FIND} share/mirrormagic/${directory} -type f -print \
>>${WRKDIR}/PLIST
.endfor
.include "../../audio/SDL_mixer/buildlink3.mk"
.include "../../graphics/SDL_image/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|