Import teeworlds-0.5.0

Teeworlds is a free online multiplayer game, available for all major 
operating systems. Battle with up to 16 players in a variety of game 
modes, including Team Deathmatch and Capture The Flag.

Based on an original submission from Jonathan Armani (MAINTAINER) with
several tweaks from me
This commit is contained in:
ajacoutot 2009-01-18 17:53:36 +00:00
parent af3ef287a9
commit 0e746fcb66
12 changed files with 415 additions and 0 deletions

62
games/teeworlds/Makefile Normal file
View File

@ -0,0 +1,62 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/01/18 17:53:36 ajacoutot Exp $
COMMENT = platform game featuring buggers equipped with weapons
V = 0.5.0
DISTNAME = teeworlds-${V}-src
PKGNAME = teeworlds-${V}
CATEGORIES = games
MAINTAINER = Jonathan Armani <dbd@asystant.net>
HOMEPAGE = http://www.teeworlds.com/
BAM_VERSION = 0.2.0
BAM_WRKSRC = ${WRKSRC}/bam-${BAM_VERSION}
BAM_TARGET = release
MASTER_SITES = http://www.teeworlds.com/files/
DISTFILES = ${DISTNAME}${EXTRACT_SUFX} bam-${BAM_VERSION}${EXTRACT_SUFX}
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB = GL GLU X11 c m pthread stdc++ z
LIB_DEPENDS = SDL::devel/sdl
MODULES = lang/python
NO_REGRESS = Yes
GAMEDIR = ${PREFIX}/share/teeworlds
SUBST_VARS = CC CXX CFLAGS
post-extract:
@mv ${WRKDIR}/bam-${BAM_VERSION} ${BAM_WRKSRC}
pre-configure:
${SUBST_CMD} ${WRKSRC}/src/engine/e_engine.c \
${WRKSRC}/scripts/make_src.py \
${WRKSRC}/scripts/font_installer.sh \
${WRKSRC}/default.bam \
${BAM_WRKSRC}/make_unix.sh \
${BAM_WRKSRC}/src/driver_gcc.bam \
${BAM_WRKSRC}/src/base.bam
# build bam executable - teeworlds own build system
pre-build:
cd ${BAM_WRKSRC} && ${SH} -v make_unix.sh
do-build:
cd ${WRKSRC} && CC=${CC} ${BAM_WRKSRC}/src/bam -v ${BAM_TARGET}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/teeworlds ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/teeworlds_srv ${PREFIX}/bin
${INSTALL_DATA_DIR} ${GAMEDIR}
cd ${WRKSRC}; tar cf - data | tar xf - -C ${GAMEDIR}
.include <bsd.port.mk>

10
games/teeworlds/distinfo Normal file
View File

@ -0,0 +1,10 @@
MD5 (bam-0.2.0.tar.gz) = 1O/nRZGnPBzsizTXb/0QSQ==
MD5 (teeworlds-0.5.0-src.tar.gz) = Ode11BwsclAgEhSkq2hE7Q==
RMD160 (bam-0.2.0.tar.gz) = AK8VHVMrsEUtgC54Lx95mr8SxMU=
RMD160 (teeworlds-0.5.0-src.tar.gz) = 1m3cUvKZRy7NrWTNgJTlZtjR68s=
SHA1 (bam-0.2.0.tar.gz) = mdhtt1D+GOpbJUk4UBIpKb0sZ0s=
SHA1 (teeworlds-0.5.0-src.tar.gz) = 58Rmc8NQdL9SdH3CWhfwkIYoG8w=
SHA256 (bam-0.2.0.tar.gz) = 72zdwd9HsNgQYmUDPvTlXmHeyr8ieaKs1/3wFmM8B1g=
SHA256 (teeworlds-0.5.0-src.tar.gz) = vYARxABmFo2Pqha6UqXn4N61ngNxEjw8Q0BIURDSdqo=
SIZE (bam-0.2.0.tar.gz) = 162342
SIZE (teeworlds-0.5.0-src.tar.gz) = 5890654

View File

