1SUMMARY="An SDL implementation of the popular puzzle game 'Bejeweled'"
2DESCRIPTION="Gemz is an SDL implementation of the popular puzzle game \
3'Bejeweled'. The objective of this game is to swap one gem with an adjacent \
4gem to form a horizontal or vertical chain of three or more gems. Bonus \
5points are given when chains of more than three identical gems are formed and \
6when two chains are formed in one swap. Gems disappear when chains are formed \
7and gems fall from the top to fill in gaps. Sometimes chain reactions, called \
8cascades, are triggered, where chains are formed by the falling gems."
9HOMEPAGE="https://sourceforge.net/projects/gemz/"
10COPYRIGHT="2003-2013 Jonathan Bilodeau"
11LICENSE="GNU GPL v2"
12REVISION="3"
13SOURCE_URI="http://sourceforge.net/projects/gemz/files/gemz/Source/gemz-0.97.0.tgz/download"
14CHECKSUM_SHA256="8a61bf40e6e12d6764a1a6d4f99aec27f1c54a31f26ce09d13a6596a33d8ee5a"
15PATCHES="gemz-0.97.0.patch"
16
17ARCHITECTURES="?all x86_gcc2 x86"
18
19PROVIDES="
20	gemz = $portVersion
21	app:Gemz = $portVersion
22	"
23REQUIRES="
24	haiku
25	lib:libSDL_1.2
26	lib:libSDL_image_1.2
27	"
28
29BUILD_REQUIRES="
30	haiku_devel
31	devel:libSDL
32	devel:libSDL_image
33	"
34BUILD_PREREQUIRES="
35	cmd:gcc
36	cmd:make
37	"
38
39BUILD()
40{
41	make
42}
43
44INSTALL()
45{
46	mkdir -p $appsDir/gemz
47	cp -r fonts gfx tilesets $appsDir/gemz
48	cp gemz $appsDir/gemz/gemz
49
50	addAppDeskbarSymlink $appsDir/gemz/gemz "Gemz"
51}
52