その他ソフトのインストール

98/05/31


JNetHack-1.0.5.4

nethack-3.2.2を展開後、パッチを当てます.

% cd nethack-3.2.2
% zcat ../jnethack-1.0.5.19970924.gz | patch -p1 -s

Makefileはsys/unixにありますのでまとめて変更します.インストール先等は書き加えましたが、基本的にはコメントアウトを外したり、付けたりで対応できます.

--- Makefile.utl ---
GAMEDIR = /usr/local/games/lib/$(GAME)dir
SHELLDIR = /usr/local/games # /usr/local/bin でもいいと思います
VARDATND = x11tiles pet_mark.xbm rip.xpm

--- Makefile.src ---
CFLAGS = -g -I../include -I/usr/openwin/include
LFLAGS = -g -L/usr/openwin/lib
WINSRC = $(WINTTYSRC) $(WINX11SRC)
WINOBJ = $(WINTTYOBJ) $(WINX11OBJ)
WINLIB = $(WINTTYLIB) $(WINX11LIB) #なぜかX11LIBとなってました
LIBS = -lsocket -lnsl

% ./setup.sh

次にinclude/config.h、include/unixconf.hを変更します。

--- config.h ---
#define TERMINFO /* uses terminfo rather than termcap */
#define X11_GRAPHICS /* X11 interface */
# define USE_XPM /* Disable if you do not have the XPM library */
/* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */
/* # define COMPRESS_EXTENSION ".Z" /* compress's extension */
# define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */
# define COMPRESS_EXTENSION ".gz" /* normal gzip extension */
# define HACKDIR "/usr/local/games/jnethackdir" /* nethack directory */
#define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */

--- unixconf.h ---
/* #define BSD 1 /* define for 4.n BSD */
#define SYSV /* define for System V */
#define SVR4 /* use in addition to SYSV for System V Release 4 */
/* #define SUNOS4 /* SunOS 4.x */
#define TEXTCOLOR /* Use System V r3.2 terminfo color support */
#define POSIX_JOB_CONTROL /* use System V / POSIX job control
#define POSIX_TYPES /* use POSIX types for system calls and termios */
#define DEF_PAGER "/usr/local/bin/less"


[戻る]