1SUMMARY="Puzzle games based on hexagonal tiles"
2DESCRIPTION="Hex-a-Hop is a hexagonal tile-based puzzle game with one simple \
3goal: destroy all green tiles! There are infinite undos and no time limits -- \
4you just have to find a way to destroy all the green tiles and step on a safe \
5tile at the end.
6
7As you progress through the game, more types of tiles are introduced which \
8make things more difficult and interesting as you progress through the many \
9levels. You can use the infinite undo feature to retrace your steps if you \
10make a mistake."
11HOMEPAGE="https://hexahop.sourceforge.net"
12COPYRIGHT="2005-2007 Tom Beaumont"
13LICENSE="GNU GPL v2"
14REVISION="1"
15SOURCE_URI="https://downloads.sourceforge.net/project/hexahop/$portVersion/hex-a-hop-$portVersion.tar.gz"
16CHECKSUM_SHA256="80bf19d936a8430cab5bc468ee6827c38052e026c609eb7ece16317e7932a0d6"
17SOURCE_DIR="hex-a-hop-$portVersion"
18PATCHES="hex_a_hop-$portVersion.patchset"
19
20ARCHITECTURES="all !x86_gcc2"
21SECONDARY_ARCHITECTURES="x86"
22
23PROVIDES="
24	hex_a_hop$secondaryArchSuffix = $portVersion
25	app:hex_a_hop = $portVersion
26	"
27REQUIRES="
28	haiku$secondaryArchSuffix
29	lib:libSDL_1.2$secondaryArchSuffix
30	lib:libSDL_mixer_1.2$secondaryArchSuffix
31	lib:libSDL_ttf_2.0$secondaryArchSuffix
32	"
33
34BUILD_REQUIRES="
35	haiku${secondaryArchSuffix}_devel
36	devel:libSDL_1.2$secondaryArchSuffix
37	devel:libSDL_mixer_1.2$secondaryArchSuffix
38	devel:libSDL_ttf_2.0$secondaryArchSuffix
39	"
40BUILD_PREREQUIRES="
41	cmd:aclocal
42	cmd:autoheader
43	cmd:autoreconf
44	cmd:automake
45	cmd:awk
46	cmd:gcc$secondaryArchSuffix
47	cmd:libtoolize
48	cmd:make
49	"
50
51BUILD()
52{
53	libtoolize -fci
54	autoreconf -vfi
55	automake --add-missing
56	runConfigure --omit-dirs "binDir dataRootDir" \
57		./configure --bindir=$appsDir
58	make $jobArgs
59}
60
61INSTALL()
62{
63	make install
64	mv $appsDir/hex-a-hop $appsDir/Hex-a-hop
65	addAppDeskbarSymlink $appsDir/Hex-a-hop
66}
67