View | Details | Raw Unified | Return to bug 257399
Collapse All | Expand All

(-)b/emulators/wine-proton/files/wine-wow64.sh (-10 / +21 lines)
Lines 5-20 LOCALBASE="${PREFIX%/*}" Link Here
5
5
6
I386_ROOT="${WINE_i386_ROOT:-$HOME/.i386-wine-pkg}"
6
I386_ROOT="${WINE_i386_ROOT:-$HOME/.i386-wine-pkg}"
7
7
8
export LIBGL_DRIVERS_PATH="${LIBGL_DRIVERS_PATH:+$LIBGL_DRIVERS_PATH:}$LOCALBASE/lib/dri:$LOCALBASE/lib32/dri:$I386_ROOT/$LOCALBASE/lib/dri"
9
export LD_32_LIBRARY_PATH="${LD_32_LIBRARY_PATH:+$LD_32_LIBRARY_PATH:}$I386_ROOT/$PREFIX/lib/wine:$LOCALBASE/lib32:$I386_ROOT/$LOCALBASE/lib:$I386_ROOT/$LOCALBASE/llvm10/lib:$I386_ROOT/$LOCALBASE/llvm11/lib"
10
export LD_32_LIBRARY_PATH_RPATH=y
11
12
if [ -z "$WINE_NO_WOW64" ]
13
then
14
  export PATH="${TARGET%/*}:${PATH}"
15
  export WINESERVER="${TARGET}server"
16
fi
17
18
if [ ! -f "$I386_ROOT/$PREFIX/bin/wine" ]
8
if [ ! -f "$I386_ROOT/$PREFIX/bin/wine" ]
19
then
9
then
20
  printf "%s doesn't exist!\n\n" "$I386_ROOT/$PREFIX/bin/wine"
10
  printf "%s doesn't exist!\n\n" "$I386_ROOT/$PREFIX/bin/wine"
Lines 31-34 then Link Here
31
  exit 1
21
  exit 1
32
fi
22
fi
33
23
24
export LIBGL_DRIVERS_PATH="${LIBGL_DRIVERS_PATH:+$LIBGL_DRIVERS_PATH:}$LOCALBASE/lib/dri:$LOCALBASE/lib32/dri:$I386_ROOT/$LOCALBASE/lib/dri"
25
export LD_32_LIBRARY_PATH="${LD_32_LIBRARY_PATH:+$LD_32_LIBRARY_PATH:}$I386_ROOT/$PREFIX/lib/wine:$LOCALBASE/lib32:$I386_ROOT/$LOCALBASE/lib"
26
for d in "$I386_ROOT/$LOCALBASE"/llvm*/lib
27
do
28
  if [ -d "$d" ]
29
  then
30
    export LD_32_LIBRARY_PATH="$LD_32_LIBRARY_PATH:$d"
31
  fi
32
done
33
export LD_32_LIBRARY_PATH_RPATH=y
34
export LD_32_LIBMAP="
35
$LOCALBASE/lib/libvulkan_intel.so  $I386_ROOT/$LOCALBASE/lib/libvulkan_intel.so
36
$LOCALBASE/lib/libvulkan_radeon.so $I386_ROOT/$LOCALBASE/lib/libvulkan_radeon.so
37
$LD_32_LIBMAP"
38
39
if [ -z "$WINE_NO_WOW64" ]
40
then
41
  export PATH="${TARGET%/*}:${PATH}"
42
  export WINESERVER="${TARGET}server"
43
fi
44
34
exec "$I386_ROOT/$PREFIX/bin/wine" "$@"
45
exec "$I386_ROOT/$PREFIX/bin/wine" "$@"

Return to bug 257399