freebsd-ports/emulators/i386-wine/files/binbounce
David Naylor 162c633191 Add emulators/i386-wine.
With the introducation of binary packages for i386-wine-devel the
port itself is largely complete (although there are still problems with
3D acceleration, both with and without nVidia).
2013-08-12 06:15:40 +00:00

20 lines
497 B
Bash

#!/bin/sh
TARGET="`realpath $0`"
LOCALBASE=${TARGET%/*}/..
BINNAME=${TARGET##*/}
if [ -z "$__BINBOUNCE_BOOTSTRAP" ]
then
export LIBGL_DRIVERS_PATH=$LOCALBASE/lib32/dri
if [ `uname -p` = i386 ]
then
export LD_LIBRARY_PATH="$LOCALBASE/lib32":"$LOCALBASE/lib32/wine":"$LD_LIBRARY_PATH"
else
export LD_32_LIBRARY_PATH="$LOCALBASE/lib32":"$LOCALBASE/lib32/wine":"$LD_32_LIBRARY_PATH":/usr/lib32
fi
export PATH="$LOCALBASE/bin32":"$PATH"
fi
exec "$LOCALBASE/bin32/$BINNAME" "$@"