diff options
author | Thomas Gellekum <tg@FreeBSD.org> | 1997-07-02 07:13:51 +0000 |
---|---|---|
committer | Thomas Gellekum <tg@FreeBSD.org> | 1997-07-02 07:13:51 +0000 |
commit | 6f6ffdc7428bc4844568a09036068acd7edfefd3 (patch) | |
tree | a4a1dd47ff1f90bb02049618d2e56c6867079873 /games | |
parent | Update 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')
-rw-r--r-- | games/sokoban/Makefile | 35 | ||||
-rw-r--r-- | games/sokoban/distinfo | 1 | ||||
-rw-r--r-- | games/sokoban/files/patch-aa | 25 | ||||
-rw-r--r-- | games/sokoban/files/patch-ab | 30 | ||||
-rw-r--r-- | games/sokoban/files/patch-ac | 19 | ||||
-rw-r--r-- | games/sokoban/pkg-comment | 1 | ||||
-rw-r--r-- | games/sokoban/pkg-descr | 4 | ||||
-rw-r--r-- | games/sokoban/pkg-plist | 53 |
8 files changed, 168 insertions, 0 deletions
diff --git a/games/sokoban/Makefile b/games/sokoban/Makefile new file mode 100644 index 000000000000..f0c4b7f7f18c --- /dev/null +++ b/games/sokoban/Makefile @@ -0,0 +1,35 @@ +# New ports collection makefile for: sokoban +# Version required: 1.0 +# Date created: 2 July 1997 +# Whom: Andrey Zakhvatov +# +# $Id$ +# + +DISTNAME= sokoban-src +PKGNAME= sokoban-1.0 +CATEGORIES= games +MASTER_SITES= ${MASTER_SITE_SUNSITE} +MASTER_SITE_SUBDIR= games/strategy + +MAINTAINER= andy@icc.surw.chel.su + +WRKSRC= ${WRKDIR}/sokoban +ALL_TARGET= + +do-install: + @ ${INSTALL_PROGRAM} ${WRKSRC}/sokoban ${PREFIX}/bin/sokoban + @ chown games:bin ${PREFIX}/bin/sokoban + @ chmod 4555 ${PREFIX}/bin/sokoban + @ ${MKDIR} ${PREFIX}/share/sokoban + @ chown games:bin ${PREFIX}/share/sokoban + @ ${MKDIR} ${PREFIX}/share/sokoban/screens + @ chown games:bin ${PREFIX}/share/sokoban/screens + @ ${INSTALL_DATA} ${WRKSRC}/screens/* ${PREFIX}/share/sokoban/screens + @ if [ ! -f ${PREFIX}/share/sokoban/highscore ]; then \ + dd if=/dev/zero of=${PREFIX}/share/sokoban/highscore bs=1 count=2; \ + fi + @ chown games:bin ${PREFIX}/share/sokoban/highscore + @ chmod 0600 ${PREFIX}/share/sokoban/highscore + +.include <bsd.port.mk> diff --git a/games/sokoban/distinfo b/games/sokoban/distinfo new file mode 100644 index 000000000000..23f696b37f5e --- /dev/null +++ b/games/sokoban/distinfo @@ -0,0 +1 @@ +MD5 (sokoban-src.tar.gz) = 4b8056b81be45d364b42209d6cf5187e 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 */ + diff --git a/games/sokoban/pkg-comment b/games/sokoban/pkg-comment new file mode 100644 index 000000000000..6350d5d54e58 --- /dev/null +++ b/games/sokoban/pkg-comment @@ -0,0 +1 @@ +Logical game: problems with packets in cave diff --git a/games/sokoban/pkg-descr b/games/sokoban/pkg-descr new file mode 100644 index 000000000000..e8ac4d15f197 --- /dev/null +++ b/games/sokoban/pkg-descr @@ -0,0 +1,4 @@ +This is port of SOKOBAN - logical game, where U must solve problems +with pushing packets in labirints. +The problem is to push packets to saving positions by moving around +and pushing only one packet at a time if possible. diff --git a/games/sokoban/pkg-plist b/games/sokoban/pkg-plist new file mode 100644 index 000000000000..a7e0bbf09173 --- /dev/null +++ b/games/sokoban/pkg-plist @@ -0,0 +1,53 @@ +bin/sokoban +share/sokoban/highscore +share/sokoban/screens/sokoban.help +share/sokoban/screens/screen.1 +share/sokoban/screens/screen.2 +share/sokoban/screens/screen.3 +share/sokoban/screens/screen.4 +share/sokoban/screens/screen.5 +share/sokoban/screens/screen.6 +share/sokoban/screens/screen.7 +share/sokoban/screens/screen.8 +share/sokoban/screens/screen.9 +share/sokoban/screens/screen.10 +share/sokoban/screens/screen.11 +share/sokoban/screens/screen.12 +share/sokoban/screens/screen.13 +share/sokoban/screens/screen.14 +share/sokoban/screens/screen.15 +share/sokoban/screens/screen.16 +share/sokoban/screens/screen.17 +share/sokoban/screens/screen.18 +share/sokoban/screens/screen.19 +share/sokoban/screens/screen.20 +share/sokoban/screens/screen.21 +share/sokoban/screens/screen.22 +share/sokoban/screens/screen.23 +share/sokoban/screens/screen.24 +share/sokoban/screens/screen.25 +share/sokoban/screens/screen.26 +share/sokoban/screens/screen.27 +share/sokoban/screens/screen.28 +share/sokoban/screens/screen.29 +share/sokoban/screens/screen.30 +share/sokoban/screens/screen.31 +share/sokoban/screens/screen.32 +share/sokoban/screens/screen.33 +share/sokoban/screens/screen.34 +share/sokoban/screens/screen.35 +share/sokoban/screens/screen.36 +share/sokoban/screens/screen.37 +share/sokoban/screens/screen.38 +share/sokoban/screens/screen.39 +share/sokoban/screens/screen.40 +share/sokoban/screens/screen.41 +share/sokoban/screens/screen.42 +share/sokoban/screens/screen.43 +share/sokoban/screens/screen.44 +share/sokoban/screens/screen.45 +share/sokoban/screens/screen.46 +share/sokoban/screens/screen.47 +share/sokoban/screens/screen.48 +share/sokoban/screens/screen.49 +share/sokoban/screens/screen.50 |