@ -0,0 +1,10 @@
$OpenBSD: patch-bam-0_2_0_make_unix_sh,v 1.1.1.1 2009/01/18 17:53:36 ajacoutot Exp $
--- bam-0.2.0/make_unix.sh.orig Fri Jan 16 18:43:39 2009
+++ bam-0.2.0/make_unix.sh Fri Jan 16 18:44:16 2009
@@ -1,4 +1,4 @@
#!/bin/sh
-gcc -Wall -ansi -pedantic src/tools/txt2c.c -o src/tools/txt2c
+${CC} -Wall -ansi -pedantic src/tools/txt2c.c -o src/tools/txt2c
src/tools/txt2c src/base.bam src/driver_gcc.bam src/driver_cl.bam > src/internal_base.h
-gcc -Wall -ansi -pedantic src/lua/*.c src/*.c -o src/bam -I src/lua -lm -lpthread -O2 $*
+${CC} -Wall -ansi -pedantic src/lua/*.c src/*.c -o src/bam -I src/lua -lm -pthread ${CFLAGS} $*

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-bam-0_2_0_src_base_bam,v 1.1.1.1 2009/01/18 17:53:36 ajacoutot Exp $
--- bam-0.2.0/src/base.bam.orig Fri Jan 16 18:46:07 2009
+++ bam-0.2.0/src/base.bam Fri Jan 16 18:46:33 2009
@@ -589,7 +589,7 @@ end
@END]]--
function OptFindCompiler()
local check = function(option, settings)
- if ExecuteSilent("g++ -v") == 0 then
+ if ExecuteSilent("${CXX} -v") == 0 then
option.value = "gcc"
elseif ExecuteSilent("cl") == 0 then
option.value = "cl"

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-bam-0_2_0_src_driver_gcc_bam,v 1.1.1.1 2009/01/18 17:53:36 ajacoutot Exp $
--- bam-0.2.0/src/driver_gcc.bam.orig Fri Jan 16 18:44:47 2009
+++ bam-0.2.0/src/driver_gcc.bam Fri Jan 16 18:45:47 2009
@@ -82,8 +82,8 @@ end
function SetDriversGCC(settings)
if settings.cc then
settings.cc.extension = ".o"
- settings.cc.c_compiler = "gcc"
- settings.cc.cxx_compiler = "g++"
+ settings.cc.c_compiler = "${CC} ${CFLAGS}"
+ settings.cc.cxx_compiler = "${CXX} ${CFLAGS}"
settings.cc.DriverCTest = DriverCTest_GCC
settings.cc.DriverC = DriverC_GCC
settings.cc.DriverCXX = DriverCXX_GCC

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-default_bam,v 1.1.1.1 2009/01/18 17:53:36 ajacoutot Exp $
--- default.bam.orig Tue Jan 13 20:36:11 2009
+++ default.bam Fri Jan 16 18:41:00 2009
@@ -15,7 +15,7 @@ function Script(name)
if family == "windows" then
return str_replace(name, "/", "\\")
end
- return "python " .. name
+ return "${MODPY_BIN} " .. name
end
function CHash(output, ...)
@@ -132,7 +132,7 @@ function build(settings)
else
glfw_platform = "x11"
pa_platform = "unix"
- settings.link.libs:Add("pthread")
+ settings.link.flags:Add("-pthread")
end
elseif family == "windows" then
glfw_platform = "win32"

View File

@ -0,0 +1,8 @@
$OpenBSD: patch-scripts_font_installer_sh,v 1.1.1.1 2009/01/18 17:53:36 ajacoutot Exp $
--- scripts/font_installer.sh.orig Fri Jan 16 17:18:33 2009
+++ scripts/font_installer.sh Fri Jan 16 17:18:51 2009
@@ -1,3 +1,3 @@
echo Generating .fnts...
../../font_generator/a.out
-python ../scripts/font_converter.py default*.fnt
+${MODPY_BIN} ../scripts/font_converter.py default*.fnt

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-scripts_make_src_py,v 1.1.1.1 2009/01/18 17:53:36 ajacoutot Exp $
--- scripts/make_src.py.orig Fri Jan 16 17:17:44 2009
+++ scripts/make_src.py Fri Jan 16 17:18:15 2009
@@ -34,7 +34,7 @@ os.chdir(root_dir)
if 1:
os.system("svn export svn://svn.teeworlds.com/teeworlds/%s teeworlds" % svn_tree)
os.chdir("teeworlds")
- os.system("python scripts/make_release.py %s src" % version)
+ os.system("${MODPY_BIN} scripts/make_release.py %s src" % version)
os.chdir(root_dir)
for f in os.listdir("teeworlds"):
if "teeworlds" in f and "src" in f and (".zip" in f or ".tar.gz" in f):

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_engine_e_engine_c,v 1.1.1.1 2009/01/18 17:53:36 ajacoutot Exp $
--- src/engine/e_engine.c.orig Fri Jan 16 17:15:42 2009
+++ src/engine/e_engine.c Fri Jan 16 17:16:30 2009
@@ -13,7 +13,7 @@
#include "e_linereader.h"
/* compiled-in data-dir path */
-#define DATA_DIR "data"
+#define DATA_DIR "${PREFIX}/share/teeworlds/data"
static JOBPOOL hostlookuppool;
static int engine_find_datadir(char *argv0);

