SUMMARY="A multiplayer-focused first-person shooter"
DESCRIPTION="
Quake 3 (also known as Q3A or Q3) is a fast paced first-person shooter based.

Warning: While the Quake 3 game engine was released under the GPL, this \
version requires a valid Quake 3 license code and the original Quake 3 CD \
(placed into ~/.q3a/baseq3 or ~/.q3a/demota depending on which Quake 3 media \
you have).
"
HOMEPAGE="http://www.idsoftware.com"
COPYRIGHT="Copyright (C) 1999-2005 Id Software, Inc."
LICENSE="GNU GPL v2"
SRC_URI="https://github.com/kallisti5/quake3/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="755fc8ea237bd6f296764c7e2ea84638797ec6ffd88a9e17a486a8ee1c666a95"
SRC_FILENAME="quake3-$portVersion.tar.gz"
REVISION="2"
ARCHITECTURES="x86_gcc2 x86"
SECONDARY_ARCHITECTURES="x86"

PROVIDES="
	quake3$secondaryArchSuffix = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix >= $haikuVersion
	lib:libGL$secondaryArchSuffix
	"
BUILD_REQUIRES="
	"
BUILD_PREREQUIRES="
	haiku${secondaryArchSuffix}_devel >= $haikuVersion
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	cmd:make
	cmd:nasm
	devel:libGL$secondaryArchSuffix
	"
SOURCE_DIR="quake3-$portVersion"

BUILD()
{
	cd code/beos
	make $jobArgs
}

INSTALL()
{
	mkdir -p $appsDir
	
	cp $(find code/beos/* -name 'Quake3') $appsDir/
	addAppDeskbarSymlink $appsDir/Quake3
}
