summaryrefslogtreecommitdiff
path: root/games/rocksndiamonds/Makefile
diff options
context:
space:
mode:
authorheinz <heinz@pkgsrc.org>2002-10-19 20:06:45 +0000
committerheinz <heinz@pkgsrc.org>2002-10-19 20:06:45 +0000
commit81aadfcec950fe3771b7606434fcf5099ccf68d4 (patch)
treef1616165faa130fee1a4d0ce5aa56a4d080b082d /games/rocksndiamonds/Makefile
parent46923458032d0a152cdd6b61cf35c467b7dc93e2 (diff)
downloadpkgsrc-81aadfcec950fe3771b7606434fcf5099ccf68d4.tar.gz
Update to rocksndiamonds 2.1.1.
Maybe someone can check how well this works with pkgsrc on MacOS X (see below). Summary of changes since rocksndiamonds-2.0.0 ============================================= - lots of new contributed levels Release Version 2.1.1 [13 AUG 2002] ----------------------------------- - sound bug (causing crashes) fixed (reported by Keith Peterston) - small NetBSD compilation bug fixed (thanks to Adam Ciarcinski) - default keys for "snap field" and "place bomb" fixed for Mac OS X Release Version 2.1.0 [05 AUG 2002] ----------------------------------- - native Mac OS X port (finally!) - graphics, sounds and music now fully configurable - added support for TrueColor PCX graphics files - added support for 16 bit WAV sound files - enhanced sound system (especially regarding stereo and loop sounds) - new structured setup menu (with sub-menues for graphics and sounds) - added "quick save" and "quick load" functions with shortcut key - added single-step playing mode (automatic pause after each step) - behaviour of "Escape" key in level editor now more intuitive - changed default slipping behaviour of gems back to 2.0.0 style; this is now an element property for gems in the level editor, although existing converted levels use the new EM gems behaviour - bug fixed that prevented walking through tubes when gravity on - added Boulder Dash style "snap-pushing" (thanks to Achim Härtel) - fixed memory leak in image loading code - fixed some "solid" elements that were accidentally destructible - fixed some tape stuff - added custom graphics set "Animal Kingdom" by Flyboy Release Version 2.0.1 [19 MAR 2002] ----------------------------------- - bug in explosion code fixed that broke level 24 of "Baby Ghost Mine" - several Supaplex emulation bugs fixed (thanks to Mihail Milushev): + orange disk does not fall off from slippery elements + infotrons kill electrons and snik snaks and trigger orange disks + explosion chain reactions are now a bit slower than murphy - behaviour of robots adjusted to make them less aggressive (needed for quite some Emerald Mine Club levels) - emeralds and diamonds now fall off normal, steel and growing walls, as this is the correct behaviour in Emerald Mine; existing private and contributed levels will still behave as before, unless saved again (with or without modifications) from the level editor of the current version of the game - icon for Windows executable added - bug when selecting default level series fixed - new IFF style file format for level and tape files - bug in storing amoeba content fixed - nasty tape bugs fixed (completely reworked tape stuff) - fullscreen mode now works with Windows (workaround for bug in SDL) - /dev/dsp support for NetBSD added (thanks to Krister Walfridsson) - file permissions when saving files and creating directories changed - some small sound bugs fixed
Diffstat (limited to 'games/rocksndiamonds/Makefile')
-rw-r--r--games/rocksndiamonds/Makefile40
1 files changed, 23 insertions, 17 deletions
diff --git a/games/rocksndiamonds/Makefile b/games/rocksndiamonds/Makefile
index 8c685cf2d1d..902f4f5d822 100644
--- a/games/rocksndiamonds/Makefile
+++ b/games/rocksndiamonds/Makefile
@@ -1,47 +1,53 @@
-# $NetBSD: Makefile,v 1.7 2002/02/19 06:25:57 jmc Exp $
+# $NetBSD: Makefile,v 1.8 2002/10/19 20:06:45 heinz Exp $
#
-DISTNAME= rocksndiamonds-2.0.0
-PKGREVISION= 1
+DISTNAME= rocksndiamonds-2.1.1
+PKGREVISION= 0
CATEGORIES= games x11
MASTER_SITES= http://www.artsoft.org/RELEASES/unix/rocksndiamonds/
-MAINTAINER= wiz@netbsd.org
+MAINTAINER= heinz-rnd@netbsd.org
HOMEPAGE= http://www.artsoft.org/rocksndiamonds/
COMMENT= Game like Boulderdash, Emerald Mine, or Sokoban with lots of levels
USE_GMAKE= YES
+USE_BUILDLINK2= YES
+USE_X11= YES
+
+PLIST_SUBST+= SCORE_PATH=${SCORE_PATH}
+PLIST_SUBST+= ROCK_INSTALL_DIR="${INSTALL} -d -o games -g games -m 775"
.if ( ${MACHINE} == "i386" || ${MACHINE} == "prep" || ${MACHINE} == "cats" || \
${MACHINE} == "shark" )
MAKE_ENV+=HAVE_JOYSTICK=1
.endif
-# if you change SCORE_PATH, don't forget to change patch-aa, too
SCORE_PATH= /var/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 games -g games -m 2755 \
${WRKSRC}/rocksndiamonds ${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/rocksndiamonds.1 ${PREFIX}/man/man1/
${INSTALL_DATA_DIR} ${PREFIX}/share/rocksndiamonds
- cd ${WRKSRC} && ${PAX} -r -w sounds graphics levels \
+ cd ${WRKSRC} && ${PAX} -r -w sounds graphics levels music \
${PREFIX}/share/rocksndiamonds/
${CHOWN} -R games:games ${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
-.for directory in classic_boulderdash classic_emerald_mine \
- classic_sokoban classic_supaplex rnd_tutorial \
- rnd_ben_braithwaite rnd_charles_briscoe-smith \
- rnd_gerhard_haeusler rnd_holger_schemel rnd_jan_hubicka \
- rnd_kimball_robinson rnd_kjell_kristiansson \
- rnd_martin_herrmann rnd_pavel_machek rnd_tobias_authmann \
- rnd_visa_hastrup rnd_warwick_allison rnd_stephan_beyer \
- bd_boulderdash_16 bd_boulderdash_2 bd_xbd
- ${INSTALL_DATA_DIR} ${SCORE_PATH}/scores/${directory} \
- && ${CHMOD} 775 ${SCORE_PATH}/scores/${directory}
-.endfor
+ # 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 games:games ${SCORE_PATH}
.include "../../mk/bsd.pkg.mk"