summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-04-02 13:02:40 +0000
committeredwin <edwin@FreeBSD.org>2003-04-02 13:02:40 +0000
commitcad1fba931ac843b65c18ad496370a8ee68824ff (patch)
tree4a72a2c9d4c735be51960c1909ce53a20d684410 /games
parentdeff26a78d7b4bf56ab2a5d24d7b35e42221cb0c (diff)
downloadFreeBSD-ports-cad1fba931ac843b65c18ad496370a8ee68824ff.zip
FreeBSD-ports-cad1fba931ac843b65c18ad496370a8ee68824ff.tar.gz
games/tetris -> games/bsdtris
PR: ports/50535
Diffstat (limited to 'games')
-rw-r--r--games/Makefile1
-rw-r--r--games/bsdtris/Makefile28
-rw-r--r--games/bsdtris/distinfo1
-rw-r--r--games/bsdtris/files/mktetristarball12
-rw-r--r--games/bsdtris/files/patch-Makefile29
-rw-r--r--games/bsdtris/files/patch-pathnames.h8
-rw-r--r--games/bsdtris/pkg-descr6
-rw-r--r--games/bsdtris/pkg-plist2
8 files changed, 87 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index ed28910..ce6b733 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -42,6 +42,7 @@
SUBDIR += bombermaze
SUBDIR += braincurses
SUBDIR += bs
+ SUBDIR += bsdtris
SUBDIR += bsp
SUBDIR += bugsx
SUBDIR += burgerspace
diff --git a/games/bsdtris/Makefile b/games/bsdtris/Makefile
new file mode 100644
index 0000000..af38503
--- /dev/null
+++ b/games/bsdtris/Makefile
@@ -0,0 +1,28 @@
+# Ports collection makefile for: bsdtris
+# Date created: 01 Apr 2003
+# Whom: Yonatan <Yonatan@xpert.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= bsdtris
+PORTVERSION= 1
+CATEGORIES= games
+MASTER_SITES= http://www.mavetju.org/download/adopted/
+DISTNAME= ${PORTNAME}-01042003
+
+MAINTAINER= yonatan@xpert.com
+COMMENT= BSD version of Text-based tetris game
+
+NO_WRKSUBDIR= yes
+USE_REINPLACE= yes
+
+MAN6= bsdtris.6
+
+post-patch:
+ ${REINPLACE_CMD} -E "s|%%PREFIX%%|${PREFIX}|" ${WRKSRC}/pathnames.h
+
+post-install:
+ ${INSTALL_MAN} ${WRKSRC}/tetris.6 ${PREFIX}/man/man6/bsdtris.6
+
+.include <bsd.port.mk>
diff --git a/games/bsdtris/distinfo b/games/bsdtris/distinfo
new file mode 100644
index 0000000..ac0b51e
--- /dev/null
+++ b/games/bsdtris/distinfo
@@ -0,0 +1 @@
+MD5 (bsdtris-01042003.tar.gz) = 48447120fc2b371b91184fe1cc61dd47
diff --git a/games/bsdtris/files/mktetristarball b/games/bsdtris/files/mktetristarball
new file mode 100644
index 0000000..e406fa2
--- /dev/null
+++ b/games/bsdtris/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/bsdtris/files/patch-Makefile b/games/bsdtris/files/patch-Makefile
new file mode 100644
index 0000000..d3b62a7
--- /dev/null
+++ b/games/bsdtris/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: /tmp/pcvs/ports/games/bsdtris/files/patch-Makefile,v 1.1 2003-04-02 13:02:40 edwin Exp $
++
++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/bsdtris
++. if !exists(${PREFIX}/var/games/bsdtris.scores)
++ ${MKDIR} ${PREFIX}/var/games
++ ${INSTALL} -g games -m 664 /dev/null \
++ ${PREFIX}/var/games/bsdtris.scores
++.endif
++
++clean:
++ rm -f *.o *.core
diff --git a/games/bsdtris/files/patch-pathnames.h b/games/bsdtris/files/patch-pathnames.h
new file mode 100644
index 0000000..7fea299
--- /dev/null
+++ b/games/bsdtris/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/bsdtris.scores"
diff --git a/games/bsdtris/pkg-descr b/games/bsdtris/pkg-descr
new file mode 100644
index 0000000..c84f146
--- /dev/null
+++ b/games/bsdtris/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/bsdtris/pkg-plist b/games/bsdtris/pkg-plist
new file mode 100644
index 0000000..8d7b700
--- /dev/null
+++ b/games/bsdtris/pkg-plist
@@ -0,0 +1,2 @@
+@comment $FreeBSD: /tmp/pcvs/ports/games/bsdtris/pkg-plist,v 1.1 2003-04-02 13:02:40 edwin Exp $
+bin/bsdtris
OpenPOWER on IntegriCloud