1SUMMARY="A free advanced MasterMind clone"
2DESCRIPTION="ColorCode is a free advanced MasterMind clone with lots of \
3different game variants, from the very easy up to really challenging ones. \
4You can combine any color count from 2-10 with any column count from 2-5 and \
5allow or not pegs of the same color. Or you may select one of the 5 \
6predefined levels of difficulty. ColorCode has also a rather intelligent \
7built in MasterMind solver - so you can let the computer guess for you \
8(nope, he's not cheating - really)."
9HOMEPAGE="http://colorcode.laebisch.com/"
10COPYRIGHT="2009-2011 Dirk Laebisch"
11LICENSE="GNU GPL v3"
12REVISION="2"
13SOURCE_URI="http://colorcode.laebisch.com/download/ColorCode-$portVersion.tar.gz"
14CHECKSUM_SHA256="7c128db12af6ab11439eb710091b4a448100553a4d11d3a7c8dafdfbc57c1a85"
15SOURCE_DIR="ColorCode-$portVersion"
16ADDITIONAL_FILES="colorcode.rdef"
17
18ARCHITECTURES="all !x86_gcc2"
19SECONDARY_ARCHITECTURES="x86"
20
21PROVIDES="
22	colorcode$secondaryArchSuffix = $portVersion
23	app:ColorCode$secondaryArchSuffix = $portVersion
24	"
25REQUIRES="
26	haiku$secondaryArchSuffix
27	lib:libGL$secondaryArchSuffix
28	lib:libQt5Core$secondaryArchSuffix
29	lib:libQt5Gui$secondaryArchSuffix
30	lib:libQt5Widgets$secondaryArchSuffix
31	"
32
33BUILD_REQUIRES="
34	haiku${secondaryArchSuffix}_devel
35	devel:libQt5Core$secondaryArchSuffix
36	devel:libQt5Gui$secondaryArchSuffix
37	devel:libQt5Widgets$secondaryArchSuffix
38	"
39BUILD_PREREQUIRES="
40	cmd:gcc$secondaryArchSuffix
41	cmd:ld$secondaryArchSuffix
42	cmd:make
43	cmd:qmake$secondaryArchSuffix >= 5
44	cmd:xres
45	"
46
47BUILD()
48{
49	qmake
50	make
51}
52
53INSTALL()
54{
55	mkdir -p $appsDir
56	cp colorcode $appsDir/ColorCode
57
58	addResourcesToBinaries $portDir/additional-files/colorcode.rdef \
59		$appsDir/ColorCode
60
61	addAppDeskbarSymlink $appsDir/ColorCode ColorCode
62}
63