compatibility layer to run Windows applications
Project homepage: https://www.winehq.org/
Description
Wine is a compatibility layer for running Windows applications on Unix.
It translates Windows API calls into native system calls.
This port includes experimental OpenBSD amd64 from
https://github.com/NethIafin/wine/tree/openbsd-master.
Only 64-bit Windows applications are supported.
Package information
- Ports path
- emulators/wine
- Package architecture
- amd64
- Maintainer
- Thomas Frohwein <thfr@openbsd.org>, Andrii Yukhymchak <NethIafin-obsd@proton.me>
- Categories
- emulators
- Available flavors
- None listed
- Only for architectures
- amd64
Ports list build and test dependencies as well as runtime dependencies. pkg_add selects those needed for installation.
Direct dependencies
Library
- devel/gettext,-tools
- devel/libinotify
- devel/sdl2
- graphics/ffmpeg
- graphics/libgphoto2
- graphics/sane-backends
- graphics/vulkan-loader
- multimedia/gstreamer1/core
- multimedia/gstreamer1/plugins-base
- net/libpcap
- net/samba
- print/cups,-libs
- security/gnutls
- security/pcsc-lite
- x11/dbus
- x11/xkbcommon
Runtime
- audio/generaluser-gs-soundfont
- multimedia/gstreamer1/libav
- multimedia/gstreamer1/plugins-bad
- multimedia/gstreamer1/plugins-good
- multimedia/gstreamer1/plugins-ugly
- x11/gtk+4,-guic
Build
- devel/bison
- devel/nasm
- devel/llvm/22,headerextract
- devel/llvm/22
- devel/metaauto
- devel/autoconf/2.73
- devel/gmake
- archivers/xz STEM->=5.4.0
OpenBSD README
This README contains unresolved ports variables; replace them before using its commands.
+-----------------------------------------------------------------------
| Running wine on OpenBSD
+-----------------------------------------------------------------------
This port runs 64-bit Windows applications on OpenBSD/amd64. It does not
provide 32-bit Windows support. You can identify 32-bit binaries with
file(1) or when seeing syswow64 error like this:
wine: failed to load L"\\??\\C:\\windows\\syswow64\\ntdll.dll" error[...]
In that case, the program *can't* run.
Common Problems
===============
The first step if an application doesn't run should be to check
https://appdb.winehq.org/
for an entry. Also make sure, no 32-bit binary or library is involved (see
above).
Many games need higher than default datasize (and potentially other)
limits, see ksh(1) for ulimit.
Many games expect that the executable is run from its directory and not
a different location. So for path/to/program.exe, make sure to:
$ cd path/to/
$ wine program.exe
Direct3D Translation Layers
===========================
wine's default Direct3D graphics support (Damawand) uses OpenGL.
If Vulkan is installed and supported by your hardware, you can try
alternative (faster) translation layers. DXVK for D3D8, 9, 10, and 11:
https://github.com/doitsujin/dxvk
and/or VKD3D-Proton for D3D12:
https://github.com/HansKristian-Work/vkd3d-proton
Both come with installation instructions and/or install scripts that
install the dll's into the wine prefix and update winecfg.
MIDI
====
If software requires MIDI support, this can be provided with
fluidsynth and a soundfont, for example:
# pkg_add fluidsynth generaluser-gs-soundfont
$ fluidsynth -a sndio -m sndio \
${LOCALBASE}/share/generaluser-gs/GeneralUser-GS.sf2
Debugging
=========
For debugging, use egdb(1) with the native loader, like for example:
$ egdb /usr/local/lib/wine/x86_64-unix/wine wine.core
(ntdll.so replaces the launcher with the native loader.)
For warnings and traces, see WINEDEBUG in wine(1).
Used by (1 dependency relationships)
Includes library, runtime, build and test dependencies.