mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 11:45:18 +03:00
63 lines
1.6 KiB
Text
63 lines
1.6 KiB
Text
# Contributor: Clayton Craft <clayton@craftyguy.net>
|
|
# Maintainer: Clayton Craft <clayton@craftyguy.net>
|
|
pkgname=openmw
|
|
pkgver=0.47.0
|
|
pkgrel=7
|
|
pkgdesc="Open-source engine reimplementation for the role-playing game Morrowind"
|
|
# Note: only tested on the following archs, may work on others too but not
|
|
# adding them until this has been confirmed
|
|
arch="x86_64 aarch64"
|
|
url="http://www.openmw.org"
|
|
license="GPL-3.0-or-later"
|
|
makedepends="
|
|
boost-dev
|
|
bullet-dev
|
|
cmake
|
|
doxygen
|
|
ffmpeg4-dev
|
|
libxt-dev
|
|
lz4-dev
|
|
mesa-dev
|
|
mygui-dev
|
|
openal-soft-dev
|
|
openscenegraph-dev
|
|
qt5-qtbase-dev
|
|
samurai
|
|
sdl2-dev
|
|
tinyxml-dev
|
|
unshield-dev
|
|
"
|
|
checkdepends="gtest-dev"
|
|
# Two failing tets:
|
|
# [ FAILED ] ContentFileTest.dialogue_merging_test
|
|
# [ FAILED ] ContentFileTest.content_diagnostics_test
|
|
options="!check"
|
|
source="https://gitlab.com/OpenMW/openmw/-/archive/openmw-$pkgver/openmw-openmw-$pkgver.tar.gz
|
|
gcc12.patch
|
|
"
|
|
builddir="$srcdir/openmw-openmw-$pkgver"
|
|
|
|
build() {
|
|
# build OpenMW
|
|
cmake -B build \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
|
-DBUILD_WITH_CODE_COVERAGE=0 \
|
|
-DBUILD_UNITTESTS="$(want_check && echo ON || echo OFF)" \
|
|
-DUSE_SYSTEM_TINYXML=TRUE \
|
|
-GNinja
|
|
ninja -C build
|
|
}
|
|
|
|
check() {
|
|
./build/openmw_test_suite
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" ninja -C build install
|
|
}
|
|
|
|
sha512sums="
|
|
517e650d0054cdba8d38de05ed3975b0fcf8de32fda59c8df7c34b973e5390efa0dd9ec79babdfdaa79dee7aa8a75009776f62fad91b9aa9aa28016c5032652b openmw-openmw-0.47.0.tar.gz
|
|
cfad72d880d76611013cc7b5f87c258a15c5efc6417ad481a5164438d61c26c3addd1b00884bbc93f84195434d5a4162edd142981e65866cf6b9db4ab7bc857c gcc12.patch
|
|
"
|