1SUMMARY="A tetris clone"
2DESCRIPTION="LTris is a tetris clone: differently shaped blocks are falling down the \
3rectangular playing field and can be moved sideways or rotated by 90 degree \
4units with the aim of building lines without gaps which then disappear \
5(causing any block above the deleted line to fall down)."
6HOMEPAGE="http://lgames.sourceforge.net/"
7COPYRIGHT="2002-2011 Michael Speck"
8LICENSE="GNU GPL v2"
9REVISION="3"
10SOURCE_URI="http://sourceforge.net/projects/lgames/files/ltris/ltris-1.0.19.tar.gz"
11CHECKSUM_SHA256="8f6a9e7719d22004aee153db29ffd9ca41c7a6cd87fc791591994eecc2e625a1"
12PATCHES="ltris-1.0.19.patchset"
13
14ARCHITECTURES="all ?x86"
15
16PROVIDES="
17	ltris = $portVersion
18	app:LTris = $portVersion
19	"
20REQUIRES="
21	haiku
22	lib:libintl
23	lib:libSDL_1.2
24	lib:libSDL_mixer_1.2
25	"
26
27BUILD_REQUIRES="
28	haiku_devel
29	devel:libintl
30	devel:libSDL
31	devel:libSDL_mixer
32	"
33BUILD_PREREQUIRES="
34	cmd:aclocal
35	cmd:autoreconf
36	cmd:gcc
37	cmd:ld
38	cmd:libtoolize
39	cmd:make
40	"
41
42BUILD()
43{
44	autoreconf -vfi
45	LDFLAGS=-lintl runConfigure --omit-dirs binDir ./configure \
46		--bindir=$appsDir
47	make $jobArgs
48}
49
50INSTALL()
51{
52	make install
53	mv $appsDir/ltris $appsDir/LTris
54
55	# Clean up some unnecessary things from the package
56	rm -rf $localStateDir
57	rm -rf $dataDir/{applications,icons}
58
59	addResourcesToBinaries LTris.rdef $appsDir/LTris
60
61	addAppDeskbarSymlink $appsDir/LTris LTris
62}
63