diff --git a/srcpkgs/openmw/template b/srcpkgs/openmw/template index eaf887dae6c..ff551cc82bc 100644 --- a/srcpkgs/openmw/template +++ b/srcpkgs/openmw/template @@ -3,6 +3,8 @@ pkgname=openmw version=0.47.0 revision=3 build_style=cmake +_recast_commit=e75adf86f91eb3082220085e42dda62679f9a3ea +_bullet_tag=3.17 # System bullet doesn't use double precision (double precision would break vdrift) # LTO gives a measurable performance boost, while not hurting compile time too much configure_args="-DDESIRED_QT_VERSION=5 -DOPENMW_USE_SYSTEM_BULLET=OFF @@ -16,8 +18,12 @@ maintainer="John " license="GPL-3.0-or-later" homepage="http://openmw.org" changelog="https://openmw.org/2021/openmw-0-47-0-released/" -distfiles="https://gitlab.com/OpenMW/openmw/-/archive/openmw-${version}/openmw-openmw-${version}.tar.gz" -checksum=bd7f77e1527c2180e9b0dfcbe401d6fb48f24dbb37701dac7747697873d6edb4 +distfiles="https://gitlab.com/OpenMW/openmw/-/archive/openmw-${version}/openmw-openmw-${version}.tar.gz + https://github.com/recastnavigation/recastnavigation/archive/${_recast_commit}.tar.gz + https://github.com/bulletphysics/bullet3/archive/refs/tags/${_bullet_tag}.tar.gz" +checksum="bd7f77e1527c2180e9b0dfcbe401d6fb48f24dbb37701dac7747697873d6edb4 + c647e307d6cc62ba00bfd888e82da83844bf1e72f2c98bed2f1d95bac229b950 + baa642c906576d4d98d041d0acb80d85dd6eff6e3c16a009b1abf1ccd2bc0a61" if [ "$XBPS_TARGET_ENDIAN" != "le" ]; then broken="https://gitlab.com/OpenMW/openmw/issues/564" @@ -28,6 +34,16 @@ if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic" fi +post_extract() { + mv openmw-openmw-${version}/* . + mkdir -p build/fetched + ln -s -r build/fetched extern/fetched + ln -s -r build/fetched components/fetched + ln -s -r build/fetched fetched + mv -v bullet3-${_bullet_tag} build/fetched/bullet + mv -v recastnavigation-${_recast_commit} build/fetched/recastnavigation +} + openmw-cs_package() { short_desc="Open Implementation of Morrowinds Creation Set" depends="openmw-${version}_${revision}"