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-
/}
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]*
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
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
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 \
47 .for directory in graphics music sounds
48 cd
${DESTDIR}${PREFIX} && \
49 ${FIND} share
/mirrormagic
/${directory} -type f
-print \
53 .
include "../../audio/SDL_mixer/buildlink3.mk"
54 .
include "../../graphics/SDL_image/buildlink3.mk"
55 .
include "../../mk/bsd.pkg.mk"