Files
haikuports/games-puzzle/ltris/ltris-1.0.19.recipe
2016-02-17 14:39:36 -05:00

59 lines
1.3 KiB
Bash

SUMMARY="A tetris clone"
DESCRIPTION="LTris is a tetris clone: differently shaped blocks are falling down the \
rectangular playing field and can be moved sideways or rotated by 90 degree \
units with the aim of building lines without gaps which then disappear \
(causing any block above the deleted line to fall down)."
HOMEPAGE="http://lgames.sourceforge.net/"
COPYRIGHT="2002-2011 Michael Speck"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="http://sourceforge.net/projects/lgames/files/ltris/ltris-1.0.19.tar.gz"
CHECKSUM_SHA256="8f6a9e7719d22004aee153db29ffd9ca41c7a6cd87fc791591994eecc2e625a1"
PATCHES="ltris-1.0.19.patchset"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
PROVIDES="
ltris = $portVersion
cmd:ltris = $portVersion
"
REQUIRES="
haiku
lib:libsdl
lib:libsdl_mixer
lib:libintl
"
BUILD_REQUIRES="
haiku_devel
devel:libsdl
devel:libsdl_mixer
devel:libintl
"
BUILD_PREREQUIRES="
cmd:make
cmd:gcc
cmd:ld
cmd:libtoolize
"
BUILD()
{
libtoolize --force --copy --install
LDFLAGS=-lintl runConfigure ./configure
make $jobArgs
addResourcesToBinaries LTris.rdef src/ltris
}
INSTALL()
{
make install
# Clean up some unnecessary things from the package
rm $localStateDir/ltris.hscr
rm -rf $dataDir/applications
rm -rf $dataDir/icons
addAppDeskbarSymlink $binDir/ltris LTris
}