Files
haikuports/games-rpg/fheroes2/fheroes2-r3279.recipe
2020-01-12 21:53:21 +01:00

74 lines
2.1 KiB
Bash

SUMMARY="Free implementation of Heroes of the Might and Magic II engine"
DESCRIPTION="Free implementation of Heroes of the Might and Magic II engine. \
SDL is used. Free Heroes 2 is a turn based strategy video game.
The original game was voted the sixth best PC game of all time by PC Gamer \
magazine in May 1997."
HOMEPAGE="https://sourceforge.net/projects/fheroes2/"
COPYRIGHT="2006-2015 Andrey Afletdinov"
LICENSE="GNU GPL v2"
REVISION="2"
SOURCE_URI="https://sourceforge.net/code-snapshots/svn/f/fh/fheroes2/code/fheroes2-code-$portVersion-trunk.zip"
CHECKSUM_SHA256="250bf73ce8f4b1ab69b3d63ecd0727e10196f86d5e42b34bae78ce574e34c3c1"
SOURCE_DIR="fheroes2-code-$portVersion-trunk"
PATCHES="fheroes2-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
fheroes2$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libfreetype$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libogg$secondaryArchSuffix
lib:libpng16$secondaryArchSuffix
lib:libSDL_1.2$secondaryArchSuffix
lib:libSDL_image_1.2$secondaryArchSuffix
lib:libSDL_mixer_1.2$secondaryArchSuffix
lib:libSDL_net_1.2$secondaryArchSuffix
lib:libSDL_ttf_2.0$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libfreetype$secondaryArchSuffix
devel:libgettextlib$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
devel:libogg$secondaryArchSuffix
devel:libpng16$secondaryArchSuffix
devel:libSDL_1.2$secondaryArchSuffix
devel:libSDL_image_1.2$secondaryArchSuffix
devel:libSDL_mixer_1.2$secondaryArchSuffix
devel:libSDL_net_1.2$secondaryArchSuffix
devel:libSDL_ttf_2.0$secondaryArchSuffix
devel:libvorbis$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"
BUILD()
{
cd fheroes2
make $jobArgs
}
INSTALL()
{
mkdir -p $appsDir/FHeroes2
cd fheroes2
cp -rf fheroes2* README $appsDir/FHeroes2
cp -rf files $appsDir/FHeroes2
mv $appsDir/FHeroes2/fheroes2 "$appsDir/FHeroes2/Free Heroes 2"
addAppDeskbarSymlink "$appsDir/FHeroes2/Free Heroes 2"
}