aboutsummaryrefslogtreecommitdiffstats
path: root/games/warsow/files
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2006-06-01 19:19:18 +0800
committerdanfe <danfe@FreeBSD.org>2006-06-01 19:19:18 +0800
commit09a8720829de7b52b821fb56531c133d842c7fed (patch)
tree65d971a1ea9c4eb027b43e94b1ea5d067b18303e /games/warsow/files
parent0ebb65510b74d0624402a547ca717f4ea126367e (diff)
downloadfreebsd-ports-gnome-09a8720829de7b52b821fb56531c133d842c7fed.tar.gz
freebsd-ports-gnome-09a8720829de7b52b821fb56531c133d842c7fed.tar.zst
freebsd-ports-gnome-09a8720829de7b52b821fb56531c133d842c7fed.zip
Add Warsow, a fast paced first person shooter game with cartoonish graphics
which is primarily focused on trix (trick jumps) and art of move. WWW: http://www.warsow.net/
Diffstat (limited to 'games/warsow/files')
-rw-r--r--games/warsow/files/patch-Makefile209
-rw-r--r--games/warsow/files/patch-linux+sys_linux.c83
2 files changed, 292 insertions, 0 deletions
diff --git a/games/warsow/files/patch-Makefile b/games/warsow/files/patch-Makefile
new file mode 100644
index 000000000000..129d8ae606dd
--- /dev/null
+++ b/games/warsow/files/patch-Makefile
@@ -0,0 +1,209 @@
+--- Makefile.orig Fri May 26 02:03:42 2006
++++ Makefile Thu Jun 1 15:22:05 2006
+@@ -6,7 +6,7 @@
+ ARCH:=$(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc/ -e s/sparc64/sparc/ -e s/arm.*/arm/ -e s/sa110/arm/ -e s/alpha/axp/)
+
+ BUILDDIR=build
+-BINDIR=release$(ARCH)
++BINDIR=release
+
+ DEPENDFILE_CLIENT=$(BUILDDIR)/client/Makefile.d
+ DEPENDFILE_DED=$(BUILDDIR)/ded/Makefile.d
+@@ -16,18 +16,15 @@
+
+ BUILDDIRS=$(BUILDDIR)/client $(BUILDDIR)/ded $(BUILDDIR)/cgame $(BUILDDIR)/game $(BUILDDIR)/ui
+
+-CC=gcc
+-LD=gcc
+-
+-CFLAGS_COMMON=-I. -D__linux__ -Wall
+-CFLAGS_RELEASE=-O2 -fno-strict-aliasing -ffast-math -funroll-loops
++CFLAGS_COMMON=-I. -I${LOCALBASE}/include -I${X11BASE}/include -D__linux__ -Wall
++CFLAGS_RELEASE=${CFLAGS} -fno-strict-aliasing -ffast-math -funroll-loops
+ CFLAGS_DEBUG=-O0 -ggdb -DDEBUG
+ CFLAGS_COMMON+=$(CFLAGS_RELEASE)
+
+ CFLAGS_DED=-DDEDICATED_ONLY -DC_ONLY
+ CFLAGS_MODULE=-fPIC
+
+-LDFLAGS_COMMON=-L/usr/local/lib -ldl -lm -lc
++LDFLAGS_COMMON=-L${LOCALBASE}/lib -lm
+
+ ifeq ($(ARCH),x86_64)
+ LIB=lib64
+@@ -35,12 +32,12 @@
+ LIB=lib
+ endif
+
+-LDFLAGS_CLIENT=-ljpeg -lz -L/usr/X11R6/$(LIB) -lX11 -lXext -lXxf86dga -lXxf86vm -lcurl
++LDFLAGS_CLIENT=-ljpeg -lz -L${X11BASE}/$(LIB) -lX11 -lXext -lXxf86dga -lXxf86vm -lcurl
+ LDFLAGS_DED=-lz
+ LDFLAGS_MODULE=-shared
+
+-CFLAGS_SDL=$(shell sdl-config --cflags)
+-LDFLAGS_SDL=$(shell sdl-config --libs)
++CFLAGS_SDL=$(shell ${SDL_CONFIG} --cflags)
++LDFLAGS_SDL=$(shell ${SDL_CONFIG} --libs)
+
+ ######################################################################################################
+ # Helper functions
+@@ -182,21 +179,21 @@
+ @echo "> * Building cgame"
+ @echo "> *********************************************************"
+ compile-cgame: $(OBJS_CGAME)
+-link-cgame: $(BINDIR)/basewsw $(BINDIR)/basewsw/cgame_$(ARCH).so
++link-cgame: $(BINDIR)/basewsw $(BINDIR)/basewsw/cgame.so
+
+ message-game:
+ @echo "> *********************************************************"
+ @echo "> * Building game"
+ @echo "> *********************************************************"
+ compile-game: $(OBJS_GAME)
+-link-game: $(BINDIR)/basewsw $(BINDIR)/basewsw/game_$(ARCH).so
++link-game: $(BINDIR)/basewsw $(BINDIR)/basewsw/game.so
+
+ message-ui:
+ @echo "> *********************************************************"
+ @echo "> * Building ui"
+ @echo "> *********************************************************"
+ compile-ui: $(OBJS_UI)
+-link-ui: $(BINDIR)/basewsw $(BINDIR)/basewsw/ui_$(ARCH).so
++link-ui: $(BINDIR)/basewsw $(BINDIR)/basewsw/ui.so
+
+
+ ######################################################################################################
+@@ -206,29 +203,29 @@
+ # DED
+ ########
+ $(BINDIR)/wsw_server: $(OBJS_DED)
+- @echo " > Linking $@" && \
++ echo " > Linking $@" && \
+ $(CC) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_DED)
+
+ #########
+ # CLIENT
+ #########
+ $(BINDIR)/warsow: $(OBJS_CLIENT)
+- @echo " > Linking $@" && \
++ echo " > Linking $@" && \
+ $(CC) -o $@ $(OBJS_CLIENT) $(LDFLAGS_COMMON) $(LDFLAGS_CLIENT) $(LDFLAGS_SDL)
+
+ ########
+ # .SO
+ ########
+-$(BINDIR)/basewsw/cgame_$(ARCH).so: $(OBJS_CGAME)
+- @echo " > Linking $@" && \
++$(BINDIR)/basewsw/cgame.so: $(OBJS_CGAME)
++ echo " > Linking $@" && \
+ $(CC) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_MODULE)
+
+-$(BINDIR)/basewsw/game_$(ARCH).so: $(OBJS_GAME)
+- @echo " > Linking $@" && \
++$(BINDIR)/basewsw/game.so: $(OBJS_GAME)
++ echo " > Linking $@" && \
+ $(CC) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_MODULE)
+
+-$(BINDIR)/basewsw/ui_$(ARCH).so: $(OBJS_UI)
+- @echo " > Linking $@" && \
++$(BINDIR)/basewsw/ui.so: $(OBJS_UI)
++ echo " > Linking $@" && \
+ $(CC) -o $@ $^ $(LDFLAGS_COMMON) $(LDFLAGS_MODULE)
+
+
+@@ -239,76 +236,76 @@
+ # CLIENT
+ ########
+ $(BUILDDIR)/client/%.o: qcommon/%.c
+- @$(DO_CC)
++ $(DO_CC)
+
+ $(BUILDDIR)/client/%.o: server/%.c
+- @$(DO_CC)
++ $(DO_CC)
+
+ $(BUILDDIR)/client/%.o: client/%.c
+- @$(DO_CC)
++ $(DO_CC)
+
+ $(BUILDDIR)/client/%.o: ref_gl/%.c
+- @$(DO_CC)
++ $(DO_CC)
+
+ $(BUILDDIR)/client/%.o: linux/%.c
+- @$(DO_CC)
++ $(DO_CC)
+
+ $(BUILDDIR)/client/snd_sdl.o: linux/snd_sdl.c
+- @$(DO_CC) $(CFLAGS_SDL)
++ $(DO_CC) $(CFLAGS_SDL)
+
+ $(BUILDDIR)/client/%.o: game/%.c
+- @$(DO_CC)
++ $(DO_CC)
+
+ ########
+ # DED
+ ########
+ $(BUILDDIR)/ded/%.o: qcommon/%.c
+- @$(DO_CC_DED)
++ $(DO_CC_DED)
+
+ $(BUILDDIR)/ded/%.o: server/%.c
+- @$(DO_CC_DED)
++ $(DO_CC_DED)
+
+ $(BUILDDIR)/ded/%.o: linux/%.c
+- @$(DO_CC_DED)
++ $(DO_CC_DED)
+
+ $(BUILDDIR)/ded/%.o: null/%.c
+- @$(DO_CC_DED)
++ $(DO_CC_DED)
+
+ $(BUILDDIR)/ded/%.o: game/%.c
+- @$(DO_CC_DED)
++ $(DO_CC_DED)
+
+ ########
+ # CGAME
+ ########
+ $(BUILDDIR)/cgame/%.o: cgame/%.c
+- @$(DO_CC_MODULE)
++ $(DO_CC_MODULE)
+
+ $(BUILDDIR)/cgame/%.o: gameshared/%.c
+- @$(DO_CC_MODULE)
++ $(DO_CC_MODULE)
+
+ $(BUILDDIR)/cgame/%.o: game/%.c
+- @$(DO_CC_MODULE)
++ $(DO_CC_MODULE)
+
+ ########
+ # GAME
+ ########
+ $(BUILDDIR)/game/%.o: game/%.c
+- @$(DO_CC_MODULE)
++ $(DO_CC_MODULE)
+
+ $(BUILDDIR)/game/%.o: game/ai/%.c
+- @$(DO_CC_MODULE)
++ $(DO_CC_MODULE)
+
+ $(BUILDDIR)/game/%.o: gameshared/%.c
+- @$(DO_CC_MODULE)
++ $(DO_CC_MODULE)
+
+ ########
+ # UI
+ ########
+ $(BUILDDIR)/ui/%.o: game/%.c
+- @$(DO_CC_MODULE)
++ $(DO_CC_MODULE)
+
+ $(BUILDDIR)/ui/%.o: ui/%.c
+- @$(DO_CC_MODULE)
++ $(DO_CC_MODULE)
+
+
+ ######################################################################################################
diff --git a/games/warsow/files/patch-linux+sys_linux.c b/games/warsow/files/patch-linux+sys_linux.c
new file mode 100644
index 000000000000..65cdc338e493
--- /dev/null
+++ b/games/warsow/files/patch-linux+sys_linux.c
@@ -0,0 +1,83 @@
+--- linux/sys_linux.c.orig Thu May 11 22:18:54 2006
++++ linux/sys_linux.c Thu Jun 1 15:44:44 2006
+@@ -377,53 +377,11 @@
+ char *libname;
+ char *apifuncname;
+
+-#if defined __i386__
+-#define ARCH "i386"
+-
+-#ifdef NDEBUG
+- const char *debugdir = "releasei386";
+-#else
+- const char *debugdir = "debugi386";
+-#endif
+-
+-#elif defined __x86_64__
+-#define ARCH "x86_64"
+-#ifdef NDEBUG
+- const char *debugdir = "releasex86_64";
+-#else
+- const char *debugdir = "debugx86_64";
+-#endif
+-
+-#elif defined __alpha__
+-#define ARCH "axp"
+-#ifdef NDEBUG
+- const char *debugdir = "releaseaxp";
+-#else
+- const char *debugdir = "debugaxp";
+-#endif
+-
+-#elif defined __powerpc__
+-#define ARCH "ppc"
+-#ifdef NDEBUG
+- const char *debugdir = "releaseppc";
+-#else
+- const char *debugdir = "debugppc";
+-#endif
+-#elif defined __sparc__
+-#define ARCH "sparc"
+-#ifdef NDEBUG
+- const char *debugdir = "releasepsparc";
+-#else
+- const char *debugdir = "debugpsparc";
+-#endif
+-#else
+-#define ARCH "UNKNOW"
+ #ifdef NDEBUG
+ const char *debugdir = "release";
+ #else
+ const char *debugdir = "debug";
+ #endif
+-#endif
+
+ APIfunc = NULL;
+ switch( gamelib ) {
+@@ -434,7 +392,7 @@
+ APIfunc = GetGameAPI;
+ #endif
+ lib = &game_library;
+- libname = "game_" ARCH ".so";
++ libname = "game.so";
+ apifuncname = "GetGameAPI";
+ break;
+ }
+@@ -445,7 +403,7 @@
+ APIfunc = GetCGameAPI;
+ #endif
+ lib = &cgame_library;
+- libname = "cgame_" ARCH ".so";
++ libname = "cgame.so";
+ apifuncname = "GetCGameAPI";
+ break;
+ }
+@@ -456,7 +414,7 @@
+ APIfunc = GetUIAPI;
+ #endif
+ lib = &ui_library;
+- libname = "ui_" ARCH ".so";
++ libname = "ui.so";
+ apifuncname = "GetUIAPI";
+ break;
+ }