diff options
author | tg <tg@FreeBSD.org> | 1997-07-02 07:13:51 +0000 |
---|---|---|
committer | tg <tg@FreeBSD.org> | 1997-07-02 07:13:51 +0000 |
commit | 961e3228b40efb817aaa235bb2afccee576f4e0d (patch) | |
tree | 0f1ba3706ce30e315b5ee046e5bcef18ce8d9a18 /games/sokoban | |
parent | e5546edd8a61b171d7be7c1ac289afd8be3bde90 (diff) | |
download | FreeBSD-ports-961e3228b40efb817aaa235bb2afccee576f4e0d.zip FreeBSD-ports-961e3228b40efb817aaa235bb2afccee576f4e0d.tar.gz |
Imports of sokoban port. This is the curses-based version.
PR: 4007
Submitted by: Andrey Zakhvatov <andy@icc.surw.chel.su>
Diffstat (limited to 'games/sokoban')
-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 0000000..f0c4b7f --- /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 0000000..23f696b --- /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 0000000..a9aab88 --- /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 0000000..ffdb5d9 --- /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 0000000..492b40f --- /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 0000000..6350d5d --- /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 0000000..e8ac4d1 --- /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 0000000..a7e0bbf --- /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 |