diff options
author | miwi <miwi@FreeBSD.org> | 2008-04-18 05:26:26 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2008-04-18 05:26:26 +0800 |
commit | 291018978cd7425eadfedb6eae6e99938269f587 (patch) | |
tree | 1a42d9336df05e89dc53b6b223836df70bd3fcc1 /games | |
parent | ecfc9d1a861a58932ad4899c23031493a6c7c9cb (diff) | |
download | freebsd-ports-gnome-291018978cd7425eadfedb6eae6e99938269f587.tar.gz freebsd-ports-gnome-291018978cd7425eadfedb6eae6e99938269f587.tar.zst freebsd-ports-gnome-291018978cd7425eadfedb6eae6e99938269f587.zip |
* Project name has changed (teewars to teeworlds)
* Update to 0.4.1
* Add USE_XORG, as the game is explicitly linked with X libs
* Connect to the build
PR: 122023
Submitted by: Dmitry Marakasov <amdmi3@amdmi3.ru> (maintainer)
Diffstat (limited to 'games')
-rw-r--r-- | games/Makefile | 1 | ||||
-rw-r--r-- | games/teeworlds/Makefile | 33 | ||||
-rw-r--r-- | games/teeworlds/distinfo | 12 | ||||
-rw-r--r-- | games/teeworlds/files/patch-default.bam | 63 | ||||
-rw-r--r-- | games/teeworlds/pkg-plist | 88 |
5 files changed, 143 insertions, 54 deletions
diff --git a/games/Makefile b/games/Makefile index d8efc5d40e32..41a8179293d9 100644 --- a/games/Makefile +++ b/games/Makefile @@ -753,6 +753,7 @@ SUBDIR += tbclock SUBDIR += tecnoballz SUBDIR += teewars + SUBDIR += teeworlds SUBDIR += teg SUBDIR += tenebrae SUBDIR += tetrinet diff --git a/games/teeworlds/Makefile b/games/teeworlds/Makefile index 7559d8c18589..542e85c3cb35 100644 --- a/games/teeworlds/Makefile +++ b/games/teeworlds/Makefile @@ -5,32 +5,37 @@ # $FreeBSD$ # -PORTNAME= teewars -PORTVERSION= 0.3.4 +PORTNAME= teeworlds +PORTVERSION= 0.4.1 CATEGORIES= games -MASTER_SITES= http://www.teewars.com/files/ \ - http://www.amdmi3.ru/distfiles/ +MASTER_SITES= http://www.amdmi3.ru/distfiles/ \ + http://www.teeworlds.com/files/ DISTNAME= ${PORTNAME}-${PORTVERSION}-src -DISTFILES= ${DISTNAME}${EXTRACT_SUFX} bam${EXTRACT_SUFX} +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} bam-${BAM_VERSION}${EXTRACT_SUFX} MAINTAINER= amdmi3@amdmi3.ru COMMENT= Platform game featuring buggers equipped with weapons -USE_ZIP= yes USE_PYTHON_BUILD= yes BAM= ${WRKDIR}/bam.bin +BAM_VERSION= 20080326 BAM_TARGET= release -OPTIONS= TEEWARS_SERVER_ONLY "Build dedicated server only" off +OPTIONS= TEEWORLDS_SERVER_ONLY "Build dedicated server only" off .include <bsd.port.pre.mk> -.if defined(WITH_TEEWARS_SERVER_ONLY) +.if ${OSVERSION} < 700042 +BROKEN= Does not compile +.endif + +.if defined(WITH_TEEWORLDS_SERVER_ONLY) BAM_TARGET= server_release PLIST_SUB+= CLIENT="@comment " .else LIB_DEPENDS+= portaudio.2:${PORTSDIR}/audio/portaudio2 +USE_XORG= x11 xxf86vm USE_GL= yes PLIST_SUB+= CLIENT="" .endif @@ -47,22 +52,22 @@ post-patch: ${XARGS} ${REINPLACE_CMD} -e 's|"data/|"${DATADIR}/|g' @${REINPLACE_CMD} -e 's|"data/|"${DATADIR}/|g' ${WRKSRC}/datasrc/* -# build bam executable - teewars own build system +# build bam executable - teeworlds own build system pre-build: cd ${WRKDIR}/bam && ${CC} ${CFLAGS} src/tools/txt2c.c -o src/tools/txt2c cd ${WRKDIR}/bam && src/tools/txt2c < src/base.bam > src/internal_base.h cd ${WRKDIR}/bam && ${CC} ${CFLAGS} src/lua/src/*.c src/lua/src/lib/*.c \ src/*.c -Isrc/lua/include -o ${BAM} -lm ${PTHREAD_LIBS} -# build teewars +# build teeworlds do-build: - cd ${WRKSRC} && ${BAM} ${BAM_TARGET} + cd ${WRKSRC} && ${BAM} -v ${BAM_TARGET} do-install: -.if !defined(WITH_TEEWARS_SERVER_ONLY) - ${INSTALL_PROGRAM} ${WRKSRC}/teewars ${PREFIX}/bin +.if !defined(WITH_TEEWORLDS_SERVER_ONLY) + ${INSTALL_PROGRAM} ${WRKSRC}/teeworlds ${PREFIX}/bin .endif - ${INSTALL_PROGRAM} ${WRKSRC}/teewars_srv ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/teeworlds_srv ${PREFIX}/bin ${MKDIR} ${DATADIR} @cd ${WRKSRC}/data && ${COPYTREE_SHARE} . ${DATADIR}/ diff --git a/games/teeworlds/distinfo b/games/teeworlds/distinfo index 2aa8a4040a79..76354bb25fdc 100644 --- a/games/teeworlds/distinfo +++ b/games/teeworlds/distinfo @@ -1,6 +1,6 @@ -MD5 (teewars-0.3.4-src.zip) = ed56470043b0dc73caa55a741282c761 -SHA256 (teewars-0.3.4-src.zip) = 8ed3152a9fc631dce0c4da7ca991728895e2660b217bb26063c02503a36c0861 -SIZE (teewars-0.3.4-src.zip) = 4438820 -MD5 (bam.zip) = 91065fcce9296b7259d71ef6aafe347a -SHA256 (bam.zip) = 616834108060c4f573d19dd087d6c4c5d5e40b8987002c9b9df089fb194fa71c -SIZE (bam.zip) = 475348 +MD5 (teeworlds-0.4.1-src.tar.gz) = d2977b5f46a83043b6e748999de7d5b8 +SHA256 (teeworlds-0.4.1-src.tar.gz) = 14d50351ffba0e6e38dc87a017fa869120dd7cfa957815531583285419b8fad2 +SIZE (teeworlds-0.4.1-src.tar.gz) = 5047200 +MD5 (bam-20080326.tar.gz) = 7eb70ccacd95d05319eef4a73e485e8e +SHA256 (bam-20080326.tar.gz) = 1103142f2a0297541021a75e3df7e4b4c4a71afcf31ca53b46844b90d026485e +SIZE (bam-20080326.tar.gz) = 124493 diff --git a/games/teeworlds/files/patch-default.bam b/games/teeworlds/files/patch-default.bam index b360144c23b0..48b8c61c5919 100644 --- a/games/teeworlds/files/patch-default.bam +++ b/games/teeworlds/files/patch-default.bam @@ -1,9 +1,12 @@ ---- default.bam.orig 2008-02-09 22:10:40.000000000 +0300 -+++ default.bam 2008-02-18 00:06:31.000000000 +0300 -@@ -173,19 +173,20 @@ - settings.cc.flags = "/wd4244" - else - settings.cc.flags = "-Wall" +--- default.bam.orig 2008-03-23 16:34:56.000000000 +0300 ++++ default.bam 2008-03-23 22:39:30.000000000 +0300 +@@ -207,14 +207,16 @@ + if platform == "macosx" then + settings.cc.flags = "-Wall -fno-exceptions" + else +- settings.cc.flags = "-Wall -fstack-protector -fstack-protector-all -fno-exceptions" ++ settings.cc.flags = settings.cc.flags .. " -Wall -fstack-protector -fstack-protector-all -fno-exceptions" + end - settings.linker.flags = "" + settings.linker.flags = "-L/usr/local/lib/portaudio2 -L/usr/local/lib -pthread" + settings.linker.libs:add("z") @@ -17,22 +20,39 @@ if family == "unix" then if platform == "macosx" then - glfw_platform = "macosx" - else - glfw_platform = "x11" +@@ -230,8 +232,6 @@ + else + pa_hostapi = "oss" + end +- - settings.linker.libs:add("pthread") end elseif family == "windows" then glfw_platform = "win32" -@@ -217,7 +218,6 @@ +@@ -263,11 +263,6 @@ + pa_settings.cc.includes:add("src/engine/external/portaudio/src/common") + pa_settings.cc.includes:add("src/engine/external/portaudio/src/os/" .. pa_platform) + +- portaudio = Compile(pa_settings, +- Collect("src/engine/external/portaudio/src/common/*.c"), +- Collect("src/engine/external/portaudio/src/os/" .. pa_platform .. "/*.c"), +- Collect("src/engine/external/portaudio/src/hostapi/" .. pa_hostapi .. "/*.c")) +- + -- build game components + engine_settings = settings:copy() + +@@ -277,9 +272,8 @@ + if platform == "macosx" then + engine_settings.cc.flags = "-Wall" else - engine_settings.cc.flags = "-Wall -pedantic-errors" +- engine_settings.cc.flags = "-Wall -pedantic-errors" ++ engine_settings.cc.flags = engine_settings.cc.flags .. " -Wall -pedantic-errors" end - engine_settings.linker.flags = "" end -- server -@@ -237,10 +237,11 @@ +@@ -299,10 +293,11 @@ client_settings.linker.frameworks:add("AudioToolbox") client_settings.linker.frameworks:add("AudioUnit") else @@ -45,27 +65,24 @@ end elseif family == "windows" then client_settings.linker.libs:add("opengl32.lib") -@@ -249,10 +250,8 @@ +@@ -311,7 +306,6 @@ end external_settings = settings:copy() - zlib = Compile(external_settings, Collect("src/engine/external/zlib/*.c")) wavpack = Compile(external_settings, Collect("src/engine/external/wavpack/*.c")) pnglite = Compile(external_settings, Collect("src/engine/external/pnglite/*.c")) -- portaudio = Compile(external_settings, Collect("src/engine/external/pa.c")) - - engine = Compile(engine_settings, Collect("src/engine/*.c")) - client = Compile(client_settings, Collect("src/engine/client/*.c")) -@@ -280,7 +279,7 @@ + +@@ -337,7 +331,7 @@ -- build client, server and master server - client_exe = Link(client_settings, "teewars", game_shared, game_client, -- engine, client, editor, glfw, portaudio, zlib, pnglite, wavpack, -+ engine, client, editor, glfw, pnglite, wavpack, + client_exe = Link(client_settings, "teeworlds", game_shared, game_client, +- engine, client, game_editor, glfw, portaudio, zlib, pnglite, wavpack, ++ engine, client, game_editor, glfw, pnglite, wavpack, client_link_other) - server_exe = Link(server_settings, "teewars_srv", engine, server, -@@ -326,7 +325,7 @@ + server_exe = Link(server_settings, "teeworlds_srv", engine, server, +@@ -383,7 +377,7 @@ release_settings.config_name = "release" release_settings.config_ext = "" release_settings.debug = 0 diff --git a/games/teeworlds/pkg-plist b/games/teeworlds/pkg-plist index b8659e82d595..140ae0437789 100644 --- a/games/teeworlds/pkg-plist +++ b/games/teeworlds/pkg-plist @@ -1,5 +1,5 @@ -%%CLIENT%%bin/teewars -bin/teewars_srv +%%CLIENT%%bin/teeworlds +bin/teeworlds_srv %%DATADIR%%/audio/foley_body_impact-01.wv %%DATADIR%%/audio/foley_body_impact-02.wv %%DATADIR%%/audio/foley_body_impact-03.wv @@ -49,6 +49,10 @@ bin/teewars_srv %%DATADIR%%/audio/sfx_pickup_launcher.wv %%DATADIR%%/audio/sfx_pickup_ninja.wv %%DATADIR%%/audio/sfx_pickup_sg.wv +%%DATADIR%%/audio/sfx_skid-01.wv +%%DATADIR%%/audio/sfx_skid-02.wv +%%DATADIR%%/audio/sfx_skid-03.wv +%%DATADIR%%/audio/sfx_skid-04.wv %%DATADIR%%/audio/sfx_spawn_wpn-01.wv %%DATADIR%%/audio/sfx_spawn_wpn-02.wv %%DATADIR%%/audio/sfx_spawn_wpn-03.wv @@ -110,28 +114,90 @@ bin/teewars_srv %%DATADIR%%/audio/wp_noammo-03.wv %%DATADIR%%/audio/wp_noammo-04.wv %%DATADIR%%/audio/wp_noammo-05.wv +%%DATADIR%%/audio/wp_rifle_bnce-01.wv +%%DATADIR%%/audio/wp_rifle_bnce-02.wv +%%DATADIR%%/audio/wp_rifle_bnce-03.wv +%%DATADIR%%/audio/wp_rifle_fire-01.wv +%%DATADIR%%/audio/wp_rifle_fire-02.wv +%%DATADIR%%/audio/wp_rifle_fire-03.wv %%DATADIR%%/audio/wp_shotty_fire-01.wv %%DATADIR%%/audio/wp_shotty_fire-02.wv %%DATADIR%%/audio/wp_shotty_fire-03.wv %%DATADIR%%/audio/wp_switch-01.wv %%DATADIR%%/audio/wp_switch-02.wv %%DATADIR%%/audio/wp_switch-03.wv -%%DATADIR%%/big_font.png %%DATADIR%%/browse_icons.png -%%DATADIR%%/checker.png -%%DATADIR%%/cloudmap.png +%%DATADIR%%/console.png +%%DATADIR%%/console_bar.png %%DATADIR%%/debug_font.png +%%DATADIR%%/editor/background.png +%%DATADIR%%/editor/checker.png +%%DATADIR%%/editor/cursor.png +%%DATADIR%%/editor/entities.png %%DATADIR%%/emoticons.png +%%DATADIR%%/fonts/default_font10.png +%%DATADIR%%/fonts/default_font10.tfnt +%%DATADIR%%/fonts/default_font10_b.png +%%DATADIR%%/fonts/default_font11.png +%%DATADIR%%/fonts/default_font11.tfnt +%%DATADIR%%/fonts/default_font11_b.png +%%DATADIR%%/fonts/default_font12.png +%%DATADIR%%/fonts/default_font12.tfnt +%%DATADIR%%/fonts/default_font12_b.png +%%DATADIR%%/fonts/default_font13.png +%%DATADIR%%/fonts/default_font13.tfnt +%%DATADIR%%/fonts/default_font13_b.png +%%DATADIR%%/fonts/default_font14.png +%%DATADIR%%/fonts/default_font14.tfnt +%%DATADIR%%/fonts/default_font14_b.png +%%DATADIR%%/fonts/default_font15.png +%%DATADIR%%/fonts/default_font15.tfnt +%%DATADIR%%/fonts/default_font15_b.png +%%DATADIR%%/fonts/default_font16.png +%%DATADIR%%/fonts/default_font16.tfnt +%%DATADIR%%/fonts/default_font16_b.png +%%DATADIR%%/fonts/default_font17.png +%%DATADIR%%/fonts/default_font17.tfnt +%%DATADIR%%/fonts/default_font17_b.png +%%DATADIR%%/fonts/default_font18.png +%%DATADIR%%/fonts/default_font18.tfnt +%%DATADIR%%/fonts/default_font18_b.png +%%DATADIR%%/fonts/default_font19.png +%%DATADIR%%/fonts/default_font19.tfnt +%%DATADIR%%/fonts/default_font19_b.png +%%DATADIR%%/fonts/default_font20.png +%%DATADIR%%/fonts/default_font20.tfnt +%%DATADIR%%/fonts/default_font20_b.png +%%DATADIR%%/fonts/default_font36.png +%%DATADIR%%/fonts/default_font36.tfnt +%%DATADIR%%/fonts/default_font36_b.png +%%DATADIR%%/fonts/default_font8.png +%%DATADIR%%/fonts/default_font8.tfnt +%%DATADIR%%/fonts/default_font8_b.png +%%DATADIR%%/fonts/default_font9.png +%%DATADIR%%/fonts/default_font9.tfnt +%%DATADIR%%/fonts/default_font9_b.png %%DATADIR%%/game.png %%DATADIR%%/gui_cursor.png %%DATADIR%%/gui_logo.png +%%DATADIR%%/mapres/desert_main.png +%%DATADIR%%/mapres/desert_mountains.png +%%DATADIR%%/mapres/desert_sun.png +%%DATADIR%%/mapres/grass_doodads.png +%%DATADIR%%/mapres/grass_main.png +%%DATADIR%%/mapres/moon.png +%%DATADIR%%/mapres/mountains.png +%%DATADIR%%/mapres/snow.png +%%DATADIR%%/mapres/stars.png +%%DATADIR%%/mapres/sun.png +%%DATADIR%%/mapres/winter_doodads.png +%%DATADIR%%/mapres/winter_main.png %%DATADIR%%/maps/ctf1.map %%DATADIR%%/maps/ctf2.map %%DATADIR%%/maps/dm1.map %%DATADIR%%/maps/dm2.map %%DATADIR%%/maps/dm6.map -%%DATADIR%%/moon.png -%%DATADIR%%/mountain_paralax.png +%%DATADIR%%/particles.png %%DATADIR%%/skins/bluekitty.png %%DATADIR%%/skins/bluestripe.png %%DATADIR%%/skins/brownbear.png @@ -140,7 +206,6 @@ bin/teewars_srv %%DATADIR%%/skins/coala.png %%DATADIR%%/skins/default.png %%DATADIR%%/skins/limekitty.png -%%DATADIR%%/skins/ninja.png %%DATADIR%%/skins/pinky.png %%DATADIR%%/skins/redbopp.png %%DATADIR%%/skins/redstripe.png @@ -149,10 +214,11 @@ bin/teewars_srv %%DATADIR%%/skins/twinbop.png %%DATADIR%%/skins/twintri.png %%DATADIR%%/skins/warpaint.png -%%DATADIR%%/snow.png -%%DATADIR%%/stars.png -%%DATADIR%%/sun.png +%%DATADIR%%/skins/x_ninja.png @dirrm %%DATADIR%%/skins @dirrm %%DATADIR%%/maps +@dirrm %%DATADIR%%/mapres +@dirrm %%DATADIR%%/fonts +@dirrm %%DATADIR%%/editor @dirrm %%DATADIR%%/audio @dirrm %%DATADIR%% |