# Note: depends on cmake
# Note: depends on glew
# Note: depends on glu
wget -c https://github.com/bulletphysics/bullet3/archive/2.83.7/bullet3-2.83.7.tar.gz
tar -xzf bullet3-2.83.7.tar.gz
cd bullet3-2.83.7
rm -f build3/premake4* # Make sure bundled binaries are not being used
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX="/usr" -DBUILD_SHARED_LIBS=on -DINSTALL_EXTRA_LIBS=on ..
make # Doesn't mind -j#
make install