pkgsrc-wip/tetrinet/patches/patch-aa
Roland Illig 98262970ff Updated tetrinet to 0.11.
Version 0
---------
2003/06/24 .10	Unknown commands in partyline mode now cause "unknown command"
		    errors rather than being sent out as ordinary text.
2003/06/16 .9	Fixed bug causing players to never get junk lines if not
		    on a team or the sending player is not on a team.
		    Patch provided by Petr Baudis <pasky@ucw.cz>
2003/04/01 .8	Junk lines are no longer added for double/triple/Tetris
		    clears by team members.  Patch provided by Christoph
		    Weiss <weissch@informatik.tu-muenchen.de>
2002/08/13	Added IPv6 support.  Patch for client provided by Cougar
		    <cougar@random.ee>
2002/08/10	Added clean and spotless targets to Makefile.
2002/01/28 .7a	Fixed compilation error on FreeBSD.  Reported by Gadall
		    <gadall@hotmail.com>
2000/12/09	Added counter to special window, like Windows version.
2006-09-07 13:27:19 +00:00

25 lines
910 B
Text

$NetBSD: patch-aa,v 1.2 2006/09/07 13:27:19 rillig Exp $
--- Makefile.orig 2003-09-07 18:29:29.000000000 +0200
+++ Makefile 2006-09-07 15:21:14.000000000 +0200
@@ -1,6 +1,4 @@
-CC = cc
-
-CFLAGS = -O2 -I/usr/include/ncurses -DHAVE_IPV6 -g -Wall
+CPPFLAGS += -DHAVE_IPV6
OBJS = sockets.o tetrinet.o tetris.o tty.o xwin.o
### If you want to have -server tetrinet client option, comment the two lines
@@ -27,10 +25,10 @@ tetrinet: $(OBJS)
$(CC) -o $@ $(OBJS) -lncurses
tetrinet-server: server.c sockets.c tetrinet.c tetris.c server.h sockets.h tetrinet.h tetris.h
- $(CC) $(CFLAGS) -o $@ -DSERVER_ONLY server.c sockets.c tetrinet.c tetris.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -DSERVER_ONLY server.c sockets.c tetrinet.c tetris.c
.c.o:
- $(CC) $(CFLAGS) -c $<
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
server.o: server.c tetrinet.h tetris.h server.h sockets.h
sockets.o: sockets.c sockets.h tetrinet.h