pushd sys/unix/ ; sh setup.sh
You have to uncomment the BSD #define in line #22 of
include/unixconf.h, then change line #963 of win/tty/termcap.c (this is a single line):
#if !defined(LINUX) && !defined(__FreeBSD__) && !defined(__APPLE__) && !defined(__MACH__)
Next comment out line #340 of the generated
src/Makefile, and uncomment the line above (WINTTYLIB = -lncurses). Also make sure you set PREFIX, GAMEUID and GAMEGRP from Makefile to sensible values (example):
PREFIX = /Users/dirk/install
GAME = slashem
# GAME = slashem.prg
GAMEUID = dirk
GAMEGRP = staff
As suggested by Patric, instead of modifying
GAMEUID and GAMEGRP, you can also edit the two lines that set CHOWN and CHGRP, and simply set them to true:
CHOWN = true
CHGRP = true
Then all there is left to do is to compile and install:
make
make install
If everything went fine, you will have your slashem binary in
~/install/games/local/bin. To start it cd there and invoke it in your bash: ./slashem.To customize, I added the following line to .bash_profile:
export SLASHEMOPTIONS="@.slashem.rc"
And the file
~/.slashem.rc with the following contents:
OPTIONS=DECgraphics,number_pad:0,time,autopickup,showexp,pickup_types:$!?+"=/,name:Dirk
OPTIONS=norest_on_space
OPTIONS=runmode:walk
OPTIONS=color
OPTIONS=!hilite_pet
Your config will probably vary.
Have fun playing!
6 comments: