From 984065a35893749fbeff41cf0b61961153f9829f Mon Sep 17 00:00:00 2001 From: Anthony Eadicicco Date: Mon, 4 Jan 2021 23:28:45 -0500 Subject: [PATCH] wine: Use MinGW to build WinPE DLLs --- srcpkgs/wine/template | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/srcpkgs/wine/template b/srcpkgs/wine/template index 0e6629f4c3e..83b1be78b55 100644 --- a/srcpkgs/wine/template +++ b/srcpkgs/wine/template @@ -1,7 +1,7 @@ # Template file for 'wine' pkgname=wine version=6.0rc5 -revision=1 +revision=2 wrksrc=wine-${version/r/-r} build_style=gnu-configure configure_args="--bindir=/usr/libexec/wine" @@ -12,6 +12,10 @@ homepage="http://www.winehq.org/" distfiles="https://dl.winehq.org/wine/source/${version%r*}/wine-${version/r/-r}.tar.xz" checksum=f1f10a0aef4dcc9cf4ec67f0828fc1f7f364e2e8e7c2f027c253c8e2004bf451 +build_options="mingw" +build_options_default="mingw" +desc_option_mingw="Use the MinGW cross compiler to build WinPE DLLs" + lib32mode=full archs="i686* x86_64*" @@ -52,6 +56,10 @@ if [ "$XBPS_LIBC" = "glibc" ]; then hostmakedepends+=" prelink" fi +if [ "${build_option_mingw}" ]; then + hostmakedepends+=" cross-${XBPS_TARGET_MACHINE}-w64-mingw32" +fi + _wine_libexec="/usr/libexec/wine" nopie_files="${_wine_libexec}/wine${_wine_suffix}"