------------------HOW TO COMPILE & INSTALL NETHACK ON MAC OS X------------------ -------------------------------------------------------------------------------- You will need Xcode Tools installed on your system in order to compile anything. This tutorial assumes that you are compiling NetHack 3.4.3 on a relatively recent version of Mac OS X. 0. Download the sources, untar them, & cd to the nethack-3.4.3 directory. Apply any desired patches. 1. Run ``( cd sys/unix; sh setup.sh )'' 2. Edit the config files in include/: - config.h: no changes necessary, though certain game features can be added or removed here - unixconf.h: uncomment the BSD #define (l.22) and comment out the SYSV #define (l.28) & the SVR4 #define (l.35) 3. (optional) Edit the definitions of PERSMAX and PERS_IS_UID in src/topten.c to reconfigure the behavior of the high score list. 4. In win/tty/termcap.c, comment out line 839 OR change line 838 to: #if !defined(LINUX) && !defined(__APPLE__) If this step is not performed, NetHack won't be able to compile. 5. In src/Makefile, uncomment line 233 & comment out line 234 so that WINTTYLIB is set to '-lncurses' 6. Run ``( cd src; make )''. This should take no more than a minute or two. 7. Edit the Makefile in the top directory: - Line 20: change 'games' to 'root' - Line 21: change 'bin' to 'staff' These next three changes are optional, but they go hand-in-hand. If you opt not to do them, make sure that SECURE is #defined in include/config.h: - Line 25: change the bitmask to 0755 - Line 26: change the bitmask to 0664 - Line 28: change the bitmask to 0775 8. Run ``make all'' 9. Run ``sudo make install'' 10. In doc/Makefile, on line 44, change the path to /usr/games/man/man6. 11. Run ``( cd doc; sudo make manpages )'' 12. Play!