aboutsummaryrefslogtreecommitdiffstats
path: root/games/sokoban/Makefile
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>1997-07-02 15:13:51 +0800
committertg <tg@FreeBSD.org>1997-07-02 15:13:51 +0800
commit961e3228b40efb817aaa235bb2afccee576f4e0d (patch)
tree0f1ba3706ce30e315b5ee046e5bcef18ce8d9a18 /games/sokoban/Makefile
parente5546edd8a61b171d7be7c1ac289afd8be3bde90 (diff)
downloadfreebsd-ports-gnome-961e3228b40efb817aaa235bb2afccee576f4e0d.tar.gz
freebsd-ports-gnome-961e3228b40efb817aaa235bb2afccee576f4e0d.tar.zst
freebsd-ports-gnome-961e3228b40efb817aaa235bb2afccee576f4e0d.zip
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/Makefile')
-rw-r--r--games/sokoban/Makefile35
1 files changed, 35 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>