redox/recipes/wip/emulators/windows/wine-stable/recipe.toml
Jeremy Soller 928651218e
wine-stable improvements, still not compiling
- Update to 10.18
- Add blake3
- Fix dependencies
- Build wine tools for host
2025-11-10 07:25:01 -07:00

97 lines
1.9 KiB
TOML

#TODO port to redox
#build instructions: https://gitlab.winehq.org/wine/wine/-/wikis/Building-Wine
[source]
tar = "http://dl.winehq.org/wine/source/10.x/wine-10.18.tar.xz"
blake3 = "0517c4200935456fbc22b152a19c5fd0d027d2b06c511968a5533101e1274f54"
script = """
DYNAMIC_INIT
autotools_recursive_regenerate
"""
[build]
template = "custom"
dependencies = [
"fontconfig",
"freetype2",
"gnutls3",
"gstreamer",
"sdl2",
"mesa-x11",
"libstdcxx",
"libx11",
"libxcomposite",
"libxcursor",
"libxi",
"libxfixes",
"libxrandr",
"libxrender",
"libxext",
"libxkbcommon",
#"libxkbregistry",
]
script = """
DYNAMIC_INIT
mkdir -p wine-tools
pushd wine-tools
#TODO: easier way to build for host?
HOST_ENV=(
env
--unset=AR
--unset=AS
--unset=CC
--unset=CFLAGS
--unset=CPPFLAGS
--unset=CXX
--unset=GNU_TARGET
--unset=LD
--unset=LDFLAGS
--unset=NM
--unset=OBJCOPY
--unset=OBJDUMP
--unset=PKG_CONFIG
--unset=PKG_CONFIG_ALLOW_CROSS
--unset=PKG_CONFIG_FOR_BUILD
--unset=PKG_CONFIG_LIBDIR
--unset=PKG_CONFIG_PATH
--unset=PKG_CONFIG_SYSROOT_DIR
--unset=PREFIX_RUSTFLAGS
--unset=RANLIB
--unset=READELF
--unset=STRIP
--unset=TARGET
)
"${HOST_ENV[@]}" "${COOKBOOK_CONFIGURE}" --enable-win64
"${HOST_ENV[@]}" "${COOKBOOK_MAKE}" -j "${COOKBOOK_MAKE_JOBS}" __tooldeps__
popd
COOKBOOK_CONFIGURE_FLAGS+=(
--enable-win64
--disable-kerberos
--disable-tests
--without-capi
--without-coreaudio
--without-dbus
--without-gettext
--without-gettextpo
--without-gphoto
--without-gssapi
--without-inotify
--without-krb5
--without-netapi
--without-opencl
--without-osmesa
--without-pcap
--without-pcsclite
--with-pthread
--without-pulse
--without-sane
--with-sdl
--without-udev
--without-unwind
--without-usb
--with-wine-tools=wine-tools
)
cookbook_configure
"""