Skip to content

Latest commit

 

History

History
104 lines (92 loc) · 5.38 KB

README.md

File metadata and controls

104 lines (92 loc) · 5.38 KB

macports-wine

The current macports-ports versions of MoltenVK, wine, wine-devel & wine-crossover are not fully updated and are missing additinal required dependencies.
All wine-* Ports currently compile on Mac OSX 10.9 and later, Mac OSX 10.8 should also work however as multiple distfiles are obtained from GitHub installing below Mac OSX 10.9 requires additinal steps that won't be outlined here.\ MoltenVK minimum requirement was lowered from 10.12 to 10.11

This repository contains;

  • MoltenVK (Installs MoltenVK.dylib & MoltenVK.framework from vulkansdk-macos-1.2.141.2)
  • VulkanSDK (Installs vulkansdk-macos-1.2.141.2)
  • wine Marked obsolete (swap to Winehq naming scheme)
  • wine-stable Wine-5.0.1
  • wine-devel Wine-Devel-5.13
  • wine-staging Wine-Staging-5.13
  • wine-crossover Wine-CrossOver-19.0.2 (patched to use wine-gecko-2.47.1)
  • wine-gecko Wine-Gecko-2.47.1 (/opt/wine/gecko)
  • wine-mono Wine-Mono-4.9.4 (/opt/wine/mono)
  • wine-mono-5.0.0 Wine-Mono-5.0.0 (/opt/wine/mono)
  • wine-mono-5.1.0 Wine-Mono-5.1.0 (/opt/wine/mono)
  • cargo Downgraded to 0.41.0 (Needed for 32Bit support)
  • rust Downgraded to 1.42.0 (Needed for 32Bit support)
  • gstreamer1-gst-plugins-ugly 1.16.2 (Added Derek Lesho patchs to fix wmv playback)
  • MacOSX.sdk (Allows installation of multiple MacOSX SDKs)

MacOSX.sdk contains the following subports;

  • subport MacOSX10.15.sdk
  • subport MacOSX10.14.sdk
  • subport MacOSX10.13.sdk (Add QuickTime.framework from MacOSX10.11.sdk)
  • subport MacOSX10.12.sdk (Add QuickTime.framework from MacOSX10.11.sdk)
  • subport MacOSX10.11.sdk

How to use this repository

To use this repository download/git clone into your home directory and edit then follow
4.6. Local Portfile Repositories

Recommended install command;

sudo su
yes | port install wine-staging

This will install wine-staging with wow64 support, x11 support and all possible dependencies except gstreamer1-gst-plugins-good, gstreamer1-gst-plugins-bad, gstreamer1-gst-plugins-ugly, gstreamer1-gst-libav and FAudio won't be built with wma support.

Alternative install command (wma audio support);

sudo su
yes | port install wine-staging +ffmpeg

This will install wine-staging with wow64 support, x11 support and all possible depedenceis, +ffmpeg will take a long time but gives FAudio wma support along with gstreamer will also have wma support.

Wine Portfile additinal dependancies;

  • gnutls (encryption)
  • libsdl2 (controllers)
  • libgcrypt (additinal encription on wine-staging)
  • mpg123 (mp3 audio)
  • FAudio (wma support needs +ffmpeg variant)
  • MoltenVK
  • gstreamer1-gst-plugins-good (behind +ffmpeg variant)
  • gstreamer1-gst-plugins-bad (behind +ffmpeg variant)
  • gstreamer1-gst-plugins-ugly (behind +ffmpeg variant)
  • gstreamer1-gst-libav (behind +ffmpeg variant)

Wine-Mono & Wine-Gecko?

From Wine-5.0 it's possbile to have a shared version of both gecko & mono, instead of installing into each prefix the shared versions will be used.

How to use on macOS High Sierra & macOS Mojave;

Install macports as usual then apply the following patch.

diff -u /opt/local/etc/macports/macports.conf.orig /opt/local/etc/macports/macports.conf
--- /opt/local/etc/macports/macports.conf.orig	                        2019-09-27 22:22:38.000000000 -0400
+++ /opt/local/etc/macports/macports.conf	                            2019-09-27 22:22:14.000000000 -0400
@@ -1,6 +1,9 @@
 # MacPorts system-wide configuration file.
 # Commented-out values are defaults unless otherwise noted.
 
+macosx_deployment_target     10.13
+macosx_sdk_version           10.13
+
 # Directory under which MacPorts should install ports. This must be
 # where MacPorts itself is installed.
 prefix              	/opt/local
 -diff -u /opt/local/libexec/macports/lib/port1.0/portconfigure.tcl.orig /opt/local/libexec/macports/lib/port1.0/portconfigure.tcl
 --- /opt/local/libexec/macports/lib/port1.0/portconfigure.tcl.orig     2019-09-21 16:25:24.000000000 -0700
 +++ /opt/local/libexec/macports/lib/port1.0/portconfigure.tcl          2019-09-21 16:26:20.000000000 -0700
 @@ -1477,6 +1477,7 @@
                  append_to_environment_value configure $env_var -isysroot${configure.sdkroot}
              }
              append_to_environment_value configure "LDFLAGS" -Wl,-syslibroot,${configure.sdkroot}
 +            append_to_environment_value configure "LDFLAGS" -Wl,-w
          }
  
          # add extra flags that are conditional on whether we're building universal

Place a copy of the MacOSX10.13.sdk into /Library/Developer/CommandLineTools/SDKs/
Or run port install MacOSX10.13.sdk
Now follow from How to use this repository section

How to use on macOS Catalina;

wine-stable, wine-crossover, wine-devel & wine-staging will only build wine64 on macOS Catalina, I'll lightly add a custom clang-8 Portfile eventually that's required to build wine-crossover with wine32on64 support along with some needed patches.
Follow How to use this repository section
Found this helpful?
Donate