Created attachment 227831 [details]
git diff for building bullet and linking it statically
OpenMW moved to bullet double-precision with the Versions 0.47.0 and later. Since bullet is being built with it's default single-precision on FreeBSD, this would require a change to how bullet is being built. To prevent such dependency changes, it is possible to set OPENMW_USE_SYSTEM_BULLET=OFF in cmake and openmw will build and statically link bullet itself, saving us from having to make changes to devel/bullet. I believe this also removes the dependency on devel/bullet completely.
This patch adds this switch to the Makefile. Though it should only be included, once this port actually moves to 0.47 itself, otherwise it doesn't make sense.
I am interested in 0.47 for it's new legacy shader options in the hopes it will help track down GPU HANGS caused by Mesa's new crocus driver: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5134
I already keep hand on pulse and sent mail to bullet maintainer to enable double-precision by default too. :) Thanks for report, it will be counted in 0.47 release update