pkgsrc/games/rocksndiamonds/Makefile
heinz 81aadfcec9 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
2002-10-19 20:06:45 +00:00

53 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.8 2002/10/19 20:06:45 heinz Exp $
#
DISTNAME= rocksndiamonds-2.1.1
PKGREVISION= 0
CATEGORIES= games x11
MASTER_SITES= http://www.artsoft.org/RELEASES/unix/rocksndiamonds/
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
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 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
# 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"