mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
65
games-strategy/netpanzer/netpanzer-0.8.6.recipe
Normal file
65
games-strategy/netpanzer/netpanzer-0.8.6.recipe
Normal file
@@ -0,0 +1,65 @@
|
||||
SUMMARY="online multiplayer isometric tank game"
|
||||
DESCRIPTION="netPanzer is an isometric view real-time tactical game designed \
|
||||
for play across the Internet and over LAN systems. One on one games are \
|
||||
possible via direct connect or modem. netPanzer is designed for FAST ACTION \
|
||||
combat -- it is not another resource management clone. In fact, there aren't \
|
||||
any resources at all. Each player will have many units of different types at \
|
||||
their disposal.
|
||||
|
||||
Players can fight until their units are destroyed -- then respawn and keep on \
|
||||
going. The game is real-time, but it's based on quick tactical action and unit \
|
||||
management. Battles progress quickly and constantly; in fact, they never let \
|
||||
up. There is no stop in the action because there is no waiting for resources \
|
||||
to be collected and converted into weaponry. Players can join or leave \
|
||||
multiplayer games at any time."
|
||||
REVISION="1"
|
||||
HOMEPAGE="http://www.netpanzer.info/"
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="1999 Pyrosoft, 2007-2015 NetPanzer developers"
|
||||
ARCHITECTURES=""
|
||||
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
||||
# x86_gcc2 is fine as primary target architecture as long as we're building
|
||||
# for a different secondary architecture.
|
||||
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
|
||||
fi
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
SRC_URI="svn://svn.code.sf.net/p/netpanzerfp/code/trunk/netpanzer#1450"
|
||||
PATCHES="netpanzer-$portVersion.patchset"
|
||||
|
||||
PROVIDES="
|
||||
netpanzer = $portVersion
|
||||
cmd:netpanzer$secondaryArchSuffix
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libphysfs$secondaryArchSuffix
|
||||
lib:libSDL_1.2$secondaryArchSuffix
|
||||
lib:libSDL_mixer_1.2$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libsdl$secondaryArchSuffix
|
||||
devel:libsdl_mixer$secondaryArchSuffix
|
||||
devel:libphysfs$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:scons
|
||||
cmd:svnversion
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
scons with_physfs=physfs datadir=$dataDir/netpanzer $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $dataDir/netpanzer $binDir
|
||||
cp -r cache maps pics powerups scripts sound units wads $dataDir/netpanzer
|
||||
cp netpanzer $binDir
|
||||
}
|
||||
34
games-strategy/netpanzer/patches/netpanzer-0.8.6.patchset
Normal file
34
games-strategy/netpanzer/patches/netpanzer-0.8.6.patchset
Normal file
@@ -0,0 +1,34 @@
|
||||
From 40ea57fdd0aab9b658adf7c4584103789785dbd5 Mon Sep 17 00:00:00 2001
|
||||
From: Adrien Destugues <pulkomandy@gmail.com>
|
||||
Date: Thu, 11 Jun 2015 01:54:41 +0200
|
||||
Subject: Haiku hacks.
|
||||
|
||||
|
||||
diff --git a/SConstruct b/SConstruct
|
||||
index bb8279e..a61b0ad 100644
|
||||
--- a/SConstruct
|
||||
+++ b/SConstruct
|
||||
@@ -244,6 +244,7 @@ else:
|
||||
# note: for some magic reason, now doesn't need to put the full path for
|
||||
# SDL_mixer when using mingw crosscompilation
|
||||
env.Append( LIBS = ['SDL_mixer' ] )
|
||||
+ env.Append( LIBS = ['network' ] )
|
||||
|
||||
################################################################
|
||||
# Makes libs
|
||||
diff --git a/src/Lib/Network/SocketSet.hpp b/src/Lib/Network/SocketSet.hpp
|
||||
index 1cefe1f..1b9c730 100644
|
||||
--- a/src/Lib/Network/SocketSet.hpp
|
||||
+++ b/src/Lib/Network/SocketSet.hpp
|
||||
@@ -22,6 +22,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#include "SocketBase.hpp"
|
||||
#include "Util/NoCopy.hpp"
|
||||
|
||||
+#include <sys/select.h>
|
||||
+
|
||||
namespace network
|
||||
{
|
||||
|
||||
--
|
||||
2.2.2
|
||||
|
||||
Reference in New Issue
Block a user