From ae41e6d71c2bbcf22efbf007f1691ec026f5524e Mon Sep 17 00:00:00 2001 From: Laevos <5572812+Laevos@users.noreply.github.com> Date: Mon, 15 Jan 2024 22:28:25 +0000 Subject: [PATCH 1/3] add macports bulid instructions --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 0b8c1e1..e75ed4a 100644 --- a/README.md +++ b/README.md @@ -109,14 +109,28 @@ Supersonic is available in the AUR and can be built either manually with `makepk - ``export PATH="/Users//go/bin:$PATH"`` * install the ``fyne`` packaging tool ``go install fyne.io/fyne/v2/cmd/fyne@latest`` * install Xcode command-line tools (``xcode-select --install``) + +#### Homebrew * install libmpv (``brew install mpv``) * install dylibbundler (``brew install dylibbundler``) - needed only the bundledeps step, see below +#### Macports +* install mpv with the libmpv (and optionally vapoursynth, for bundledeps) variants (``sudo port install mpv +libmpv +vapoursynth``) +* install dylibbundler (``sudo port install dylibbundler``) - needed only the bundledeps step, see below + ### Build + +#### Homebrew setup * Make sure header and library include paths include the dir in which homebrew installs headers/dylibs (may differ dep. on OS/Homebrew version) - ``export C_INCLUDE_PATH=/opt/homebrew/include:$C_INCLUDE_PATH`` - ``export LIBRARY_PATH=/opt/homebrew/lib:$LIBRARY_PATH`` + +#### Macports setup +* Make sure header and library include paths include the dir in which macports installs headers/dylibs + - ``export C_INCLUDE_PATH=/opt/local/include:$C_INCLUDE_PATH`` + - ``export LIBRARY_PATH=/opt/local/lib:$LIBRARY_PATH`` +#### Building the application * clone the repo, CD into the repo root, and run ``go build`` * (note that the first build will take some time as it will download and build the UI library) * run ``make package_macos`` to generate the .app bundle From 20ce0c0589b3d27583cf9046c04ad1fad3ab91fa Mon Sep 17 00:00:00 2001 From: Lilith McMullen Date: Mon, 22 Jan 2024 18:43:05 -0800 Subject: [PATCH 2/3] break out bundledeps instructions for macports vs homebrew --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e75ed4a..a8a7efe 100644 --- a/README.md +++ b/README.md @@ -136,7 +136,9 @@ Supersonic is available in the AUR and can be built either manually with `makepk * run ``make package_macos`` to generate the .app bundle * **If** you are on Mac OS **High Sierra** through **Catalina**, run ``make bundledeps_macos_highsierra`` and you are done! Otherwise, continue reaading. * At this point, the Supersonic.app bundle can be copied to Applications and it will run on your machine, but it depends on the brew installation of mpv -* To copy the dependencies into the app bundle, and make it truly portable, run ``make bundledeps_macos`` +* To copy the dependencies into the app bundle, and make it truly portable, run the appopriate command for your package manager: + - **Homebrew**: ``make bundledeps_macos_homebrew`` + - **Macports**: ``make bundledeps_macos_macports`` ## Build instructions (Windows) From 376a51832f35507e49791cc54d27f2f0cb3cad38 Mon Sep 17 00:00:00 2001 From: Lilith McMullen Date: Mon, 22 Jan 2024 18:46:10 -0800 Subject: [PATCH 3/3] remove reference to vapoursynth on macports --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a8a7efe..dceab89 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,7 @@ Supersonic is available in the AUR and can be built either manually with `makepk * install dylibbundler (``brew install dylibbundler``) - needed only the bundledeps step, see below #### Macports -* install mpv with the libmpv (and optionally vapoursynth, for bundledeps) variants (``sudo port install mpv +libmpv +vapoursynth``) +* install mpv with the libmpv variant (``sudo port install mpv +libmpv``) * install dylibbundler (``sudo port install dylibbundler``) - needed only the bundledeps step, see below ### Build