Index: head/games/xsoldier/files/patch-aa =================================================================== --- head/games/xsoldier/files/patch-aa (revision 24922) +++ head/games/xsoldier/files/patch-aa (revision 24923) @@ -1,151 +1,151 @@ -*** Imakefile.orig Fri Feb 28 09:48:57 1997 ---- Imakefile Fri Dec 24 12:47:19 1999 +*** Imakefile.orig Sat Mar 1 00:48:57 1997 +--- Imakefile Sat Jan 15 00:00:00 2000 *************** *** 6,63 **** /* ----------------------------------------------------------------------- */ ! /* -------------------- その1 インストール先の設定 ----------------------- */ /* ----------------------------------------------------------------------- */ ! /* インストールディレクトリ */ ! /* 書き込み権限が無いとインストール出来ません.=> 遊べない.(^^; */ ! PIXMAPDIR = /usr/local/games/lib/xsoldier ! SCOREDIR = /usr/local/games/lib/xsoldier ! BINDIR = /usr/local/games ! /* スコアファイル名.SCOREDIR 以下に置かれます. */ SCOREFILE = .scorefile /* ----------------------------------------------------------------------- */ ! /* --------------------- その2 コンパイルの設定 -------------------------- */ /* ----------------------------------------------------------------------- */ ! /* xmkmf の Makefile で cc になっちゃう場合 */ /* CC = gcc */ ! /* xpmがXと異なるディレクトリにインストールされている場合 */ /* XPMINCDIR = /usr/X11R6/include */ /* XPMLIBDIR = /usr/X11R6/lib */ ! /* ココに path を書いて */ /* XPMINCFLAGS = -I$(XPMINCDIR) */ /* XPMLIBFLAGS = -L$(XPMLIBDIR) */ ! /* 上の2つのコメントを解除してください */ ! /* ゲームのウエイト */ WAIT = 35000 ! /* その他コンパイルオプション */ ! /* -DDUPSCORE … 同一人物がハイスコアに複数エントリ出来る */ ! /* -DSYSV … SystemV 系などで random 関数が無い場合, */ ! /* かわりに srand48 と lrand48 関数を使用します */ LOCAL_DEF = ! /* ジョイスティックを使う場合 */ /* #define JOYSTICK */ /* ----------------------------------------------------------------------- */ ! /* ------------------ その3 インストールコマンドの設定 ------------------- */ /* ----------------------------------------------------------------------- */ ! /* Solarisでopenwinを使用してコンパイルするときに必要 */ /* INSTALL = /usr/ucb/install */ /* ----------------------------------------------------------------------- */ /* */ ! /* 基本的にここから下はいぢらなくて済むハズ */ /* */ /* ----------------------------------------------------------------------- */ --- 6,63 ---- /* ----------------------------------------------------------------------- */ ! /* ---------------------- PART1 INSTALL DIRECTORY ------------------------ */ /* ----------------------------------------------------------------------- */ ! /* Install Directory */ ! /* You can't install without write permission of these. => Unplayable. (^^;*/ -! PIXMAPDIR = /usr/X11R6/lib/X11/xsoldier -! SCOREDIR = /usr/X11R6/lib/X11/xsoldier -! BINDIR = /usr/X11R6/bin +! PIXMAPDIR = $(LIBDIR)/xsoldier +! SCOREDIR = $(LIBDIR)/xsoldier +! /* BINDIR = /usr/local/games */ ! /* Score File Name. It's under SCOREDIR. */ SCOREFILE = .scorefile /* ----------------------------------------------------------------------- */ ! /* ------------------- PART2 COMPILE CONFIGURATION ----------------------- */ /* ----------------------------------------------------------------------- */ ! /* What compiler do you want to use? */ /* CC = gcc */ ! /* If you have xpm not in the X directory. */ /* XPMINCDIR = /usr/X11R6/include */ /* XPMLIBDIR = /usr/X11R6/lib */ ! /* Write path name here and ..... */ /* XPMINCFLAGS = -I$(XPMINCDIR) */ /* XPMLIBFLAGS = -L$(XPMLIBDIR) */ ! /* Uncomment the upper 2 lines. */ ! /* Game Wait */ WAIT = 35000 ! /* The other compile options */ ! /* -DDUPSCORE -> Allow multiple entry in the high score */ ! /* -DSYSV -> Specify when not have random functions(SystemV etc.) */ ! /* Use srand48 and lrand48 instead. */ LOCAL_DEF = ! /* When you use the joystick */ /* #define JOYSTICK */ /* ----------------------------------------------------------------------- */ ! /* ------------------ PART3 INSTALL COMMAND CONFIGURATION ---------------- */ /* ----------------------------------------------------------------------- */ ! /* You need this when you use openwin on Solaris. */ /* INSTALL = /usr/ucb/install */ /* ----------------------------------------------------------------------- */ /* */ ! /* Basically, you don't need change below. */ /* */ /* ----------------------------------------------------------------------- */ *************** *** 95,101 **** install.score:: @if [ -d $(SCOREDIR) ]; then chmod 755 $(SCOREDIR); \ else $(MKDIRHIER) $(SCOREDIR); chmod 755 $(SCOREDIR); fi ! $(INSTALL) -c -m 600 scorefile.txt $(SCOREDIR)/$(SCOREFILE) @echo "install score . done" install.pixmap:: --- 95,101 ---- install.score:: @if [ -d $(SCOREDIR) ]; then chmod 755 $(SCOREDIR); \ else $(MKDIRHIER) $(SCOREDIR); chmod 755 $(SCOREDIR); fi ! $(INSTALL) -c -g games -m 660 scorefile.txt $(SCOREDIR)/$(SCOREFILE) @echo "install score . done" install.pixmap:: *************** *** 109,113 **** install.bin:: @if [ -d $(BINDIR) ]; then set +x; \ else (set -x; $(MKDIRHIER) $(BINDIR)); fi ! $(INSTALL) -c -m 4755 $(PROGRAM) $(BINDIR)/$(PROGRAM) @echo "install bin . done" --- 109,113 ---- install.bin:: @if [ -d $(BINDIR) ]; then set +x; \ else (set -x; $(MKDIRHIER) $(BINDIR)); fi ! $(INSTALL) -c -g games -m 2755 $(PROGRAM) $(BINDIR)/$(PROGRAM) @echo "install bin . done" Property changes on: head/games/xsoldier/files/patch-aa ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.3 \ No newline at end of property +1.4 \ No newline at end of property Index: head/games/xsoldier/files/patch-ac =================================================================== --- head/games/xsoldier/files/patch-ac (revision 24922) +++ head/games/xsoldier/files/patch-ac (revision 24923) @@ -1,19 +1,19 @@ --- main.c Fri Feb 28 08:50:07 1997 +++ main.c.new Wed Dec 15 19:35:37 1999 @@ -129,14 +129,14 @@ argv0++; else argv0 = argv[0]; - strcpy(command,argv0); /*** コマンド名取得とコピー ***/ -+ strlcpy(command,argv0,sizeof(command)); /*** コマンド名取得とコピー ***/ ++ strncpy(command,argv0,sizeof(command)); /*** コマンド名取得とコピー ***/ for (i=1; i Specify display. -wait Specify wait. To change this will let your highscore unregistered. -cmap Use default colormap. Without this option, xsoldier use pri- vate colormap. -score Show 10 highscores. -help Show usage message. You can use the head 1 charactor of an option instead. PLAY: % xsolder - Start game with [space] - Cursor keys to move, [left-shift] to shot - Defeat enemies and you sometimes find [Weapon] or [Power] - You can change your speed with [a] and [s] - [p] to pause the game and [q] to return to the title - [q] at the title to quit game - Boss at the last of a stage to defeat for the next stage - You can get bonus points along defeat average at clear stage - 1UP per 100,000 points - 8 stages all and try to clear!! AUTHOR: When you find bugs or some, please e-mail to the author - s945750@educ.info.kanagawa-u.ac.jp + hachi@surfline.ne.jp -WWW: http://www.educ.info.kanagawa-u.ac.jp/~s945750/xsoldier.html +WWW: http://www.surfline.ne.jp/hachi/xsoldier.html Property changes on: head/games/xsoldier/pkg-descr ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.3 \ No newline at end of property +1.4 \ No newline at end of property