Files
haikuports/games-rpg/fheroes2/fheroes2-r3182.recipe
Humdinger 97cd269925 De-Lint recipes.
*	fastdep
	Removed "." from SUMMARY.
	Minor cosmetics.

*	ffmpeg
	Removed "." from SUMMARY.

*	fheroes
	Removed "." from SUMMARY.

*	filecropper
	Removed "." and improved SUMMARY.
	Use g++ instead of gcc.

*	flex
	Removed "." from SUMMARY.
	Moved haiku_devel into BUILD_REQUIRES.
	Minor cosmetics.

*	fontforge
	Removed "." from SUMMARY.
	Minor cosmetics.

*	fossil
	Shortened and improved SUMMARY/DESCRIPTION.

*	fpc
	Use same SUMMARY/DESCRIPTION in the non-BEP recipes.

*	freetype
	Minor cosmetics.
	(The PATCHES is commented out on purpose, enabling
	subpixel rendering and hinting)

*	ftgl
	Removed "." from SUMMARY.
	Sorted _devel block to the top.
2015-07-19 19:18:11 +02:00

77 lines
2.3 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="http://sourceforge.net/projects/fheroes2/"
LICENSE="GNU GPL v2"
COPYRIGHT="2006-2013 Andrey Afletdinov"
SOURCE_URI="https://sourceforge.net/projects/fheroes2/files/fheroes2/fheroes2-src-r3182.tgz/download"
CHECKSUM_SHA256="1a64dafc5b9e6c37683509f151fa7fdbc6fe0ad95da437a15d275f24b93bda2e"
REVISION="1"
SOURCE_DIR="fheroes-src"
ARCHITECTURES="x86 ?x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture.
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
else
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
fi
SECONDARY_ARCHITECTURES="x86"
PATCHES="fheroes2-r3182.patch"
PROVIDES="
fheroes2$secondaryArchSuffix = $portVersion
app:fheroes2$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libsdl$secondaryArchSuffix
lib:libogg$secondaryArchSuffix
lib:libsdl_image$secondaryArchSuffix
lib:libsdl_mixer$secondaryArchSuffix
lib:libsdl_net$secondaryArchSuffix
lib:libsdl_ttf$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libpng$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libz$secondaryArchSuffix
lib:libfreetype$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libsdl$secondaryArchSuffix
devel:libogg$secondaryArchSuffix
devel:libsdl_image$secondaryArchSuffix
devel:libsdl_mixer$secondaryArchSuffix
devel:libsdl_net$secondaryArchSuffix
devel:libsdl_ttf$secondaryArchSuffix
devel:libgettextlib$secondaryArchSuffix
devel:libpng$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
devel:libz$secondaryArchSuffix
devel:libfreetype$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:libpng_config$secondaryArchSuffix
"
BUILD()
{
make
}
INSTALL()
{
fhDir=$appsDir/fheroes2/
mkdir -p $fhDir
cp -rf data files image maps README fheroes2* $fhDir
addAppDeskbarSymlink $fhDir/fheroes2 "Free Heroes 2"
}