forked from Lainports/freebsd-ports
Wine 9 has been released some weeks ago and it's time to upgrade the main emulators/wine port. However, there may be some regressions (in particular around WoW64), so create emulators/wine8 as a clone of the state before the version upgrade as a fallback. [1] Since it is rarely, if ever, used, in particular in this context, remove the MONO option. Discussed with: Lexi Winter <lexi@le-fay.org> [1]
17 lines
402 B
Bash
17 lines
402 B
Bash
#!/bin/sh
|
|
|
|
TARGET="$(realpath "$0")"
|
|
|
|
if [ -z "$WINESERVER" ]; then
|
|
if [ -f "${TARGET%/*}/wineserver32" ]; then
|
|
export WINESERVER="${TARGET%/*}/wineserver32"
|
|
elif [ -f "${TARGET%/*}/wineserver" ]; then
|
|
export WINESERVER="${TARGET%/*}/wineserver"
|
|
fi
|
|
fi
|
|
|
|
# Workaround for https://bugs.winehq.org/show_bug.cgi?id=50257
|
|
export LD_BIND_NOW=1
|
|
export LD_32_BIND_NOW=1
|
|
|
|
exec "${TARGET}.bin" "$@"
|