SUMMARY="GemRB is an Infinite game engine generator"
DESCRIPTION="GemRB (Game Engine Made with preRendered Background) \
is a port (actually a new implementation) of the original Infinity \
Engine (the one of Baldur's Gate, Icewind Dale, Planescape: Torment, ...) \
to Linux/Unix, MacOS X and Windows with some enhancements. Would \ 
you like to create a game like Baldur's Gate?"
 
LICENSE="MIT"
COPYRIGHT="2003-2010 The GemRB Team"
 
HOMEPAGE="https://github.com/gemrb/gemrb"
SOURCE_URI="https://github.com/gemrb/gemrb/archive/v0.8.1.tar.gz"
 
SOURCE_DIR="gemrb-$portVersion"
 
ARCHITECTURES="x86 x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
 
CHECKSUM_SHA256="02e7d70f5f3f37d424a3bd2ceb705b8d532fb58d5a1da0a88fb20bc1b67e11b1"
 
REVISION="1"
 
PROVIDES="
        gemrb = $portVersion
        app:gemrb = $portVersion
        "
 
REQUIRES="
        haiku$secondaryArchSuffix
        lib:libSDL_1.2$secondaryArchSuffix
        lib:libz$secondaryArchSuffix
        lib:libutil$secondaryArchSuffix
        "
 
BUILD_REQUIRES="
        haiku${secondaryArchSuffix}_devel
        devel:libsdl_1.2$secondaryArchSuffix
        devel:libz$secondaryArchSuffix
        "
 
BUILD_PREREQUIRES="
        cmd:gcc$secondaryArchSuffix
        cmd:cmake
        cmd:make
        cmd:python
        "
 
PATCHES="gemrb_x86-0.8.1.patchset"
 
BUILD()
{
        mkdir -p build
        cd build
        cmake -DPREFIX=$appsDir ../
        make $jobArgs
}
 
INSTALL()
{
        cd build
        make install
}