diff options
author | edwin <edwin@FreeBSD.org> | 2003-10-04 19:55:02 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2003-10-04 19:55:02 +0800 |
commit | b0c4d4f837646f44bf204a788746cacbcba5357e (patch) | |
tree | 65e20e1f1e25840530ecb70df4d8367d21fb15c7 /games | |
parent | 5a5fb49fb9be5d603b412c5796d88a338a2fe39c (diff) | |
download | freebsd-ports-gnome-b0c4d4f837646f44bf204a788746cacbcba5357e.tar.gz freebsd-ports-gnome-b0c4d4f837646f44bf204a788746cacbcba5357e.tar.zst freebsd-ports-gnome-b0c4d4f837646f44bf204a788746cacbcba5357e.zip |
Fix building on -stable
Thanks to krion@ for his initial remarks in the PR.
Diffstat (limited to 'games')
-rw-r--r-- | games/typespeed/Makefile | 3 | ||||
-rw-r--r-- | games/typespeed/files/patch-aa | 27 |
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 |