0
0
Fork 0
haikuports/haiku-games/criticalmass/criticalmass-2.2.recipe

56 lines
1.3 KiB
Bash

SUMMARY="A game of chain reactions taking place in a nuclear reactor"
DESCRIPTION="\
CriticalMass is a strategy game where your goal is to keep the reaction \
under control by carefully placing protons and creating chain reactions. \
It can be played with a friend or against the computer, \
with different AI levels."
HOMEPAGE="https://github.com/pulkomandy/critical-mass"
COPYRIGHT="1998 Hamish Carr
2011-2012 Adrien Destugues"
LICENSE="CriticalMass"
REVISION="1"
srcGitRev="f597cad218830451f2ec7f5985bef23020bf28ec"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="e53a980ec785ac14e67bf5d73013f2cd265cd7477315d1c36260fb72e97f6785"
SOURCE_FILENAME="criticalmass-$srcGitRev.tar.gz"
SOURCE_DIR="critical-mass-$srcGitRev"
PATCHES="criticalmass-$portVersion.patchset"
ARCHITECTURES="all ?x86"
PROVIDES="
criticalmass = $portVersion
app:criticalmass = $portVersion
"
REQUIRES="
haiku
lib:libGL
lib:libGLU
"
BUILD_REQUIRES="
haiku_devel
devel:libGL
devel:libGLU
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc
cmd:make
"
BUILD()
{
cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix -Wno-dev
make $jobArgs
}
INSTALL()
{
mkdir -p $appsDir
mkdir -p $documentationDir/criticalmass
cp -a Sources/CriticalMass $appsDir
cp -r Documentation/* $documentationDir/criticalmass
addAppDeskbarSymlink $appsDir/CriticalMass
}