summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-04-02 10:18:19 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-04-02 10:18:19 +0000
commit963f9cd89f5488cb04792395db95e0fb8a6b9a94 (patch)
tree9e42da47271dc694a0d0e5a151cf3c7640f54988 /games
parentUpdate to 1.6. (diff)
New port: games/tetris, taken from OpenBSD's base
This is a textual version of Tetris. OpenBSD took it from NetBSD. PR: ports/50535 Submitted by: Yonatan@xpert.com <Yonatan@xpert.com>
Notes
Notes: svn path=/head/; revision=77950
Diffstat (limited to 'games')
-rw-r--r--games/Makefile1
-rw-r--r--games/tetris/Makefile28
-rw-r--r--games/tetris/distinfo1
-rw-r--r--games/tetris/files/mktetristarball12
-rw-r--r--games/tetris/files/patch-Makefile29
-rw-r--r--games/tetris/files/patch-pathnames.h8
-rw-r--r--games/tetris/pkg-descr6
-rw-r--r--games/tetris/pkg-plist2
8 files changed, 87 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index e2b37a7b82dc..ed289104d530 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -313,6 +313,7 @@
SUBDIR += teg
SUBDIR += tetrinet
SUBDIR += tetrinet-x
+ SUBDIR += tetris
SUBDIR += textmaze
SUBDIR += tileworld
SUBDIR += tinymux
diff --git a/games/tetris/Makefile b/games/tetris/Makefile
new file mode 100644
index 000000000000..70925e9a2db7
--- /dev/null
+++ b/games/tetris/Makefile
@@ -0,0 +1,28 @@
+# Ports collection makefile for: hspell
+# Date created: 01 Apr 2003
+# Whom: Yonatan <Yonatan@xpert.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= tetris
+PORTVERSION= 1
+CATEGORIES= games
+MASTER_SITES= http://www.mavetju.org/download/adopted/
+DISTNAME= ${PORTNAME}-01042003
+
+MAINTAINER= yonatan@xpert.com
+COMMENT= Text-based tetris game
+
+NO_WRKSUBDIR= yes
+USE_REINPLACE= yes
+
+MAN6= tetris.6
+
+post-patch:
+ ${REINPLACE_CMD} -E "s|%%PREFIX%%|${PREFIX}|" ${WRKSRC}/pathnames.h
+
+post-install:
+ ${INSTALL_MAN} ${WRKSRC}/tetris.6 ${PREFIX}/man/man6/tetris.6
+
+.include <bsd.port.mk>
diff --git a/games/tetris/distinfo b/games/tetris/distinfo
new file mode 100644
index 000000000000..f5dd6260614f
--- /dev/null
+++ b/games/tetris/distinfo
@@ -0,0 +1 @@
+MD5 (tetris-01042003.tar.gz) = 48447120fc2b371b91184fe1cc61dd47
diff --git a/games/tetris/files/mktetristarball b/games/tetris/files/mktetristarball
new file mode 100644
index 000000000000..e406fa228aad
--- /dev/null
+++ b/games/tetris/files/mktetristarball
@@ -0,0 +1,12 @@
+#!/bin/sh
+touch test || exit 1 # i need write perms
+rm test || exit 1 # if this fails - you'r in limbo
+export CVSROOT=:pserver:anoncvs@anoncvs1.usa.openbsd.org:/cvs
+echo enter "anoncvs"
+cvs login || exit 1 # please login again
+cvs get src/games/tetris || exit 1 # it's important this succeeds
+cvs logout # don't care if this fails
+rm -rf ./src/games/tetris/CVS/ || exit 1
+rm -rf ./src/games/tetris/Makefile || exit 1
+tar -czpf tetris-`date "+%d%m%Y"`.tar.gz -C ./src/games/tetris/ . || exit 1
+rm -rf ./src
diff --git a/games/tetris/files/patch-Makefile b/games/tetris/files/patch-Makefile
new file mode 100644
index 000000000000..604d6d9815a6
--- /dev/null
+++ b/games/tetris/files/patch-Makefile
@@ -0,0 +1,29 @@
+--- Makefile.orig Tue Apr 1 23:23:08 2003
++++ Makefile Tue Apr 1 23:23:43 2003
+@@ -0,0 +1,26 @@
++# Makefile for Tetris
++# $FreeBSD$
++
++TMPLDFLAGS+= -lcurses -ltermcap
++SRCS= screen.c shapes.c input.c tetris.c scores.c
++
++PREFIX?=/usr/local
++MKDIR?=mkdir -p
++
++all:
++. for files in ${SRCS}
++ ${CC} ${CFLAGS} ${LDFLAGS} -c ${files}
++. endfor
++ ${CC} ${CFLAGS} ${LDFLAGS} ${TMPLDFLAGS} -o tetris input.o scores.o \
++ screen.o shapes.o tetris.o
++
++install:
++ ${INSTALL} -g games -m 2555 tetris ${PREFIX}/bin
++. if !exists(${PREFIX}/var/games/tetris.scores)
++ ${MKDIR} ${PREFIX}/var/games
++ ${INSTALL} -g games -m 664 /dev/null \
++ ${PREFIX}/var/games/tetris.scores
++.endif
++
++clean:
++ rm -f *.o *.core
diff --git a/games/tetris/files/patch-pathnames.h b/games/tetris/files/patch-pathnames.h
new file mode 100644
index 000000000000..a0cc9ba047ca
--- /dev/null
+++ b/games/tetris/files/patch-pathnames.h
@@ -0,0 +1,8 @@
+--- pathnames.h.orig Tue Apr 1 23:06:45 2003
++++ pathnames.h Tue Apr 1 23:07:14 2003
+@@ -39,4 +39,4 @@
+ * @(#)pathnames.h 8.1 (Berkeley) 5/31/93
+ */
+
+-#define _PATH_SCOREFILE "/var/games/tetris.scores"
++#define _PATH_SCOREFILE "%%PREFIX%%/var/games/tetris.scores"
diff --git a/games/tetris/pkg-descr b/games/tetris/pkg-descr
new file mode 100644
index 000000000000..c84f14689094
--- /dev/null
+++ b/games/tetris/pkg-descr
@@ -0,0 +1,6 @@
+The tetris command runs a display-based game. The object is to fit
+shapes together to form complete rows, which then vanish. When the
+shapes fill up to the top, the game ends. You can optionally select a
+level of play or custom-select control keys.
+
+This port is made of OpenBSD's tetris games. It got there from NetBSD...
diff --git a/games/tetris/pkg-plist b/games/tetris/pkg-plist
new file mode 100644
index 000000000000..146920cb54ae
--- /dev/null
+++ b/games/tetris/pkg-plist
@@ -0,0 +1,2 @@
+@comment $FreeBSD$
+bin/tetris