freebsd-ports/benchmarks/linux-unigine-superposition/files/wrapper.sh.in
Alexey Dokuchaev eed17095ea benchmarks/linux-unigine-superposition: new port had been added (+)
Extreme performance and stability test for PC hardware: video card,
power supply, cooling system.  Also includes interactive experience
in a beautiful, detailed environment.

This is the fifth and the latest Unigine benchmark featured in our
Ports Collection.

PR:	240041
2022-06-09 12:54:34 +00:00

22 lines
596 B
Bash

#!/bin/sh
LNX_ROOT=$(sysctl -n compat.linux.emul_path)
if [ ! -f "$LNX_ROOT/proc/self/exe" -o ! -d "$LNX_ROOT/sys/dev/char" ]
then
echo "This program requires mounted linprocfs(5) and linsysfs(5)" >&2
exit 1
fi
# OpenAL Soft uses PulseAudio by default, which might not work on FreeBSD
ALSOFT_CONF=$LNX_ROOT/etc/openal/alsoft.conf
if ! grep -qs '^drivers[[:blank:]]*=[[:blank:]]*oss' "$ALSOFT_CONF"
then
echo "If there's no sound, try putting \`oss' as the first item" \
"on the \`drivers' line in the $ALSOFT_CONF file." | fmt -76 >&2
sleep 2
fi
cd %%DATADIR%% && exec ./Superposition