0
0
Fork 0
haikuports/games-puzzle/colorcode/colorcode-0.8.5.recipe

63 lines
1.7 KiB
Bash

SUMMARY="A free advanced MasterMind clone"
DESCRIPTION="ColorCode is a free advanced MasterMind clone with lots of \
different game variants, from the very easy up to really challenging ones. \
You can combine any color count from 2-10 with any column count from 2-5 and \
allow or not pegs of the same color. Or you may select one of the 5 \
predefined levels of difficulty. ColorCode has also a rather intelligent \
built in MasterMind solver - so you can let the computer guess for you \
(nope, he's not cheating - really)."
HOMEPAGE="http://colorcode.laebisch.com/"
COPYRIGHT="2009-2011 Dirk Laebisch"
LICENSE="GNU GPL v3"
REVISION="2"
SOURCE_URI="http://colorcode.laebisch.com/download/ColorCode-$portVersion.tar.gz"
CHECKSUM_SHA256="7c128db12af6ab11439eb710091b4a448100553a4d11d3a7c8dafdfbc57c1a85"
SOURCE_DIR="ColorCode-$portVersion"
ADDITIONAL_FILES="colorcode.rdef"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
colorcode$secondaryArchSuffix = $portVersion
app:ColorCode$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libQt5Core$secondaryArchSuffix
devel:libQt5Gui$secondaryArchSuffix
devel:libQt5Widgets$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:qmake$secondaryArchSuffix >= 5
cmd:xres
"
BUILD()
{
qmake
make
}
INSTALL()
{
mkdir -p $appsDir
cp colorcode $appsDir/ColorCode
addResourcesToBinaries $portDir/additional-files/colorcode.rdef \
$appsDir/ColorCode
addAppDeskbarSymlink $appsDir/ColorCode ColorCode
}