diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-04-02 13:02:40 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-04-02 13:02:40 +0000 |
commit | c19f42a07d5307c1c67e88402b66f578a1d7632f (patch) | |
tree | 86f0768c4e856c06264bd9921d6ccb0ca24984ed /games/bsdtris/files | |
parent | Add webjob 1.2.3, download and execute a program over HTTP/HTTPS. (diff) |
games/tetris -> games/bsdtris
PR: ports/50535
Notes
Notes:
svn path=/head/; revision=77987
Diffstat (limited to 'games/bsdtris/files')
-rw-r--r-- | games/bsdtris/files/mktetristarball | 12 | ||||
-rw-r--r-- | games/bsdtris/files/patch-Makefile | 29 | ||||
-rw-r--r-- | games/bsdtris/files/patch-pathnames.h | 8 |
3 files changed, 49 insertions, 0 deletions
diff --git a/games/bsdtris/files/mktetristarball b/games/bsdtris/files/mktetristarball new file mode 100644 index 000000000000..e406fa228aad --- /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 000000000000..d3b62a702f86 --- /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 000000000000..7fea299ee491 --- /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" |