summaryrefslogtreecommitdiff
path: root/games/typespeed
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-10-04 11:55:02 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-10-04 11:55:02 +0000
commitae3285332dc0603ad2e1703bc4652db1d4076eb3 (patch)
treed1931028248de90880bd63354162d10c558a3941 /games/typespeed
parentNew port: games/typespeed (diff)
Fix building on -stable
Thanks to krion@ for his initial remarks in the PR.
Notes
Notes: svn path=/head/; revision=90228
Diffstat (limited to 'games/typespeed')
-rw-r--r--games/typespeed/Makefile3
-rw-r--r--games/typespeed/files/patch-aa27
2 files changed, 24 insertions, 6 deletions
diff --git a/games/typespeed/Makefile b/games/typespeed/Makefile
index 852314e2fa2e..77d3af8f3e95 100644
--- a/games/typespeed/Makefile
+++ b/games/typespeed/Makefile
@@ -17,6 +17,9 @@ COMMENT= Test your typing speed, and get your fingers\' CPS
MAN1= typespeed.1
USE_REINPLACE= yes
+USE_GETOPT_LONG= yes
+
+MAKE_ENV= LFLAGS="${LDFLAGS}"
post-patch:
${REINPLACE_CMD} -e 's#_PREFIX_HERE#${PREFIX}#g' \
diff --git a/games/typespeed/files/patch-aa b/games/typespeed/files/patch-aa
index f0c0da419c73..46b51964940b 100644
--- a/games/typespeed/files/patch-aa
+++ b/games/typespeed/files/patch-aa
@@ -1,6 +1,16 @@
---- Makefile.orig Wed Nov 10 15:32:40 1999
-+++ Makefile Mon Sep 29 04:32:41 2003
-@@ -11,9 +11,9 @@
+--- Makefile.orig Wed Nov 10 12:32:40 1999
++++ Makefile Sat Oct 4 03:15:28 2003
+@@ -3,17 +3,17 @@
+ #
+
+ CC = gcc
+-CFLAGS = -O -D_GNU_SOURCE -Wall
+-LFLAGS = -lncurses
++CFLAGS += -O -D_GNU_SOURCE -Wall -I${LOCALBASE}/include
++LFLAGS += -lncurses
+
+ PROG = typespeed
+ SRCS = file.c menu.c misc.c network.c
OBJS = file.o menu.o misc.o network.o
local_dir = $(HOME)
@@ -13,15 +23,20 @@
all: clean $(PROG)
-@@ -23,7 +23,6 @@
+@@ -23,12 +23,10 @@
$(PROG): $(OBJS)
-
- $(CC) $(CFLAGS) $(OBJS) -o $(PROG) $(PROG).c $(LFLAGS)
+ $(CC) $(CFLAGS) $(OBJS) -o $(PROG) $(PROG).c $(LFLAGS)
-@@ -40,11 +39,9 @@
+ install: typespeed
+-
+ @echo Installing. You need to be root, or have access to install dirs
+ @echo ..and we know that everyone can delete the highscores, but
+ @echo we did not want to put setuid or setgid to typespeed yet,
+@@ -40,11 +38,9 @@
if test ! -d $(wordfiles)/typespeed; then mkdir $(wordfiles)/typespeed; fi
./typespeed --makescores
cp words.* $(wordfiles)/typespeed