From 6f6ffdc7428bc4844568a09036068acd7edfefd3 Mon Sep 17 00:00:00 2001 From: Thomas Gellekum Date: Wed, 2 Jul 1997 07:13:51 +0000 Subject: Imports of sokoban port. This is the curses-based version. PR: 4007 Submitted by: Andrey Zakhvatov --- games/sokoban/files/patch-aa | 25 +++++++++++++++++++++++++ games/sokoban/files/patch-ab | 30 ++++++++++++++++++++++++++++++ games/sokoban/files/patch-ac | 19 +++++++++++++++++++ 3 files changed, 74 insertions(+) create mode 100644 games/sokoban/files/patch-aa create mode 100644 games/sokoban/files/patch-ab create mode 100644 games/sokoban/files/patch-ac (limited to 'games/sokoban/files') diff --git a/games/sokoban/files/patch-aa b/games/sokoban/files/patch-aa new file mode 100644 index 000000000000..a9aab881144e --- /dev/null +++ b/games/sokoban/files/patch-aa @@ -0,0 +1,25 @@ +*** Makefile Sat May 9 23:23:46 1992 +--- /home/andy/tmp/wrk/Makefile Wed Jul 2 06:04:37 1997 +*************** +*** 1,8 **** +! CCOPT= -O3 + OBJECTS= sok.o readscreen.o showscreen.o play.o save.o score.o + + sokoban: $(OBJECTS) +! cc $(CCOPT) -static -o sokoban $(OBJECTS) -lcurses -ltermcap + sok.o: sok.c sokoban.h + cc $(CCOPT) -c sok.c + +--- 1,12 ---- +! CCOPT= ${CFLAGS} +! .ifdef PREFIX +! CCOPT+= -DPREFIX=\"${PREFIX}\" +! .endif +! + OBJECTS= sok.o readscreen.o showscreen.o play.o save.o score.o + + sokoban: $(OBJECTS) +! cc $(CCOPT) -o sokoban $(OBJECTS) -lcurses -ltermcap + sok.o: sok.c sokoban.h + cc $(CCOPT) -c sok.c + diff --git a/games/sokoban/files/patch-ab b/games/sokoban/files/patch-ab new file mode 100644 index 000000000000..ffdb5d958529 --- /dev/null +++ b/games/sokoban/files/patch-ab @@ -0,0 +1,30 @@ +*** sokoban.h Fri May 15 05:15:26 1992 +--- /home/andy/tmp/wrk/sokoban.h Tue Apr 29 19:02:00 1997 +*************** +*** 1,6 **** +--- 1,14 ---- + /*********************************************************************** + You may wish to alter the following directory paths + ***********************************************************************/ ++ ++ #ifdef PREFIX ++ #define SCREENPATH PREFIX "/share/sokoban/screens" ++ #define SAVEPATH PREFIX "/share/sokoban" ++ #define LOCKFILE "/tmp/sok.tmp" ++ #define SCOREFILE PREFIX "/share/sokoban/highscore" ++ #else ++ + /**/ + /* SCREENPATH: the name of the directioy where the screen file are held */ + /**/ +*************** +*** 23,28 **** +--- 31,38 ---- + /* SCOREFILE: the full pathname of the score file */ + /**/ + #define SCOREFILE "/usr/games/sokob/highscore" ++ ++ #endif + + /**/ + /* MAXUSERNAME: defines the maximum length of a system's user name */ diff --git a/games/sokoban/files/patch-ac b/games/sokoban/files/patch-ac new file mode 100644 index 000000000000..492b40f323ad --- /dev/null +++ b/games/sokoban/files/patch-ac @@ -0,0 +1,19 @@ +*** play.c Sat May 16 06:53:27 1992 +--- /home/andy/tmp/wrk/play.c Tue Apr 29 18:45:43 1997 +*************** +*** 37,43 **** + + short play() { + +! short c; + short ret; + short undolock = 1; /* locked for undo */ + +--- 37,43 ---- + + short play() { + +! char c; + short ret; + short undolock = 1; /* locked for undo */ + -- cgit v1.2.3