View File

@ -0,0 +1,3 @@
Teeworlds is a free online multiplayer game, available for all major
operating systems. Battle with up to 16 players in a variety of game
modes, including Team Deathmatch and Capture The Flag.

View File

@ -0,0 +1,7 @@
Please note that some users will need to set the following environment
variable to fix erratic mouse behaviour on their system:
export SDL_VIDEO_X11_DGAMOUSE=0
Users of ati video chipset will need to add the following line in
~/.teeworlds/settings.cfg:
gfx_noclip 1

244
games/teeworlds/pkg/PLIST Normal file
View File

@ -0,0 +1,244 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/01/18 17:53:36 ajacoutot Exp $
@bin bin/teeworlds
@bin bin/teeworlds_srv
share/teeworlds/
share/teeworlds/data/
share/teeworlds/data/audio/
share/teeworlds/data/audio/foley_body_impact-01.wv
share/teeworlds/data/audio/foley_body_impact-02.wv
share/teeworlds/data/audio/foley_body_impact-03.wv
share/teeworlds/data/audio/foley_body_splat-01.wv
share/teeworlds/data/audio/foley_body_splat-02.wv
share/teeworlds/data/audio/foley_body_splat-03.wv
share/teeworlds/data/audio/foley_body_splat-04.wv
share/teeworlds/data/audio/foley_dbljump-01.wv
share/teeworlds/data/audio/foley_dbljump-02.wv
share/teeworlds/data/audio/foley_dbljump-03.wv
share/teeworlds/data/audio/foley_foot_left-01.wv
share/teeworlds/data/audio/foley_foot_left-02.wv
share/teeworlds/data/audio/foley_foot_left-03.wv
share/teeworlds/data/audio/foley_foot_left-04.wv
share/teeworlds/data/audio/foley_foot_right-01.wv
share/teeworlds/data/audio/foley_foot_right-02.wv
share/teeworlds/data/audio/foley_foot_right-03.wv
share/teeworlds/data/audio/foley_foot_right-04.wv
share/teeworlds/data/audio/foley_land-01.wv
share/teeworlds/data/audio/foley_land-02.wv
share/teeworlds/data/audio/foley_land-03.wv
share/teeworlds/data/audio/foley_land-04.wv
share/teeworlds/data/audio/hook_attach-01.wv
share/teeworlds/data/audio/hook_attach-02.wv
share/teeworlds/data/audio/hook_attach-03.wv
share/teeworlds/data/audio/hook_loop-01.wv
share/teeworlds/data/audio/hook_loop-02.wv
share/teeworlds/data/audio/hook_noattach-01.wv
share/teeworlds/data/audio/hook_noattach-02.wv
share/teeworlds/data/audio/hook_noattach-03.wv
share/teeworlds/data/audio/sfx_ctf_cap_pl.wv
share/teeworlds/data/audio/sfx_ctf_drop.wv
share/teeworlds/data/audio/sfx_ctf_grab_en.wv
share/teeworlds/data/audio/sfx_ctf_grab_pl.wv
share/teeworlds/data/audio/sfx_ctf_rtn.wv
share/teeworlds/data/audio/sfx_hit_strong-01.wv
share/teeworlds/data/audio/sfx_hit_strong-02.wv
share/teeworlds/data/audio/sfx_hit_weak-01.wv
share/teeworlds/data/audio/sfx_hit_weak-02.wv
share/teeworlds/data/audio/sfx_hit_weak-03.wv
share/teeworlds/data/audio/sfx_msg-client.wv
share/teeworlds/data/audio/sfx_msg-server.wv
share/teeworlds/data/audio/sfx_pickup_arm-01.wv
share/teeworlds/data/audio/sfx_pickup_arm-02.wv
share/teeworlds/data/audio/sfx_pickup_arm-03.wv
share/teeworlds/data/audio/sfx_pickup_arm-04.wv
share/teeworlds/data/audio/sfx_pickup_gun.wv
share/teeworlds/data/audio/sfx_pickup_hrt-01.wv
share/teeworlds/data/audio/sfx_pickup_hrt-02.wv
share/teeworlds/data/audio/sfx_pickup_launcher.wv
share/teeworlds/data/audio/sfx_pickup_ninja.wv
share/teeworlds/data/audio/sfx_pickup_sg.wv
share/teeworlds/data/audio/sfx_skid-01.wv
share/teeworlds/data/audio/sfx_skid-02.wv
share/teeworlds/data/audio/sfx_skid-03.wv
share/teeworlds/data/audio/sfx_skid-04.wv
share/teeworlds/data/audio/sfx_spawn_wpn-01.wv
share/teeworlds/data/audio/sfx_spawn_wpn-02.wv
share/teeworlds/data/audio/sfx_spawn_wpn-03.wv
share/teeworlds/data/audio/vo_teefault_cry-01.wv
share/teeworlds/data/audio/vo_teefault_cry-02.wv
share/teeworlds/data/audio/vo_teefault_ninja-01.wv
share/teeworlds/data/audio/vo_teefault_ninja-02.wv
share/teeworlds/data/audio/vo_teefault_ninja-03.wv
share/teeworlds/data/audio/vo_teefault_ninja-04.wv
share/teeworlds/data/audio/vo_teefault_pain_long-01.wv
share/teeworlds/data/audio/vo_teefault_pain_long-02.wv
share/teeworlds/data/audio/vo_teefault_pain_short-01.wv
share/teeworlds/data/audio/vo_teefault_pain_short-02.wv
share/teeworlds/data/audio/vo_teefault_pain_short-03.wv
share/teeworlds/data/audio/vo_teefault_pain_short-04.wv
share/teeworlds/data/audio/vo_teefault_pain_short-05.wv
share/teeworlds/data/audio/vo_teefault_pain_short-06.wv
share/teeworlds/data/audio/vo_teefault_pain_short-07.wv
share/teeworlds/data/audio/vo_teefault_pain_short-08.wv
share/teeworlds/data/audio/vo_teefault_pain_short-09.wv
share/teeworlds/data/audio/vo_teefault_pain_short-10.wv
share/teeworlds/data/audio/vo_teefault_pain_short-11.wv
share/teeworlds/data/audio/vo_teefault_pain_short-12.wv
share/teeworlds/data/audio/vo_teefault_sledge-01.wv
share/teeworlds/data/audio/vo_teefault_sledge-02.wv
share/teeworlds/data/audio/vo_teefault_sledge-03.wv
share/teeworlds/data/audio/vo_teefault_spawn-01.wv
share/teeworlds/data/audio/vo_teefault_spawn-02.wv
share/teeworlds/data/audio/vo_teefault_spawn-03.wv
share/teeworlds/data/audio/vo_teefault_spawn-04.wv
share/teeworlds/data/audio/vo_teefault_spawn-05.wv
share/teeworlds/data/audio/vo_teefault_spawn-06.wv
share/teeworlds/data/audio/vo_teefault_spawn-07.wv
share/teeworlds/data/audio/wp_flump_explo-01.wv
share/teeworlds/data/audio/wp_flump_explo-02.wv
share/teeworlds/data/audio/wp_flump_explo-03.wv
share/teeworlds/data/audio/wp_flump_launch-01.wv
share/teeworlds/data/audio/wp_flump_launch-02.wv
share/teeworlds/data/audio/wp_flump_launch-03.wv
share/teeworlds/data/audio/wp_gun_fire-01.wv
share/teeworlds/data/audio/wp_gun_fire-02.wv
share/teeworlds/data/audio/wp_gun_fire-03.wv
share/teeworlds/data/audio/wp_hammer_hit-01.wv
share/teeworlds/data/audio/wp_hammer_hit-02.wv
share/teeworlds/data/audio/wp_hammer_hit-03.wv
share/teeworlds/data/audio/wp_hammer_swing-01.wv
share/teeworlds/data/audio/wp_hammer_swing-02.wv
share/teeworlds/data/audio/wp_hammer_swing-03.wv
share/teeworlds/data/audio/wp_ninja_attack-01.wv
share/teeworlds/data/audio/wp_ninja_attack-02.wv
share/teeworlds/data/audio/wp_ninja_attack-03.wv
share/teeworlds/data/audio/wp_ninja_attack-04.wv
share/teeworlds/data/audio/wp_ninja_hit-01.wv
share/teeworlds/data/audio/wp_ninja_hit-02.wv
share/teeworlds/data/audio/wp_ninja_hit-03.wv
share/teeworlds/data/audio/wp_ninja_hit-04.wv
share/teeworlds/data/audio/wp_noammo-01.wv
share/teeworlds/data/audio/wp_noammo-02.wv
share/teeworlds/data/audio/wp_noammo-03.wv
share/teeworlds/data/audio/wp_noammo-04.wv
share/teeworlds/data/audio/wp_noammo-05.wv
share/teeworlds/data/audio/wp_rifle_bnce-01.wv
share/teeworlds/data/audio/wp_rifle_bnce-02.wv
share/teeworlds/data/audio/wp_rifle_bnce-03.wv
share/teeworlds/data/audio/wp_rifle_fire-01.wv
share/teeworlds/data/audio/wp_rifle_fire-02.wv
share/teeworlds/data/audio/wp_rifle_fire-03.wv
share/teeworlds/data/audio/wp_shotty_fire-01.wv
share/teeworlds/data/audio/wp_shotty_fire-02.wv
share/teeworlds/data/audio/wp_shotty_fire-03.wv
share/teeworlds/data/audio/wp_switch-01.wv
share/teeworlds/data/audio/wp_switch-02.wv
share/teeworlds/data/audio/wp_switch-03.wv
share/teeworlds/data/blob.png
share/teeworlds/data/browse_icons.png
share/teeworlds/data/console.png
share/teeworlds/data/console_bar.png
share/teeworlds/data/debug_font.png
share/teeworlds/data/editor/
share/teeworlds/data/editor/background.png
share/teeworlds/data/editor/checker.png
share/teeworlds/data/editor/cursor.png
share/teeworlds/data/editor/entities.png
share/teeworlds/data/emoticons.png
share/teeworlds/data/fonts/
share/teeworlds/data/fonts/default_font10.png
share/teeworlds/data/fonts/default_font10.tfnt
share/teeworlds/data/fonts/default_font10_b.png
share/teeworlds/data/fonts/default_font11.png
share/teeworlds/data/fonts/default_font11.tfnt
share/teeworlds/data/fonts/default_font11_b.png
share/teeworlds/data/fonts/default_font12.png
share/teeworlds/data/fonts/default_font12.tfnt
share/teeworlds/data/fonts/default_font12_b.png
share/teeworlds/data/fonts/default_font13.png
share/teeworlds/data/fonts/default_font13.tfnt
share/teeworlds/data/fonts/default_font13_b.png
share/teeworlds/data/fonts/default_font14.png
share/teeworlds/data/fonts/default_font14.tfnt
share/teeworlds/data/fonts/default_font14_b.png
share/teeworlds/data/fonts/default_font15.png
share/teeworlds/data/fonts/default_font15.tfnt
share/teeworlds/data/fonts/default_font15_b.png
share/teeworlds/data/fonts/default_font16.png
share/teeworlds/data/fonts/default_font16.tfnt
share/teeworlds/data/fonts/default_font16_b.png
share/teeworlds/data/fonts/default_font17.png
share/teeworlds/data/fonts/default_font17.tfnt
share/teeworlds/data/fonts/default_font17_b.png
share/teeworlds/data/fonts/default_font18.png
share/teeworlds/data/fonts/default_font18.tfnt
share/teeworlds/data/fonts/default_font18_b.png
share/teeworlds/data/fonts/default_font19.png
share/teeworlds/data/fonts/default_font19.tfnt
share/teeworlds/data/fonts/default_font19_b.png
share/teeworlds/data/fonts/default_font20.png
share/teeworlds/data/fonts/default_font20.tfnt
share/teeworlds/data/fonts/default_font20_b.png
share/teeworlds/data/fonts/default_font36.png
share/teeworlds/data/fonts/default_font36.tfnt
share/teeworlds/data/fonts/default_font36_b.png
share/teeworlds/data/fonts/default_font8.png
share/teeworlds/data/fonts/default_font8.tfnt
share/teeworlds/data/fonts/default_font8_b.png
share/teeworlds/data/fonts/default_font9.png
share/teeworlds/data/fonts/default_font9.tfnt
share/teeworlds/data/fonts/default_font9_b.png
share/teeworlds/data/game.png
share/teeworlds/data/gui_cursor.png
share/teeworlds/data/gui_logo.png
share/teeworlds/data/mapres/
share/teeworlds/data/mapres/bg_cloud1.png
share/teeworlds/data/mapres/bg_cloud2.png
share/teeworlds/data/mapres/bg_cloud3.png
share/teeworlds/data/mapres/desert_main.png
share/teeworlds/data/mapres/desert_mountains.png
share/teeworlds/data/mapres/desert_sun.png
share/teeworlds/data/mapres/generic_unhookable.png
share/teeworlds/data/mapres/grass_doodads.png
share/teeworlds/data/mapres/grass_main.png
share/teeworlds/data/mapres/jungle_doodads.png
share/teeworlds/data/mapres/jungle_main.png
share/teeworlds/data/mapres/jungle_night.png
share/teeworlds/data/mapres/jungle_night2.png
share/teeworlds/data/mapres/moon.png
share/teeworlds/data/mapres/mountains.png
share/teeworlds/data/mapres/snow.png
share/teeworlds/data/mapres/stars.png
share/teeworlds/data/mapres/sun.png
share/teeworlds/data/mapres/winter_doodads.png
share/teeworlds/data/mapres/winter_main.png
share/teeworlds/data/maps/
share/teeworlds/data/maps/ctf1.map
share/teeworlds/data/maps/ctf2.map
share/teeworlds/data/maps/ctf3.map
share/teeworlds/data/maps/ctf4.map
share/teeworlds/data/maps/ctf5.map
share/teeworlds/data/maps/dm1.map
share/teeworlds/data/maps/dm2.map
share/teeworlds/data/maps/dm6.map
share/teeworlds/data/maps/dm7.map
share/teeworlds/data/maps/dm8.map
share/teeworlds/data/maps/dm9.map
share/teeworlds/data/particles.png
share/teeworlds/data/skins/
share/teeworlds/data/skins/bluekitty.png
share/teeworlds/data/skins/bluestripe.png
share/teeworlds/data/skins/brownbear.png
share/teeworlds/data/skins/cammo.png
share/teeworlds/data/skins/cammostripes.png
share/teeworlds/data/skins/coala.png
share/teeworlds/data/skins/default.png
share/teeworlds/data/skins/limekitty.png
share/teeworlds/data/skins/pinky.png
share/teeworlds/data/skins/redbopp.png
share/teeworlds/data/skins/redstripe.png
share/teeworlds/data/skins/saddo.png
share/teeworlds/data/skins/toptri.png
share/teeworlds/data/skins/twinbop.png
share/teeworlds/data/skins/twintri.png
share/teeworlds/data/skins/warpaint.png
share/teeworlds/data/skins/x_ninja.png