mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
110 lines
3.5 KiB
Bash
110 lines
3.5 KiB
Bash
SUMMARY="Early reimplementation of BioWare's Aurora engine"
|
|
DESCRIPTION="xoreos is an open source implementation of BioWare's Aurora engine and its derivatives, licensed under \
|
|
the terms of the GNU General Public License version 3 (or later).
|
|
|
|
The goal is to have all games using this engine working in a portable manner, starting from \
|
|
Neverwinter Nights and ending with Dragon Age II.
|
|
|
|
Game data for at least one of the supported games is required.
|
|
This project is at its early stages, all supported games run but no actual gameplay is implemented.
|
|
|
|
No link is provided to the binaries as they're meant to be used via command-line and the user needs to specify \
|
|
either the path or the game to run.
|
|
Examples: 'xoreos -p/path/to/game/' 'xoreos nwn' \
|
|
|
|
The engine creates its own configuration files in ~/config/settings/xoreos, check the documentation provided \
|
|
with the package, especially the sample configuration, to add game-specific paths to it and use the engine's other features."
|
|
HOMEPAGE="https://xoreos.org/"
|
|
COPYRIGHT="2010-2025 xoreos Team"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="1"
|
|
srcGitRev="374f800c8def04bc9780fa6c4a0c55bcf6138e05"
|
|
SOURCE_URI="https://github.com/xoreos/xoreos/archive/$srcGitRev.zip"
|
|
CHECKSUM_SHA256="bdb531e9727430830704c4ad885027abe64765485849cc531bf2cdba71f20c67"
|
|
SOURCE_DIR="xoreos-$srcGitRev"
|
|
PATCHES="xoreos-$portVersion.patchset"
|
|
ADDITIONAL_FILES="xoreos.rdef.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
xoreos$secondaryArchSuffix = $portVersion
|
|
cmd:xoreos
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libboost_system$secondaryArchSuffix
|
|
lib:libfaad$secondaryArchSuffix
|
|
lib:libfreetype$secondaryArchSuffix
|
|
lib:libgl$secondaryArchSuffix
|
|
lib:libglu$secondaryArchSuffix
|
|
lib:libglew$secondaryArchSuffix
|
|
lib:libiconv$secondaryArchSuffix
|
|
lib:liblzma$secondaryArchSuffix
|
|
lib:libmad$secondaryArchSuffix
|
|
lib:libogg$secondaryArchSuffix
|
|
lib:libopenal$secondaryArchSuffix
|
|
lib:libSDL2_2.0$secondaryArchSuffix
|
|
lib:libvorbis$secondaryArchSuffix
|
|
lib:libvorbisfile$secondaryArchSuffix
|
|
lib:libvpx$secondaryArchSuffix
|
|
lib:libxml2$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libboost_system$secondaryArchSuffix
|
|
devel:libfaad$secondaryArchSuffix
|
|
devel:libfreetype$secondaryArchSuffix
|
|
devel:libglew$secondaryArchSuffix
|
|
devel:libiconv$secondaryArchSuffix
|
|
devel:liblzma$secondaryArchSuffix
|
|
devel:libmad$secondaryArchSuffix
|
|
devel:libogg$secondaryArchSuffix
|
|
devel:libopenal$secondaryArchSuffix
|
|
devel:libSDL2_2.0$secondaryArchSuffix
|
|
devel:libvorbis$secondaryArchSuffix
|
|
devel:libvorbisfile$secondaryArchSuffix
|
|
devel:libvpx$secondaryArchSuffix
|
|
devel:libxml2$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
#xvidcore is optional and we don't have it (yet)
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
headersdir=$(finddir B_SYSTEM_HEADERS_DIRECTORY)
|
|
|
|
cmake -Bbuild -S. $cmakeDirArgs \
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
# Generate the rdef
|
|
local MAJOR="`echo "$portVersion" | cut -b1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -b3`"
|
|
local MINOR="`echo "$portVersion" | cut -b5`"
|
|
local LONG_INFO="$SUMMARY"
|
|
sed \
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
-e "s|@MINOR@|$MINOR|" \
|
|
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
|
$portDir/additional-files/xoreos.rdef.in > xoreos.rdef
|
|
|
|
addResourcesToBinaries xoreos.rdef $prefix/bin/xoreos
|
|
}
|