0
0
Fork 0
haikuports/games-strategy/wesnoth/wesnoth-1.12.6.recipe

101 lines
3.6 KiB
Bash

SUMMARY="Turn-based tactical strategy game with a high fantasy theme"
DESCRIPTION="Build up a great army, gradually turning raw recruits into \
hardened veterans. In later games, recall your toughest warriors and form a \
deadly host whom none can stand against! Choose units from a large pool of \
specialists, and hand-pick a force with the right strengths to fight well on \
different terrains against all manner of opposition.
Wesnoth has many different sagas waiting to be played. Fight to regain the \
throne of Wesnoth, of which you are the legitimate heir... step into the \
boots of a young officer sent to guard a not-so-sleepy frontier outpost... \
lead a brutal quest to unite the orcish tribes... vanquish a horde of undead \
warriors unleashed by a foul necromancer, who also happens to have taken your \
brother hostage... guide a band of elvish survivors in an epic quest to find \
a new home... get revenge on the orcs by using the foul art of necromancy...
There are at least two hundred unit types, sixteen races, six major factions, \
and hundreds of years of history. The world of Wesnoth is absolutely huge and \
only limited by your creativity — make your own custom units, create your own \
maps, and write your own scenarios or even full-blown campaigns. You can also \
challenge up to eight friends—or strangers—and fight in epic multiplayer \
fantasy battles."
HOMEPAGE="http://wesnoth.org/"
COPYRIGHT="2003-2015 The Battle for Wesnoth"
LICENSE="GNU GPL v2"
REVISION="3"
SOURCE_URI="http://sourceforge.net/projects/wesnoth/files/wesnoth-1.12/wesnoth-$portVersion/wesnoth-$portVersion.tar.bz2"
CHECKSUM_SHA256="a50f384cead15f68f31cfa1a311e76a12098428702cb674d3521eb169eb92e4e"
PATCHES="wesnoth-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
wesnoth$secondaryArchSuffix
cmd:wesnoth
cmd:wesnothd
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libboost_filesystem$secondaryArchSuffix
lib:libboost_iostreams$secondaryArchSuffix
lib:libboost_locale$secondaryArchSuffix
lib:libboost_program_options$secondaryArchSuffix
lib:libboost_regex$secondaryArchSuffix
lib:libboost_system$secondaryArchSuffix
lib:libcairo$secondaryArchSuffix
lib:libfontconfig$secondaryArchSuffix
lib:libfreetype$secondaryArchSuffix
lib:libfribidi$secondaryArchSuffix
lib:libglib_2.0$secondaryArchSuffix
lib:libgobject_2.0$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libpangocairo_1.0$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:libvorbisfile$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libboost_filesystem$secondaryArchSuffix
devel:libcairo$secondaryArchSuffix
devel:libfontconfig$secondaryArchSuffix
devel:libfreetype$secondaryArchSuffix
devel:libfribidi$secondaryArchSuffix
devel:libglib_2.0$secondaryArchSuffix
devel:libgraphite2$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
devel:libpangocairo_1.0$secondaryArchSuffix
devel:libsdl$secondaryArchSuffix
devel:libsdl_image$secondaryArchSuffix
devel:libsdl_mixer$secondaryArchSuffix
devel:libsdl_net$secondaryArchSuffix
devel:libsdl_ttf$secondaryArchSuffix
devel:libvorbisfile$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
mkdir -p build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$prefix -DDATAROOTDIR=$dataDir \
-DENABLE_DESKTOP_ENTRY=OFF -DMANDIR=$manDir -DDOCDIR=$docDir
make $jobArgs
}
INSTALL()
{
cd build
make install
}