jnethack

jnethackをdebian lennyでビルドした

参考ドキュメント
sys/unix/Install.unx
sys/unix/README.linux
win/X11/Install.X11
japanese/Install.lnx


1.本体ソースを展開する
>tar xzvf nethack-343.tgz

2.日本語パッチを展開する
>cd nethack-3.4.3
>gunzip jnethack-3.4.3-0.10.diff.gz

3.日本語パッチをあてる。jnethack3.2.4ディレクトリに入って
patch -p1 < jnethack-3.4.3-0.10.diff.gz

4.Makefileをコピーする。sys/unixディレクトリに入って
sh setup.sh

5.いくつかのファイルを修正する
include/config.h
#define X11_GRAPHICS
#define USE_XPM
#define COMPRESS /bin/gzip
#define COMPRESS_EXTENSION ".gz"
#define DLB
#define AUTOPICKUP_EXCEPTIONS
include/unixconf.h
#define SYSV
#define LINUX
#define TERMINFO
#define TIMED_DELAY
src/Makefile
CC = gcc
CFLAGS = -O2 -fomit-frame-pointer -l../include
LFLAGS = -L/usr/X11R6/lib
WINSRC = $(WINTTYSRC) $(WINX11SRC)
WINOBJ = $(WINTTYOBJ) $(WINX11OBJ)
WINTTYLIB = /usr/lib/libncurses.a
WINX11LIB = -lXaw -lXmu -lXext -lXt -lXpm -lX11
WINLIB = $(WINTTYLIB) $(WINX11LIB)
util/Makefile
CC = gcc
CFLAGS = -O2 -fomit-frame-pointer -l../include
LFLAGS =
YACC = bison -y
LEX = flex
Makefile
GAMEGRP = games
GAMEPERM = 02755
FILEPERM = 0644
EXEPERM = 0755
DIRPERM = 0775
VARDATND = x11tiles pet_mark.xbm rip.xpm
win/X11/JNetHack.ad
JNetHack*font: -misc-fixed-medium-r-*--12-*
JNetHack*display_file*font: -misc-fixed-medium-r-*--12-*
JNetHack*tombstone*font: -misc-fixed-medium-r-*--12-*
JNetHack*rip*font: -misc-fixed-medium-r-*--12-*
JNetHack*menu*font: -misc-fixed-medium-r-*--12-*
JNetHack*text*font: -misc-fixed-medium-r-*--12-*
JNetHack*map*font: -misc-fixed-medium-r-*--14-*
JNetHack*fontSet: -misc-fixed-medium-r-*--12-*
!JNetHack.tile_file:x11tiles
!JNetHack.tile_width:16
!JNetHack.tile_height:16

6.ビルドする
>make all
#make install
Debian | comments (0) | trackbacks (0)

Comments

Comment Form

icons:

Trackbacks