Files
haikuports/games-engines/fife/fife-0.4.0~20150801.recipe

79 lines
2.4 KiB
Bash

SUMMARY="A free, open-source cross-platform game engine"
DESCRIPTION="FIFE is a free, open-source cross-platform game engine. It \
features hardware-accelerated 2D graphics, integrated GUI, audio support, \
lighting, map editor supporting top-down and isometric maps, pathfinding, \
virtual filesystem and more!"
HOMEPAGE="http://www.fifengine.net/"
COPYRIGHT="2003-2015 FIFE"
LICENSE="GNU LGPL v2.1"
REVISION="1"
SOURCE_URI="https://github.com/fifengine/fifengine/archive/50d2f7cf9a5d5433102c32851e587e3e9142d2e0.tar.gz"
CHECKSUM_SHA256="5ed17fff9b9892ad4b6ef0500b314b4428c8c60dd2cf50669a62527923cfb519"
SOURCE_DIR="fifengine-50d2f7cf9a5d5433102c32851e587e3e9142d2e0"
PATCHES="fife-$portVersion.patchset"
ARCHITECTURES="x86 x86_64"
SECONDARY_ARCHITECTURES="!x86" # Would need hybrid python?
PROVIDES="
fife$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
python
lib:libboost_filesystem$secondaryArchSuffix
lib:libboost_regex$secondaryArchSuffix
lib:libboost_system$secondaryArchSuffix
lib:libfifechan$secondaryArchSuffix
lib:libfifechan_sdl$secondaryArchSuffix
lib:libogg$secondaryArchSuffix
lib:libopenal$secondaryArchSuffix
lib:libpng$secondaryArchSuffix
lib:libsdl$secondaryArchSuffix
lib:libsdl_image$secondaryArchSuffix
lib:libsdl_ttf$secondaryArchSuffix
lib:libvorbisfile$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
devel:libboost_filesystem$secondaryArchSuffix
devel:libboost_regex$secondaryArchSuffix
devel:libboost_system$secondaryArchSuffix
devel:libfifechan$secondaryArchSuffix
devel:libfifechan_sdl$secondaryArchSuffix
devel:libogg$secondaryArchSuffix
devel:libopenal$secondaryArchSuffix
devel:libpng$secondaryArchSuffix
devel:libsdl$secondaryArchSuffix
devel:libsdl_image$secondaryArchSuffix
devel:libsdl_ttf$secondaryArchSuffix
devel:libvorbisfile$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
cmd:gcc$secondaryArchSuffix
cmd:pkg_config$secondaryArchSuffix
cmd:scons
cmd:swig
"
BUILD()
{
scons --disable-opengl --disable-githash --local-tinyxml $jobArgs \
fife-python
}
INSTALL()
{
pythonVersion=$(python -c 'import sys; print(str(sys.version_info[0]) + "." + str(sys.version_info[1]))')
vendorPackagesPath="$libDir/python$pythonVersion/vendor-packages"
mkdir -p "$vendorPackagesPath"
scons --disable-opengl --disable-githash --local-tinyxml $jobArgs \
--python-prefix="$vendorPackagesPath" install-python
}