2023-07-15 17:15:38 +00:00
|
|
|
## build described at https://wiki.winehq.org/Building_Wine#Shared_WoW64
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
source $stdenv/setup
|
2022-01-25 03:21:06 +00:00
|
|
|
preFlags="${configureFlags}"
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
unpackPhase
|
|
|
|
cd $TMP/$sourceRoot
|
|
|
|
patchPhase
|
|
|
|
|
|
|
|
configureScript=$TMP/$sourceRoot/configure
|
|
|
|
mkdir -p $TMP/wine-wow $TMP/wine64
|
|
|
|
|
|
|
|
cd $TMP/wine64
|
|
|
|
sourceRoot=`pwd`
|
2022-01-25 03:21:06 +00:00
|
|
|
configureFlags="${preFlags} --enable-win64"
|
2020-04-24 23:36:52 +00:00
|
|
|
configurePhase
|
|
|
|
buildPhase
|
|
|
|
# checkPhase
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
# Remove 64 bit gstreamer from PKG_CONFIG_PATH
|
|
|
|
IFS=":" read -ra LIST_ARRAY <<< "$PKG_CONFIG_PATH"
|
|
|
|
IFS=":" read -ra REMOVE_ARRAY <<< "@pkgconfig64remove@"
|
|
|
|
NEW_LIST_ARRAY=()
|
|
|
|
|
|
|
|
for ELEMENT in "${LIST_ARRAY[@]}"; do
|
|
|
|
TO_ADD=1
|
|
|
|
for REMOVE in "${REMOVE_ARRAY[@]}"; do
|
|
|
|
if [[ "$REMOVE" == "$ELEMENT" ]]; then
|
|
|
|
TO_ADD=0
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
if [[ $TO_ADD -eq 1 ]]; then
|
|
|
|
NEW_LIST_ARRAY+=("$ELEMENT")
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
PKG_CONFIG_PATH=$(IFS=":"; echo "${NEW_LIST_ARRAY[*]}")
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
cd $TMP/wine-wow
|
|
|
|
sourceRoot=`pwd`
|
2022-01-25 03:21:06 +00:00
|
|
|
configureFlags="${preFlags} --with-wine64=../wine64"
|
2020-04-24 23:36:52 +00:00
|
|
|
configurePhase
|
|
|
|
buildPhase
|
|
|
|
# checkPhase
|
|
|
|
|
|
|
|
eval "$preInstall"
|
2023-10-09 19:29:22 +00:00
|
|
|
cd $TMP/wine-wow && make install -j$NIX_BUILD_CORES
|
|
|
|
cd $TMP/wine64 && make install -j$NIX_BUILD_CORES
|
2020-04-24 23:36:52 +00:00
|
|
|
eval "$postInstall"
|
|
|
|
fixupPhase
|