Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / games / mirrormagic-sdl / Makefile
blob7e4bf801b5cf7c86d85a9b32f8386e634b77feb3
1 # $NetBSD: Makefile,v 1.29 2012/01/28 11:00:55 wiz Exp $
4 DISTNAME= mirrormagic-2.0.2
5 PKGNAME= ${DISTNAME:S/-/-sdl-/}
6 PKGREVISION= 18
7 CATEGORIES= games x11
8 MASTER_SITES= http://www.artsoft.org/RELEASES/unix/mirrormagic/
10 MAINTAINER= pkgsrc-users@NetBSD.org
11 HOMEPAGE= http://www.artsoft.org/mirrormagic/
12 COMMENT= Nice little puzzle game with color graphics and sound
14 CONFLICTS= mirrormagic-[1-9]*
16 USE_TOOLS+= gmake pax
17 PLIST_SRC= ${WRKDIR}/PLIST PLIST
19 # if you change SCORE_PATH, don't forget to change patch-aa, too
20 SCORE_PATH= /var/games/mirrormagic
22 SETGIDGAME= yes
23 OWN_DIRS_PERMS= ${SCORE_PATH} ${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE}
24 OWN_DIRS_PERMS+= ${SCORE_PATH}/scores \
25 ${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE}
26 OWN_DIRS_PERMS+= ${SCORE_PATH}/scores/classic_deflektor \
27 ${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE}
28 OWN_DIRS_PERMS+= ${SCORE_PATH}/scores/classic_mindbender \
29 ${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE}
31 SPECIAL_PERMS= bin/mirrormagic ${SETGID_GAMES_PERMS}
33 INSTALLATION_DIRS= bin
35 do-install:
36 ${INSTALL_PROGRAM} ${WRKSRC}/mirrormagic ${DESTDIR}${PREFIX}/bin
37 ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/mirrormagic
38 cd ${WRKSRC} && pax -rw graphics levels music sounds \
39 ${DESTDIR}${PREFIX}/share/mirrormagic/
41 ${RM} -f ${WRKDIR}/PLIST
42 .for levdir in Classic_Games
43 cd ${DESTDIR}${PREFIX} && \
44 ${FIND} share/mirrormagic/levels/${levdir} -type f -print \
45 >>${WRKDIR}/PLIST
46 .endfor
47 .for directory in graphics music sounds
48 cd ${DESTDIR}${PREFIX} && \
49 ${FIND} share/mirrormagic/${directory} -type f -print \
50 >>${WRKDIR}/PLIST
51 .endfor
53 .include "../../audio/SDL_mixer/buildlink3.mk"
54 .include "../../graphics/SDL_image/buildlink3.mk"
55 .include "../../mk/bsd.pkg.mk"