nixpkgs-suyu/pkgs/misc/emulators/wine/builder-wow.sh
Corey O'Connor 7f112e37d1 wine: correct install order for WoW wine build.
Per the wiki at https://wiki.winehq.org/Building_Wine#Shared_WoW64

"if you do choose to install your WoW64 build, you should run make
install in the 32-bit build tree first, then in the 64-bit one."

This is required, for instance, for the resulting "wineserver"
executable to be the 64 bit variant not 32 bit. Which is expected by the
binary loader for WoW64.

This odd dependency is vaguely mentioned on the packaging wiki page:

* https://wiki.winehq.org/Packaging#Binaries
2018-03-14 21:10:12 -07:00

32 lines
542 B
Bash

#!/bin/sh
## build described at http://wiki.winehq.org/Wine64
source $stdenv/setup
unpackPhase
cd $TMP/$sourceRoot
patchPhase
configureScript=$TMP/$sourceRoot/configure
mkdir -p $TMP/wine-wow $TMP/wine64
cd $TMP/wine64
sourceRoot=`pwd`
configureFlags="--enable-win64"
configurePhase
buildPhase
# checkPhase
cd $TMP/wine-wow
sourceRoot=`pwd`
configureFlags="--with-wine64=../wine64"
configurePhase
buildPhase
# checkPhase
eval "$preInstall"
cd $TMP/wine-wow && make install
cd $TMP/wine64 && make install
eval "$postInstall"
fixupPhase