/
criticalmass-2.2.recipe
53 lines (48 loc) · 1.25 KB
/
criticalmass-2.2.recipe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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"
commit="f597cad218830451f2ec7f5985bef23020bf28ec"
SOURCE_URI="$HOMEPAGE/archive/$commit.tar.gz"
SOURCE_DIR="critical-mass-$commit"
SOURCE_FILENAME="criticalamss-$commit.tar.gz"
CHECKSUM_SHA256="e53a980ec785ac14e67bf5d73013f2cd265cd7477315d1c36260fb72e97f6785"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
PROVIDES="
criticalmass = $portVersion
app:criticalmass = $portVersion
"
REQUIRES="
haiku
lib:libGL
"
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
}