1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

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/
This commit is contained in:
Alexey Dokuchaev 2006-06-01 11:19:18 +00:00
parent e249218aee
commit d3d9fcffc4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=164150
7 changed files with 498 additions and 0 deletions

View File

@ -688,6 +688,7 @@
SUBDIR += vultures-eye
SUBDIR += wanderer
SUBDIR += wargus
SUBDIR += warsow
SUBDIR += warzone2100
SUBDIR += wesnoth
SUBDIR += wmeyes

57
games/warsow/Makefile Normal file
View File

@ -0,0 +1,57 @@
# New ports collection makefile for: Warsow
# Date created: 31 May 2006
# Whom: Alexey Dokuchaev <danfe@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= warsow
PORTVERSION= 0.11
CATEGORIES= games
MASTER_SITES= http://warsow.aditsystems.com/ \
http://ftp.club-internet.fr/pub/games/nofrag/warsow/ \
http://wsw.surreal-xenotronic.com/
DISTNAME= ${PORTNAME}_${PORTVERSION}_sdk
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
${PORTNAME}_${PORTVERSION}_linux.tar.gz
DIST_SUBDIR= ${PORTNAME}
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= danfe@FreeBSD.org
COMMENT= A fast paced first person shooter game
LIB_DEPENDS= curl.3:${PORTSDIR}/ftp/curl
USE_GMAKE= yes
USE_GL= yes
USE_SDL= yes
USE_ZIP= yes
USE_DOS2UNIX= linux/sys_linux.c
WRKSRC= ${WRKDIR}/source/source
RELEASEDIR= ${WRKSRC}/release
BASEDIR= ${PREFIX}/lib/${PORTNAME}
post-patch: .SILENT
${REINPLACE_CMD} -e 's#dllname, RTLD_LAZY#& | RTLD_GLOBAL#' \
${WRKSRC}/linux/qgl_linux.c
${REINPLACE_CMD} -e 's#path", "\.#path", "${BASEDIR}#; \
s#dir", "0#dir", "1#' ${WRKSRC}/qcommon/files.c
do-install:
${INSTALL_PROGRAM} ${RELEASEDIR}/warsow ${RELEASEDIR}/wsw_server \
${PREFIX}/bin
@${MKDIR} ${BASEDIR}/basewsw
${INSTALL_PROGRAM} ${RELEASEDIR}/basewsw/*.so ${BASEDIR}/basewsw
@${TAR} xzvf ${_DISTDIR}/${PORTNAME}_${PORTVERSION}_linux.tar.gz \
-C ${PREFIX}/lib warsow/basewsw/cfgs warsow/basewsw/huds \
warsow/basewsw/dedicated_autoexec.cfg \
warsow/basewsw/\*.pk3 && ${CHOWN} -R root:wheel ${BASEDIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${TAR} xzvf ${_DISTDIR}/${PORTNAME}_${PORTVERSION}_linux.tar.gz \
-C ${WRKDIR} warsow/docs && ${CP} -R ${WRKDIR}/warsow/docs/ \
${DOCSDIR} && ${CHMOD} -R 777 ${WRKDIR}/warsow
.endif
.include <bsd.port.mk>

6
games/warsow/distinfo Normal file
View File

@ -0,0 +1,6 @@
MD5 (warsow/warsow_0.11_sdk.zip) = 532112b96f38bf5418adf7f082c647de
SHA256 (warsow/warsow_0.11_sdk.zip) = 9b0a0fd2ca34ecaadb34f242dac154f8f1ec429d7fb14da855dd38e6b84953a8
SIZE (warsow/warsow_0.11_sdk.zip) = 5023808
MD5 (warsow/warsow_0.11_linux.tar.gz) = e03cea5e84e63ddd0e1cbeecb1fa7d3f
SHA256 (warsow/warsow_0.11_linux.tar.gz) = d67c27a07211e953b7d8169dcca9fdb923d6548f681da116f0a0ca0a623ebb85
SIZE (warsow/warsow_0.11_linux.tar.gz) = 65712099

View File

@ -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)
######################################################################################################

View File

@ -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;
}

12
games/warsow/pkg-descr Normal file
View File

@ -0,0 +1,12 @@
Warsow is a standalone multiplayer game. It features:
* 3D Engine based on Qfusion (a modification of Quake II GPL engine)
* eSport oriented FPS
* Fast-paced gameplay focused on trix (trick jumps) and art of move
* Complete Power-up System including Weak and Strong fire mode for each
weapon
* Cartoonish graphics with celshading-like-but-not-Manga style, mixing
dark, flashy, and dirty textures, matching with action full of fun
and speed
WWW: http://www.warsow.net/

130
games/warsow/pkg-plist Normal file
View File

@ -0,0 +1,130 @@
bin/warsow
bin/wsw_server
lib/warsow/basewsw/cgame.so
lib/warsow/basewsw/game.so
lib/warsow/basewsw/ui.so
lib/warsow/basewsw/data0.pk3
lib/warsow/basewsw/data0fix1.pk3
lib/warsow/basewsw/map_wctf1.pk3
lib/warsow/basewsw/map_wdm1.pk3
lib/warsow/basewsw/map_wdm2.pk3
lib/warsow/basewsw/map_wdm5.pk3
lib/warsow/basewsw/map_wmid1.pk3
lib/warsow/basewsw/map_wmid2.pk3
lib/warsow/basewsw/map_wmid3.pk3
lib/warsow/basewsw/map_wtest1.pk3
lib/warsow/basewsw/map_wtest3.pk3
lib/warsow/basewsw/map_wtest4.pk3
lib/warsow/basewsw/cfgs/Medar.cfg
lib/warsow/basewsw/cfgs/pb.cfg
lib/warsow/basewsw/cfgs/nip.cfg
lib/warsow/basewsw/cfgs/jal.cfg
lib/warsow/basewsw/cfgs/dedicated_ffa.cfg
lib/warsow/basewsw/cfgs/dedicated_ctf.cfg
lib/warsow/basewsw/cfgs/ekse.cfg
lib/warsow/basewsw/cfgs/ETR.cfg
lib/warsow/basewsw/cfgs/dedicated_tdm_ctf.cfg
lib/warsow/basewsw/cfgs/dedicated_allaround.cfg
lib/warsow/basewsw/cfgs/dedicated_duel_quad.cfg
lib/warsow/basewsw/cfgs/chas.cfg
lib/warsow/basewsw/cfgs/dedicated_tdm.cfg
lib/warsow/basewsw/cfgs/dedicated_duel.cfg
lib/warsow/basewsw/cfgs/dedicated_quad.cfg
@dirrm lib/warsow/basewsw/cfgs
lib/warsow/basewsw/huds/inc/nip/speed_right_small.hud
lib/warsow/basewsw/huds/inc/nip/health_numbers.hud
lib/warsow/basewsw/huds/inc/nip/team_info.hud
lib/warsow/basewsw/huds/inc/nip/selected_weapon.hud
lib/warsow/basewsw/huds/inc/nip/pointing_middle.hud
lib/warsow/basewsw/huds/inc/nip/selected_item.hud
lib/warsow/basewsw/huds/inc/nip/race_timer.hud
lib/warsow/basewsw/huds/inc/nip/armor_numbers.hud
lib/warsow/basewsw/huds/inc/nip/fps_right_small.hud
lib/warsow/basewsw/huds/inc/nip/frag_counter.hud
lib/warsow/basewsw/huds/inc/nip/powerup_item.hud
lib/warsow/basewsw/huds/inc/nip/picked_up_item.hud
lib/warsow/basewsw/huds/inc/nip/clock_right_mid.hud
lib/warsow/basewsw/huds/inc/nip/ammo.hud
lib/warsow/basewsw/huds/inc/nip/help_message_center.hud
lib/warsow/basewsw/huds/inc/nip/weaponlist_up.hud
lib/warsow/basewsw/huds/inc/nip/crosshair.hud
lib/warsow/basewsw/huds/inc/nip/chasing_top.hud
@dirrm lib/warsow/basewsw/huds/inc/nip
lib/warsow/basewsw/huds/inc/1oooK/speed_right_small.hud
lib/warsow/basewsw/huds/inc/1oooK/health_numbers.hud
lib/warsow/basewsw/huds/inc/1oooK/clock_right_mid.hud
lib/warsow/basewsw/huds/inc/1oooK/team_info.hud
lib/warsow/basewsw/huds/inc/1oooK/armor_bar.hud
lib/warsow/basewsw/huds/inc/1oooK/selected_item.hud
lib/warsow/basewsw/huds/inc/1oooK/chasing_left.hud
lib/warsow/basewsw/huds/inc/1oooK/armor_numbers.hud
lib/warsow/basewsw/huds/inc/1oooK/health_bar.hud
lib/warsow/basewsw/huds/inc/1oooK/weaponlist_down.hud
lib/warsow/basewsw/huds/inc/1oooK/crosshair.hud
lib/warsow/basewsw/huds/inc/1oooK/fps_right_small.hud
lib/warsow/basewsw/huds/inc/1oooK/frag_counter.hud
@dirrm lib/warsow/basewsw/huds/inc/1oooK
lib/warsow/basewsw/huds/inc/health_numbers.hud
lib/warsow/basewsw/huds/inc/selected_weapon.hud
lib/warsow/basewsw/huds/inc/team_info.hud
lib/warsow/basewsw/huds/inc/pointing_middle.hud
lib/warsow/basewsw/huds/inc/health_pic_bar2.hud
lib/warsow/basewsw/huds/inc/selected_item.hud
lib/warsow/basewsw/huds/inc/ETR/health_numbers.hud
lib/warsow/basewsw/huds/inc/ETR/picked_up_item.hud
lib/warsow/basewsw/huds/inc/ETR/team_info.hud
lib/warsow/basewsw/huds/inc/ETR/speed_mid_mid.hud
lib/warsow/basewsw/huds/inc/ETR/clock_mid_big.hud
lib/warsow/basewsw/huds/inc/ETR/pointing_middle.hud
lib/warsow/basewsw/huds/inc/ETR/chasing_left.hud
lib/warsow/basewsw/huds/inc/ETR/armor_numbers.hud
lib/warsow/basewsw/huds/inc/ETR/weaponlist_down.hud
lib/warsow/basewsw/huds/inc/ETR/fps_right_small.hud
lib/warsow/basewsw/huds/inc/ETR/crosshair.hud
lib/warsow/basewsw/huds/inc/ETR/frag_counter.hud
lib/warsow/basewsw/huds/inc/ETR/scores.hud
@dirrm lib/warsow/basewsw/huds/inc/ETR
lib/warsow/basewsw/huds/inc/net.hud
lib/warsow/basewsw/huds/inc/race_timer.hud
lib/warsow/basewsw/huds/inc/clock_right_small.hud
lib/warsow/basewsw/huds/inc/armor_numbers.hud
lib/warsow/basewsw/huds/inc/weaponlist_down.hud
lib/warsow/basewsw/huds/inc/fps_right_small.hud
lib/warsow/basewsw/huds/inc/powerup_item.hud
lib/warsow/basewsw/huds/inc/speed_right_small.hud
lib/warsow/basewsw/huds/inc/picked_up_item.hud
lib/warsow/basewsw/huds/inc/clock_right_mid.hud
lib/warsow/basewsw/huds/inc/armor_pic_bar2.hud
lib/warsow/basewsw/huds/inc/weaponlist_right.hud
lib/warsow/basewsw/huds/inc/health_pic_bar.hud
lib/warsow/basewsw/huds/inc/armor_pic_bar.hud
lib/warsow/basewsw/huds/inc/chasing_left.hud
lib/warsow/basewsw/huds/inc/ammo.hud
lib/warsow/basewsw/huds/inc/crosshair.hud
lib/warsow/basewsw/huds/inc/help_message_center.hud
lib/warsow/basewsw/huds/inc/scores.hud
lib/warsow/basewsw/huds/inc/weaponlist_left.hud
@dirrm lib/warsow/basewsw/huds/inc
lib/warsow/basewsw/huds/default.hud
lib/warsow/basewsw/huds/nip.hud
lib/warsow/basewsw/huds/1oooK.hud
lib/warsow/basewsw/huds/hud_left.hud
lib/warsow/basewsw/huds/ETR.hud
lib/warsow/basewsw/huds/hud_right.hud
@dirrm lib/warsow/basewsw/huds
lib/warsow/basewsw/dedicated_autoexec.cfg
@dirrm lib/warsow/basewsw
@dirrm lib/warsow
%%PORTDOCS%%%%DOCSDIR%%/Shader_Manual.rtf
%%PORTDOCS%%%%DOCSDIR%%/bots_navigation.txt
%%PORTDOCS%%%%DOCSDIR%%/changelog.txt
%%PORTDOCS%%%%DOCSDIR%%/contact.txt
%%PORTDOCS%%%%DOCSDIR%%/dedicated_server_quide.txt
%%PORTDOCS%%%%DOCSDIR%%/demoavi.txt
%%PORTDOCS%%%%DOCSDIR%%/gnu.txt
%%PORTDOCS%%%%DOCSDIR%%/huds.txt
%%PORTDOCS%%%%DOCSDIR%%/linux_sound_sdl.txt
%%PORTDOCS%%%%DOCSDIR%%/new_features.txt
%%PORTDOCS%%%%DOCSDIR%%/old_changelog.txt
%%PORTDOCS%%%%DOCSDIR%%/query_protocols.txt
%%PORTDOCS%%@dirrm %%DOCSDIR%%