* fixed crash bug when scrolling with cursor keys in editor * fixed X11 crash bug when scaling images with width/height less than 32 * fixed X11 crash bug when blitting masked title screens over background * fixed growing steel wall to also leave behind steel wall * fixed custom element change conditions where a player element is used * fixed bug with player relocation while the player switches an element * fixed problems with re-mapping players on playfield to input devices * fixed wrong behaviour of player option "no centering when relocating" * added condition "deadly when " for custom elements * added possibility to reanimate player immediately after his death * added "element used as action parameter" to element change actions * added optional initial inventory for players (pre-collected elements) * added change page actions "set player inventory" and "set CE artwork" * added switch for EM style dynamite "[ ] explodes with chain reaction" * moved "level settings" and "editor settings" to two tabbed screens * added level setting to start a level with always the same random seed * added CE action "set random seed" to re-initialize random seed in game
86 lines
2.8 KiB
Makefile
86 lines
2.8 KiB
Makefile
# $NetBSD: Makefile,v 1.38 2009/01/12 19:22:18 adam Exp $
|
|
|
|
DISTNAME= rocksndiamonds-3.2.6.0
|
|
CATEGORIES= games x11
|
|
MASTER_SITES= http://www.artsoft.org/RELEASES/unix/rocksndiamonds/
|
|
|
|
MAINTAINER= heinz@NetBSD.org
|
|
HOMEPAGE= http://www.artsoft.org/rocksndiamonds/
|
|
COMMENT= Game like Boulder Dash, Emerald Mine, or Sokoban
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
USE_TOOLS+= gmake
|
|
|
|
INSTALLATION_DIRS+= bin ${PKGMANDIR}/man6
|
|
|
|
BUILD_DEFS+= VARBASE SCORE_PATH
|
|
|
|
SHARESUBDIR= share/rocksndiamonds
|
|
SHAREDIR= ${PREFIX}/${SHARESUBDIR}
|
|
|
|
SCORE_PATH= ${VARBASE}/games/rocksndiamonds
|
|
|
|
REQD_DIRS+= ${SHARESUBDIR}
|
|
|
|
SETGIDGAME= yes
|
|
|
|
OWN_DIRS_PERMS+= ${SCORE_PATH:Q}
|
|
OWN_DIRS_PERMS+= ${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE}
|
|
OWN_DIRS_PERMS+= ${SCORE_PATH:Q}/scores
|
|
OWN_DIRS_PERMS+= ${GAMES_USER} ${GAMES_GROUP} 750
|
|
OWN_DIRS_PERMS+= ${SCORE_PATH:Q}/scores/classic_boulderdash
|
|
OWN_DIRS_PERMS+= ${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE}
|
|
OWN_DIRS_PERMS+= ${SCORE_PATH:Q}/scores/classic_emerald_mine
|
|
OWN_DIRS_PERMS+= ${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE}
|
|
OWN_DIRS_PERMS+= ${SCORE_PATH:Q}/scores/classic_sokoban
|
|
OWN_DIRS_PERMS+= ${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE}
|
|
OWN_DIRS_PERMS+= ${SCORE_PATH:Q}/scores/classic_supaplex
|
|
OWN_DIRS_PERMS+= ${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE}
|
|
OWN_DIRS_PERMS+= ${SCORE_PATH:Q}/scores/rnd_tutorial_aaron_davidson
|
|
OWN_DIRS_PERMS+= ${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE}
|
|
OWN_DIRS_PERMS+= ${SCORE_PATH:Q}/scores/rnd_tutorial_niko_boehm
|
|
OWN_DIRS_PERMS+= ${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE}
|
|
|
|
SPECIAL_PERMS= bin/rocksndiamonds ${SETGID_GAMES_PERMS}
|
|
|
|
PLIST_SRC= PLIST ${WRKDIR}/PLIST.F ${WRKDIR}/PLIST.D
|
|
|
|
.if ( ${MACHINE} == "i386" || ${MACHINE} == "prep" || ${MACHINE} == "cats" || \
|
|
${MACHINE} == "shark" )
|
|
MAKE_FLAGS+= JOYSTICK=-DHAVE_JOYSTICK
|
|
.endif
|
|
|
|
MAKE_FLAGS+= CC=${CC:Q}
|
|
MAKE_FLAGS+= MAKE=${MAKE_PROGRAM:Q}
|
|
MAKE_FLAGS+= X11_PATH=${X11BASE}
|
|
MAKE_FLAGS+= RO_GAME_DIR=${PREFIX}/share/rocksndiamonds
|
|
MAKE_FLAGS+= RW_GAME_DIR=${SCORE_PATH:Q}
|
|
MAKE_FLAGS+= X11_INCL=
|
|
MAKE_FLAGS+= X11_LIBS=-lX11
|
|
|
|
.include "options.mk"
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/rocksndiamonds ${DESTDIR}${PREFIX}/bin/
|
|
${INSTALL_MAN} ${WRKSRC}/rocksndiamonds.1 \
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man6/rocksndiamonds.6
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${SHAREDIR}
|
|
# auto-generated PLIST
|
|
rm -f ${WRKDIR}/PLIST.F ${WRKDIR}/PLIST.D
|
|
set -e; \
|
|
cd ${WRKSRC} && \
|
|
for d in sounds graphics levels music; do \
|
|
find "$${d}" -type d -print | { while read subdir; do \
|
|
${INSTALL_DATA_DIR} \
|
|
${DESTDIR}${SHAREDIR}/"$${subdir}"; \
|
|
${ECHO} "@dirrm ${SHARESUBDIR}/$${subdir}"; \
|
|
done ; } | sort -r >> ${WRKDIR}/PLIST.D; \
|
|
find "$${d}" -type f -print | while read f; do \
|
|
${INSTALL_DATA} "$${f}" \
|
|
${DESTDIR}${SHAREDIR}/"$${f}"; \
|
|
${ECHO} ${SHARESUBDIR}/"$${f}" >> ${WRKDIR}/PLIST.F;\
|
|
done ; \
|
|
done
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|