armagetronad: add recipe for version 0.2.8.3.4

This commit is contained in:
Sergei Reznikov
2018-11-23 16:41:52 +03:00
parent 3ccf801dac
commit 689e68290a
2 changed files with 108 additions and 0 deletions

View File

@@ -0,0 +1,86 @@
SUMMARY="Fast-paced 3D lightcycle game based on Tron"
DESCRIPTION="Armagetron is a multiplayer game in 3d that attempts to emulate \
and expand on the lightcycle sequence from the movie Tron. It's an old school \
arcade game slung into the 21st century. Highlights include a customizable \
playing arena, HUD, unique graphics, and AI bots. For the more advanced player \
there are new game modes and a wide variety of physics settings to tweak as \
well."
HOMEPAGE="http://www.armagetronad.org/"
COPYRIGHT="2007-2016 OSS Armagetronad Team"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://launchpad.net/armagetronad/0.2.8/$portVersion/+download/armagetronad-$portVersion.src.tar.gz"
CHECKSUM_SHA256="446af57c614ed28b4aa1d5a0d818c9d67a621bf7832b9276c3029c0f5006fedd"
PATCHES="armagetronad-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 ?x86_64"
SECONDARY_ARCHITECTURES="?x86"
GLOBAL_WRITABLE_FILES="
settings/games/armagetronad/aiplayers.cfg keep-old
settings/games/armagetronad/default.cfg keep-old
settings/games/armagetronad/examples/breakfast_in_hell.cfg keep-old
settings/games/armagetronad/examples/cvs_test/fortress_complete.cfg keep-old
settings/games/armagetronad/examples/cvs_test/fortress_physics.cfg keep-old
settings/games/armagetronad/examples/cvs_test/fortress_politics.cfg keep-old
settings/games/armagetronad/examples/cvs_test/fortress_scoring.cfg keep-old
settings/games/armagetronad/examples/cvs_test/sumo_complete.cfg keep-old
settings/games/armagetronad/examples/death_zone.cfg keep-old
settings/games/armagetronad/examples/fortress_soccer.cfg keep-old
settings/games/armagetronad/examples/single_use_turbo.cfg keep-old
settings/games/armagetronad/examples/teamsumo.cfg keep-old
settings/games/armagetronad/master.srv keep-old
settings/games/armagetronad/rc.config keep-old
settings/games/armagetronad/settings.cfg keep-old
settings/games/armagetronad/settings_authentication.cfg keep-old
settings/games/armagetronad/settings_dedicated.cfg keep-old
settings/games/armagetronad/settings_visual.cfg keep-old
settings/games/armagetronad/subcultures.srv keep-old
"
PROVIDES="
armagetronad$secondaryArchSuffix = $portVersion
cmd:armagetronad$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libGLU$secondaryArchSuffix
lib:libjpeg$secondaryArchSuffix
lib:libpng$secondaryArchSuffix
lib:libsdl_1.2$secondaryArchSuffix
lib:libSDL_image_1.2$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libGL$secondaryArchSuffix
devel:libGLU$secondaryArchSuffix
devel:libjpeg$secondaryArchSuffix
devel:libpng$secondaryArchSuffix
devel:libsdl_1.2$secondaryArchSuffix
devel:libSDL_image_1.2$secondaryArchSuffix
devel:libxml2$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
libtoolize -fci
LDFLAGS=-lnetwork runConfigure ./configure --disable-dependency-tracking
make $jobArgs
}
INSTALL()
{
make install
}

View File

@@ -0,0 +1,22 @@
From f086484b5aba1390f0a71e7349559899856e8cb2 Mon Sep 17 00:00:00 2001
From: Sergei Reznikov <diver@gelios.net>
Date: Fri, 23 Nov 2018 15:17:26 +0300
Subject: Add missing include
diff --git a/src/network/nSocket.cpp b/src/network/nSocket.cpp
index 29228fb..4434281 100644
--- a/src/network/nSocket.cpp
+++ b/src/network/nSocket.cpp
@@ -45,7 +45,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <errno.h>
#include <stdlib.h>
#include <vector>
-
+#include <sys/select.h>
#ifndef WIN32
#include <arpa/inet.h>
#include <netinet/in_systm.h>
--
2.19.1