mirror of
https://git.freebsd.org/ports.git
synced 2025-06-05 12:56:28 -04:00
- Add missing dependency for playing music: USE_LINUX+=openal-soft - In the `do-extract', rather than changing current directory, pass it to tar(1) as a -C argument and don't needlessly use semi-private _DISTDIR variable: this makes the command shorter and avoids bogus double slash in the build log - Provide more user-friendly wrapper script which anticipates potential problems that typically affect running this program and advises on how to solve them - Spell GNU/Linux correctly in the COMMENT and port description; reformat the latter with `fmt -w 75' for better looks (less ragged right edge)
22 lines
608 B
Bash
22 lines
608 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 $LNX_ROOT/bin/bash ./heaven
|