Files
haikuports/games-action/openarena/openarena-0.8.8.recipe
Michael Lotz a43c394c4d Explicitly reference all additional files.
Not referencing them caused them to be missing from the source packages.

This also moves all files that were in different dirs under the common
additional-files dir.
2015-12-20 20:05:05 +01:00

64 lines
1.9 KiB
Bash

SUMMARY="Open-source replacement for Quake 3 Arena"
DESCRIPTION="OpenArena is a free and open-source first-person shooter (FPS) computer game based \
heavily on the Quake III Arena-style deathmatch. The OpenArena project was established on August \
19, 2005, the day after the id Tech 3 GPL source code was released."
HOMEPAGE="http://openarena.ws/"
COPYRIGHT="OpenArena Team"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="http://sourceforge.net/projects/oarena/files/src/openarena-engine-source-$portVersion.tar.bz2"
SOURCE_DIR="openarena-engine-source-$portVersion"
CHECKSUM_SHA256="95aa500cb7e42e57fb1f6db7b97a254168f4fa2e3676d6cdc33180b69fde0e77"
PATCHES="openarena-$portVersion.patchset"
ADDITIONAL_FILES="openarena.rdef"
ARCHITECTURES="!x86_gcc2 ?x86_64 ?x86"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
openarena = $portVersion
app:OpenArena
"
#mesa_swrast is necessary, as other renderers cause game to crash
REQUIRES="
haiku$secondaryArchSuffix
mesa${secondaryArchSuffix}_swrast
lib:libGL$secondaryArchSuffix
lib:libogg$secondaryArchSuffix
lib:libSDL$secondaryArchSuffix
lib:libvorbis$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcurl$secondaryArchSuffix
devel:libGL$secondaryArchSuffix
devel:libglu$secondaryArchSuffix
devel:libogg$secondaryArchSuffix
devel:libopenal$secondaryArchSuffix
devel:libSDL$secondaryArchSuffix
devel:libvorbis$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:install
cmd:ld$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:which
"
BUILD()
{
make $jobArgs USE_LOCAL_HEADERS=0
}
INSTALL()
{
cd build/release*
mkdir -p $appsDir/OpenArena
cp openarena* $appsDir/OpenArena/OpenArena
cp oa_ded* $appsDir/OpenArena/OpenArena_dedicated
addResourcesToBinaries $portDir/additional-files/openarena.rdef \
$appsDir/OpenArena/OpenArena
addAppDeskbarSymlink $appsDir/OpenArena/OpenArena OpenArena
}