diff options
Diffstat (limited to 'games')
-rw-r--r-- | games/Makefile | 1 | ||||
-rw-r--r-- | games/typespeed/Makefile | 25 | ||||
-rw-r--r-- | games/typespeed/distinfo | 1 | ||||
-rw-r--r-- | games/typespeed/files/patch-aa | 36 | ||||
-rw-r--r-- | games/typespeed/files/patch-ba | 11 | ||||
-rw-r--r-- | games/typespeed/pkg-descr | 11 | ||||
-rw-r--r-- | games/typespeed/pkg-plist | 9 |
7 files changed, 94 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile index 9d51144..caf6a70 100644 --- a/games/Makefile +++ b/games/Makefile @@ -377,6 +377,7 @@ SUBDIR += tuxtype SUBDIR += tvp SUBDIR += twitch + SUBDIR += typespeed SUBDIR += uhexen SUBDIR += uox3 SUBDIR += uqm diff --git a/games/typespeed/Makefile b/games/typespeed/Makefile new file mode 100644 index 0000000..852314e --- /dev/null +++ b/games/typespeed/Makefile @@ -0,0 +1,25 @@ +# New ports collection makefile for: typespeed +# Date created: 06 September 2003 +# Whom: refugee +# +# $FreeBSD$ +# + +PORTNAME= typespeed +PORTVERSION= 0.4.1 +CATEGORIES= games +MASTER_SITES= http://www.sicom.fi/~bestis/ +DISTNAME= typespeed-${PORTVERSION} + +MAINTAINER= refugee@vt.edu +COMMENT= Test your typing speed, and get your fingers\' CPS + +MAN1= typespeed.1 + +USE_REINPLACE= yes + +post-patch: + ${REINPLACE_CMD} -e 's#_PREFIX_HERE#${PREFIX}#g' \ + ${WRKSRC}/typespeed.h + +.include <bsd.port.mk> diff --git a/games/typespeed/distinfo b/games/typespeed/distinfo new file mode 100644 index 0000000..d7b4aa6 --- /dev/null +++ b/games/typespeed/distinfo @@ -0,0 +1 @@ +MD5 (typespeed-0.4.1.tar.gz) = 0af9809cd20bd9010732ced930090f32 diff --git a/games/typespeed/files/patch-aa b/games/typespeed/files/patch-aa new file mode 100644 index 0000000..f0c0da4 --- /dev/null +++ b/games/typespeed/files/patch-aa @@ -0,0 +1,36 @@ +--- Makefile.orig Wed Nov 10 15:32:40 1999 ++++ Makefile Mon Sep 29 04:32:41 2003 +@@ -11,9 +11,9 @@ + OBJS = file.o menu.o misc.o network.o + + local_dir = $(HOME) +-install_dir = "/usr/local/bin" +-wordfiles = "/usr/local/lib" +-man_dir = "/usr/local/man/man1/" ++install_dir = ${PREFIX}/bin ++wordfiles = ${PREFIX}/lib ++man_dir = ${PREFIX}/man/man1/ + + all: clean $(PROG) + +@@ -23,7 +23,6 @@ + + + $(PROG): $(OBJS) +- + $(CC) $(CFLAGS) $(OBJS) -o $(PROG) $(PROG).c $(LFLAGS) + + +@@ -40,11 +39,9 @@ + if test ! -d $(wordfiles)/typespeed; then mkdir $(wordfiles)/typespeed; fi + ./typespeed --makescores + cp words.* $(wordfiles)/typespeed +- cp high.* $(wordfiles)/typespeed + chmod 755 $(wordfiles)/typespeed +- chmod 666 $(wordfiles)/typespeed/high.* + chmod 644 $(wordfiles)/typespeed/words.* +- echo $(wordfiles)/typespeed/ > /etc/typespeedrc ++ echo $(wordfiles)/typespeed/ > ${PREFIX}/etc/typespeedrc + cp typespeed.1 $(man_dir) + chmod 644 $(man_dir)/typespeed.1 + @echo done... diff --git a/games/typespeed/files/patch-ba b/games/typespeed/files/patch-ba new file mode 100644 index 0000000..ce89611 --- /dev/null +++ b/games/typespeed/files/patch-ba @@ -0,0 +1,11 @@ +--- typespeed.h.orig Fri Sep 5 23:30:12 2003 ++++ typespeed.h Fri Sep 5 23:39:42 2003 +@@ -24,7 +24,7 @@ + + #define TVERSION "v0.4.1" + +-#define CONFIGFILE "/etc/typespeedrc" ++#define CONFIGFILE "_PREFIX_HERE/etc/typespeedrc" + #define LOCALCONF ".typespeedrc" + + #define WORD_MAX 10000 diff --git a/games/typespeed/pkg-descr b/games/typespeed/pkg-descr new file mode 100644 index 0000000..52a9eb1 --- /dev/null +++ b/games/typespeed/pkg-descr @@ -0,0 +1,11 @@ + Typespeed gives your fingers' cps (total and correct), typoratio and some + points to compare with your friends. + + Typespeed's idea is ripped from ztspeed (a dos game made by Zorlim). Idea + of the game should be clear to anyone, just type and type it fast, or be a + lewser. + +WWW: http://www.sicom.fi/~bestis/typespeed.html + +- Suleiman Souhlal +refugee@vt.edu diff --git a/games/typespeed/pkg-plist b/games/typespeed/pkg-plist new file mode 100644 index 0000000..fa0241b --- /dev/null +++ b/games/typespeed/pkg-plist @@ -0,0 +1,9 @@ +etc/typespeedrc +bin/typespeed +lib/typespeed/words.dos +lib/typespeed/words.eng +lib/typespeed/words.fin +lib/typespeed/words.portuguese +lib/typespeed/words.prog +lib/typespeed/words.unix +@dirrm lib/typespeed |