aboutsummaryrefslogtreecommitdiff
path: root/games/alienarena
diff options
context:
space:
mode:
authorAlejandro Pulver <alepulver@FreeBSD.org>2007-03-31 02:32:23 +0000
committerAlejandro Pulver <alepulver@FreeBSD.org>2007-03-31 02:32:23 +0000
commit14782b4f28808203e04c0a31506699c0686f253a (patch)
tree0f8b7732fb96fe9ec48eaf833bea1420cefb87c1 /games/alienarena
parentf842ed178e53c4a72edfa3b2710830ed7ab571a4 (diff)
downloadports-14782b4f28808203e04c0a31506699c0686f253a.tar.gz
ports-14782b4f28808203e04c0a31506699c0686f253a.zip
Notes
Diffstat (limited to 'games/alienarena')
-rw-r--r--games/alienarena/files/patch-linux__Makefile21
-rw-r--r--games/alienarena/files/patch-server__sv_main.c21
2 files changed, 15 insertions, 27 deletions
diff --git a/games/alienarena/files/patch-linux__Makefile b/games/alienarena/files/patch-linux__Makefile
index 4649055e8fc6..ee4eebc7e192 100644
--- a/games/alienarena/files/patch-linux__Makefile
+++ b/games/alienarena/files/patch-linux__Makefile
@@ -1,5 +1,5 @@
---- linux/Makefile.orig Mon Mar 26 00:13:44 2007
-+++ linux/Makefile Mon Mar 26 00:14:51 2007
+--- linux/Makefile.orig Fri Mar 30 23:06:46 2007
++++ linux/Makefile Fri Mar 30 23:13:43 2007
@@ -11,25 +11,14 @@
GLIBC=
endif
@@ -30,7 +30,7 @@
CLIENT_DIR=$(MOUNT_DIR)/client
SERVER_DIR=$(MOUNT_DIR)/server
REF_GL_DIR=$(MOUNT_DIR)/ref_gl
-@@ -42,51 +31,29 @@
+@@ -42,51 +31,31 @@
EGCS=/usr/local/egcs-1.1.2/bin/gcc
@@ -42,13 +42,14 @@
-_LIB := lib
-endif
-
--BASE_CFLAGS=-Dstricmp=strcasecmp -D_stricmp=strcasecmp -D__unix__
+-BASE_CFLAGS=-Dstricmp=strcasecmp -D_stricmp=strcasecmp -D__linux__
-
-ifeq ($(ARCH),axp)
-RELEASE_CFLAGS=$(BASE_CFLAGS) -ffast-math -funroll-loops \
- -fomit-frame-pointer -fexpensive-optimizations
-endif
--
++CC?=gcc
+
-ifeq ($(ARCH),ppc)
-RELEASE_CFLAGS=$(BASE_CFLAGS) -O2 -ffast-math -funroll-loops \
- -fomit-frame-pointer -fexpensive-optimizations
@@ -95,7 +96,7 @@
SDLCFLAGS=$(shell sdl-config --cflags)
SDLLDFLAGS=$(shell sdl-config --libs)
-@@ -115,19 +82,19 @@
+@@ -115,19 +84,19 @@
# SETUP AND BUILD
#############################################################################
@@ -125,7 +126,7 @@
endif
build_debug:
-@@ -234,18 +201,14 @@
+@@ -234,18 +203,14 @@
SOUND_SDL_OBJS = \
$(BUILDDIR)/client/snd_sdl.o
@@ -146,7 +147,7 @@
$(CC) $(CFLAGS) -o $@ $(CODERED_OBJS) $(SOUND_SDL_OBJS) $(CODERED_AS_OBJS) $(LDFLAGS) $(REF_GL_OBJS) $(REF_GL_GLX_OBJS) $(GLXLDFLAGS) $(SDLLDFLAGS)
$(BUILDDIR)/client/cl_cin.o : $(CLIENT_DIR)/cl_cin.c
-@@ -478,7 +441,7 @@
+@@ -478,7 +443,7 @@
$(BUILDDIR)/ded/cl_null.o \
$(BUILDDIR)/ded/cd_null.o
@@ -155,7 +156,7 @@
$(CC) $(CFLAGS) -o $@ $(CRDED_OBJS) $(LDFLAGS)
$(BUILDDIR)/ded/cmd.o : $(COMMON_DIR)/cmd.c
-@@ -597,7 +560,7 @@
+@@ -597,7 +562,7 @@
@@ -164,7 +165,7 @@
$(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(GAME_OBJS)
-@@ -753,7 +716,7 @@
+@@ -753,7 +718,7 @@
$(BUILDDIR)/arena/p_weapon.o \
$(BUILDDIR)/arena/vehicles.o
diff --git a/games/alienarena/files/patch-server__sv_main.c b/games/alienarena/files/patch-server__sv_main.c
index e93cea6dd752..982232438a04 100644
--- a/games/alienarena/files/patch-server__sv_main.c
+++ b/games/alienarena/files/patch-server__sv_main.c
@@ -1,6 +1,6 @@
---- ./server/sv_main.c.orig Tue May 16 15:20:10 2006
-+++ ./server/sv_main.c Tue May 16 15:20:10 2006
-@@ -445,8 +445,9 @@
+--- server/sv_main.c.orig Fri Mar 30 23:15:20 2007
++++ server/sv_main.c Fri Mar 30 23:16:36 2007
+@@ -450,8 +450,9 @@
return;
}
@@ -12,20 +12,7 @@
//check it is not overflowed, save enough bytes for /ip/111.222.333.444:55555
if (strlen(userinfo) + 25 >= sizeof(userinfo)-1)
-@@ -502,8 +503,11 @@
- {
- if (NET_CompareBaseAdr (net_from, svs.challenges[i].adr))
- {
-- if (challenge == svs.challenges[i].challenge)
-+ // sku - ignore zero challenges
-+ if( svs.challenges[i].challenge && challenge == svs.challenges[i].challenge ) {
-+ svs.challenges[i].challenge = 0;
- break; // good
-+ }
- Netchan_OutOfBandPrint (NS_SERVER, adr, "print\nBad challenge.\n");
- return;
- }
-@@ -588,12 +592,6 @@
+@@ -595,12 +596,6 @@
Netchan_OutOfBandPrint (NS_SERVER, adr, "print\nConnection refused.\n" );
Com_DPrintf ("Game rejected a connection.\n");
return;