ports/emulators/wine7/files/wine.sh
Gerald Pfeifer aa30cdd581 emulators/wine7: New port, cloning emulators/wine
Wine 8 has been released late last year and we have not seen
corresponding updates to wine-devel and the main wine port yet,
partly because there's unresolved breakage on FreeBSD/i386.

To unstall the situation, create emulators/wine7 as a clone of
emulators/wine for those who want/need that version. This will
allow moving the latter forward.

PR:		272710, 271201
Suggested by:	lwhsu
2023-07-30 21:57:39 +00:00

14 lines
276 B
Bash

#!/bin/sh
TARGET="$(realpath "$0")"
if [ -z "$WINESERVER" ] && [ -f "${TARGET}server32" ]
then
export WINESERVER="${TARGET}server32"
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" "$@"