summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-10-04 10:01:07 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-10-04 10:01:07 +0000
commit4b607005b54836ac9fa499f815fc71895163b1a1 (patch)
tree0173ab84be90412df19e63bcbe66408e10ff9636 /games
parentchase x11-toolkits/freeglut update. (diff)
New port: games/typespeed
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. PR: ports/57342 Submitted by: Suleiman Souhlal <refugee@vt.edu>
Notes
Notes: svn path=/head/; revision=90226
Diffstat (limited to '')
-rw-r--r--games/Makefile1
-rw-r--r--games/typespeed/Makefile25
-rw-r--r--games/typespeed/distinfo1
-rw-r--r--games/typespeed/files/patch-aa36
-rw-r--r--games/typespeed/files/patch-ba11
-rw-r--r--games/typespeed/pkg-descr11
-rw-r--r--games/typespeed/pkg-plist9
7 files changed, 94 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index 9d51144c2223..caf6a70da532 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 000000000000..852314e2fa2e
--- /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 000000000000..d7b4aa614a81
--- /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 000000000000..f0c0da419c73
--- /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 000000000000..ce89611e89d3
--- /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 000000000000..52a9eb1749a0
--- /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 000000000000..fa0241b37d40
--- /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