9ae2b33e48
- fixed obvious bug with wrong "Murphy" graphics (when digging etc.) - fixed a lot of Emerald Mine and Supaplex game engine emulation bugs - re-converted Emerald Mine and Supaplex levels to apply engine fixes - changed default snap/drop keys from left/right Shift to Control keys - added level loader for loading native Emerald Mine levels - added level loader for loading native Supaplex packed levels - added group elements for multiple matches and random element creation - added elements that can be digged or left behind by custom elements - added element "Sokoban field with player" missing for Sokoban levels - added custom element features to allow building of teleporters - added option to use step limit instead of time limit for level - added pressing "space" key as valid action to select menu options - added clipboard (cut and paste buttons) for custom and group elements - added shortcut to dump brush (type ":DB" in editor) for use in forum - added network multiplayer code for Windows (still only command line) - replaced old tutorial level set with far better one by Niko Böhm - "contributions" levels now separate package to make base set smaller - too many bugfixes and changes to list them all here (see ChangeLog)
68 lines
2.2 KiB
Makefile
68 lines
2.2 KiB
Makefile
# $NetBSD: Makefile.common,v 1.10 2004/11/03 15:14:17 adam Exp $
|
|
|
|
DISTNAME= rocksndiamonds-3.1.0
|
|
CATEGORIES= games x11
|
|
MASTER_SITES= http://www.artsoft.org/RELEASES/unix/rocksndiamonds/
|
|
|
|
MAINTAINER= heinz@NetBSD.org
|
|
HOMEPAGE= http://www.artsoft.org/rocksndiamonds/
|
|
|
|
USE_BUILDLINK3= YES
|
|
USE_GNU_TOOLS+= make
|
|
USE_PKGINSTALL= YES
|
|
USE_X11= YES
|
|
|
|
PLIST_SRC= ${WRKDIR}/PLIST ../rocksndiamonds/PLIST
|
|
PLIST_SUBST+= SCORE_PATH=${SCORE_PATH}
|
|
PLIST_SUBST+= ROCK_INSTALL_DIR="${INSTALL} -d -o ${RND_USER} -g ${RND_GROUP} -m 775"
|
|
|
|
PKG_GROUPS= ${RND_GROUP}
|
|
PKG_USERS= ${RND_USER}:${RND_GROUP}
|
|
|
|
RND_USER= games
|
|
RND_GROUP= games
|
|
|
|
.if ( ${MACHINE} == "i386" || ${MACHINE} == "prep" || ${MACHINE} == "cats" || \
|
|
${MACHINE} == "shark" )
|
|
MAKE_ENV+= HAVE_JOYSTICK=1
|
|
.endif
|
|
|
|
SCORE_PATH= ${VARBASE}/games/rocksndiamonds
|
|
|
|
pre-configure:
|
|
@${SED} -e "s,@SCORE_PATH@,${SCORE_PATH},g" \
|
|
${WRKSRC}/Makefile > ${WRKSRC}/Makefile.fixed && \
|
|
${MV} ${WRKSRC}/Makefile.fixed ${WRKSRC}/Makefile
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} -o ${RND_USER} -g ${RND_GROUP} -m 2755 \
|
|
${WRKSRC}/rocksndiamonds ${PREFIX}/bin/
|
|
${INSTALL_MAN} ${WRKSRC}/rocksndiamonds.1 ${PREFIX}/man/man1/
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/rocksndiamonds
|
|
cd ${WRKSRC} && ${PAX} -rw sounds graphics levels music \
|
|
${PREFIX}/share/rocksndiamonds/
|
|
${CHOWN} -R ${RND_USER}:${RND_GROUP} ${PREFIX}/share/rocksndiamonds
|
|
${CHMOD} -R a-w ${PREFIX}/share/rocksndiamonds
|
|
${INSTALL_DATA_DIR} ${SCORE_PATH}/scores
|
|
${CHMOD} 755 ${SCORE_PATH}
|
|
${CHMOD} 775 ${SCORE_PATH}/scores
|
|
# extract basenames of level subdirectories, levelinfo.conf is a file
|
|
LEVELDIRS=`${LS} -d ${WRKSRC}/levels/*/* | \
|
|
${SED} -e 's@^.*/\([^/]*\)$$@\1@' -e '/levelinfo\.conf/d'` && \
|
|
for directory in $${LEVELDIRS}; do \
|
|
${INSTALL_DATA_DIR} ${SCORE_PATH}/scores/$${directory}; \
|
|
${CHMOD} 775 ${SCORE_PATH}/scores/$${directory}; \
|
|
done
|
|
${CHOWN} -R ${RND_USER}:${RND_GROUP} ${SCORE_PATH}
|
|
# auto-generated PLIST
|
|
${RM} -f ${WRKDIR}/PLIST
|
|
.for levdir in Classic_Games Tutorials
|
|
cd ${PREFIX} && \
|
|
${FIND} share/rocksndiamonds/levels/${levdir} -type f -print >>${WRKDIR}/PLIST
|
|
.endfor
|
|
.for directory in graphics music sounds
|
|
cd ${PREFIX} && \
|
|
${FIND} share/rocksndiamonds/${directory} -type f -print >>${WRKDIR}/PLIST
|
|
.endfor
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|