summaryrefslogtreecommitdiff
path: root/games/sokoban/files
diff options
context:
space:
mode:
authorThomas Gellekum <tg@FreeBSD.org>1997-07-02 07:13:51 +0000
committerThomas Gellekum <tg@FreeBSD.org>1997-07-02 07:13:51 +0000
commit6f6ffdc7428bc4844568a09036068acd7edfefd3 (patch)
treea4a1dd47ff1f90bb02049618d2e56c6867079873 /games/sokoban/files
parentUpdate exmh-2.0gamma to 2.0delta. There's lots of bug fixes, as well as (diff)
Imports of sokoban port. This is the curses-based version.
PR: 4007 Submitted by: Andrey Zakhvatov <andy@icc.surw.chel.su>
Notes
Notes: svn path=/head/; revision=7179
Diffstat (limited to 'games/sokoban/files')
-rw-r--r--games/sokoban/files/patch-aa25
-rw-r--r--games/sokoban/files/patch-ab30
-rw-r--r--games/sokoban/files/patch-ac19
3 files changed, 74 insertions, 0 deletions
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 */
+