Date: Tue, 16 Jan 2001 00:47:44 -0800 (PST) From: dima@unixfreak.org To: FreeBSD-gnats-submit@freebsd.org Subject: ports/24374: New port: a display-based tetris game Message-ID: <200101160847.f0G8liu44506@hornet.unixfreak.org>
next in thread | raw e-mail | index | archive | help
>Number: 24374 >Category: ports >Synopsis: New port: a display-based tetris game >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jan 16 00:50:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Dima Dorfman >Release: FreeBSD 4.2-20010102-STABLE i386 >Organization: Private >Environment: Not relevant. >Description: 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. (like you didn't know what tetris is) >How-To-Repeat: Not relevant. >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # tetris # tetris/files # tetris/files/patch-aa # tetris/files/distfiles # tetris/files/ignorefiles # tetris/distinfo # tetris/Makefile # tetris/pkg-plist # tetris/pkg-descr # tetris/pkg-comment # echo c - tetris mkdir -p tetris > /dev/null 2>&1 echo c - tetris/files mkdir -p tetris/files > /dev/null 2>&1 echo x - tetris/files/patch-aa sed 's/^X//' >tetris/files/patch-aa << 'END-of-tetris/files/patch-aa' XIndex: Makefile X=================================================================== XRCS file: /st/src/OpenBSD/src/games/tetris/Makefile,v Xretrieving revision 1.5 Xdiff -u -r1.5 Makefile X--- Makefile 1998/09/24 06:45:07 1.5 X+++ Makefile 2001/01/14 09:54:31 X@@ -2,7 +2,7 @@ X X PROG= tetris X SRCS= input.c screen.c shapes.c scores.c tetris.c X-MAN= tetris.6 X+MAN6= tetris.6 X DPADD= ${LIBCURSES} X LDADD= -lcurses X HIDEGAME=hidegame END-of-tetris/files/patch-aa echo x - tetris/files/distfiles sed 's/^X//' >tetris/files/distfiles << 'END-of-tetris/files/distfiles' Xsrc/games/tetris/Makefile Xsrc/games/tetris/input.c Xsrc/games/tetris/input.h Xsrc/games/tetris/pathnames.h Xsrc/games/tetris/scores.c Xsrc/games/tetris/scores.h Xsrc/games/tetris/screen.c Xsrc/games/tetris/screen.h Xsrc/games/tetris/shapes.c Xsrc/games/tetris/tetris.6 Xsrc/games/tetris/tetris.c Xsrc/games/tetris/tetris.h END-of-tetris/files/distfiles echo x - tetris/files/ignorefiles sed 's/^X//' >tetris/files/ignorefiles << 'END-of-tetris/files/ignorefiles' Xsrc/CVS/Root Xsrc/CVS/Repository Xsrc/CVS/Entries Xsrc/CVS/Entries.Static Xsrc/games/CVS/Root Xsrc/games/CVS/Repository Xsrc/games/CVS/Entries Xsrc/games/CVS/Entries.Static Xsrc/games/tetris/CVS Xsrc/games/tetris/CVS/Root Xsrc/games/tetris/CVS/Repository Xsrc/games/tetris/CVS/Entries Xsrc/games/tetris/CVS/Tag END-of-tetris/files/ignorefiles echo x - tetris/distinfo sed 's/^X//' >tetris/distinfo << 'END-of-tetris/distinfo' XMD5 (tetris-20010114.tar.gz) = 381f90c64da21bf118d5beae6997199b XMD5 (tetris-20010114/src/games/tetris/Makefile) = c7fa8012078dac9d5544d629d695d21c XMD5 (tetris-20010114/src/games/tetris/input.c) = 46bbc5e74d4e7e52549e1c5d616fe923 XMD5 (tetris-20010114/src/games/tetris/input.h) = c06a10953f21e3f72a4dd4039e65ed94 XMD5 (tetris-20010114/src/games/tetris/pathnames.h) = 213c151b8d237dc0427a0f48a0452eef XMD5 (tetris-20010114/src/games/tetris/scores.c) = 48a1d4a6b004df1eaddcd5bc8e3670b1 XMD5 (tetris-20010114/src/games/tetris/scores.h) = f432d52139461e07733089db3fcb7001 XMD5 (tetris-20010114/src/games/tetris/screen.c) = e97c5bb408e8b75842933fa549f15cd1 XMD5 (tetris-20010114/src/games/tetris/screen.h) = 11b999e951a51acf94270ec58eabe02d XMD5 (tetris-20010114/src/games/tetris/shapes.c) = c832cc90b9a6137f90c12f6c03d7f44a XMD5 (tetris-20010114/src/games/tetris/tetris.6) = 0b8abfc2c0380ab7a913015aaa3b3e2f XMD5 (tetris-20010114/src/games/tetris/tetris.c) = 74220f472ac191bcaa40546e38b90fca XMD5 (tetris-20010114/src/games/tetris/tetris.h) = 49d88635660cf1626eb7ffc810a60a5f XMD5 (tetris-20010114/src/CVS/Root) = IGNORE XMD5 (tetris-20010114/src/CVS/Repository) = IGNORE XMD5 (tetris-20010114/src/CVS/Entries) = IGNORE XMD5 (tetris-20010114/src/CVS/Entries.Static) = IGNORE XMD5 (tetris-20010114/src/games/CVS/Root) = IGNORE XMD5 (tetris-20010114/src/games/CVS/Repository) = IGNORE XMD5 (tetris-20010114/src/games/CVS/Entries) = IGNORE XMD5 (tetris-20010114/src/games/CVS/Entries.Static) = IGNORE XMD5 (tetris-20010114/src/games/tetris/CVS) = IGNORE XMD5 (tetris-20010114/src/games/tetris/CVS/Root) = IGNORE XMD5 (tetris-20010114/src/games/tetris/CVS/Repository) = IGNORE XMD5 (tetris-20010114/src/games/tetris/CVS/Entries) = IGNORE XMD5 (tetris-20010114/src/games/tetris/CVS/Tag) = IGNORE END-of-tetris/distinfo echo x - tetris/Makefile sed 's/^X//' >tetris/Makefile << 'END-of-tetris/Makefile' X# New ports collection makefile for: tetris X# Date created: 15 January 2001 X# Whom: Dima Dorfman <dima@unixfreak.org> X# X# $FreeBSD$ X# X XPORTNAME= tetris X# This software isn't in active development, so there are no version numbers XPORTVERSION= 20010114 XCATEGORIES= games X# This is only used if the CVS checkout fails. XMASTER_SITES= http://www.unixfreak.org/~dima/distfiles/ X XMAINTAINER= dima@unixfreak.org X X.include <bsd.port.pre.mk> XCKSUMFILES!= ${SED} 's;^\(.*\)$$;${PKGNAME}/\1;g' ${FILESDIR}/distfiles XIGNOREFILES!= ${SED} 's;^\(.*\)$$;${PKGNAME}/\1;g' ${FILESDIR}/ignorefiles X X# X# CVS stuff X# XCVS_CMD?= cvs -z3 XCVS_DATE= Sun Jan 14 02:28:24 PST 2001 XCVS_SITES?= anoncvs@anoncvs3.usa.openbsd.org:/cvs \ X anoncvs@anoncvs1.ca.openbsd.org:/cvs XCVS_MODULE= src/games/tetris X X# X# fetch targets X# X# post-condition: ${DISTDIR}/${PKGNAME} (directory) exists and is populated X# X# The general idea is to try to check out the module from CVS, then X# fall back to the regular retrieval mechanism if the former fails. X# Xpre-fetch: X.if exists(${DISTDIR}/${PKGNAME}) Xdo-fetch: X @${TRUE} X.else X.if !exists(${DISTDIR}/${PKGNAME}.tar.gz) X @${MAKE} ${MAKEFLAGS} cvs-fetch X.endif X.endif X Xpost-fetch: X.if !exists(${DISTDIR}/${PKGNAME}) && exists(${DISTDIR}/${PKGNAME}.tar.gz) X @cd ${DISTDIR} && ${TAR} zxf ${PKGNAME}.tar.gz X.endif X X# X# CVS fetch target X# X# pre-condition: ${DISTDIR}/${PKGNAME} does not exist X# post-condition: if ${DISTDIR}/${PKGNAME} exists, it is populated X# X# Content largely stolen from the security/openssh-askpass port X# by kris@freebsd.org X# Xcvs-fetch: X @if [ -n "${PORTS_CVS_RSH}" ]; then \ X export CVS_RSH="${PORTS_CVS_RSH}"; \ X fi; \ X if [ -n "${PORTS_CVS_SERVER}" ]; then \ X export CVS_SERVER="${PORTS_CVS_SERVER}"; \ X fi; \ X ${MKDIR} ${DISTDIR}/${PKGNAME} && \ X cd ${DISTDIR}/${PKGNAME}; \ X for CVS_SITE in ${CVS_SITES}; do \ X ${ECHO_MSG} ">> Attempting to check out from $${CVS_SITE}."; \ X if ${CVS_CMD} -d $${CVS_SITE} co -D "${CVS_DATE}" \ X ${CVS_MODULE}; then \ X exit; \ X fi \ X done; \ X ${RMDIR} ${DISTDIR}/${PKGNAME}; \ X exit; \ X X# X# Mechanism to generate a tarball - for use by maintainer X# Xtarball: fetch X @cd ${DISTDIR}; \ X ${ECHO_MSG} ">> Creating source tarball in ${DISTDIR}"; \ X ${ECHO_MSG} ">> \"${PKGNAME}.tar.gz\"."; \ X ${TAR} cfz ${PKGNAME}.tar.gz ${PKGNAME} X X# X# Since we may or may not have a tarball, the fetch target takes care X# of extracting one if it does exist, and the extract target must X# simply copy it to the work directory. X# Xdo-extract: X @${MKDIR} ${WRKDIR} X @${CP} -r ${DISTDIR}/${PKGNAME}/${CVS_MODULE} ${WRKSRC} X X# X# The package has its own `make install`, but apparently it uses bad X# install(1) syntax. This was easier than a patch. X# Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/tetris ${PREFIX}/bin/tetris X ${INSTALL_MAN} ${WRKSRC}/tetris.6 ${MANPREFIX}/man/man6 X X.include <bsd.port.post.mk> END-of-tetris/Makefile echo x - tetris/pkg-plist sed 's/^X//' >tetris/pkg-plist << 'END-of-tetris/pkg-plist' Xbin/tetris END-of-tetris/pkg-plist echo x - tetris/pkg-descr sed 's/^X//' >tetris/pkg-descr << 'END-of-tetris/pkg-descr' XThe tetris command runs a display-based game. The object is to fit Xshapes together to form complete rows, which then vanish. When the Xshapes fill up to the top, the game ends. You can optionally select a Xlevel of play or custom-select control keys. X XDima Dorfman Xdima@unixfreak.org END-of-tetris/pkg-descr echo x - tetris/pkg-comment sed 's/^X//' >tetris/pkg-comment << 'END-of-tetris/pkg-comment' XA display-based Tetris game END-of-tetris/pkg-comment exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101160847.f0G8liu44506>