Skip to content

Commit

Permalink
Update README to reflect the current compilation script
Browse files Browse the repository at this point in the history
  • Loading branch information
uiryuu committed Jul 2, 2024
1 parent 130d2f3 commit 25dbcd8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 30 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ This repo contains custom mpv and ffmpeg homebrew tap for IINA.
- Removed some of the decoding libraries which ffmpeg can natively decode

### other/compile.rb
You do not have to use this script in most cases. The libraries that IINA ships are compiled by `other/compile.rb`. Although this script actually runs homebrew command to compile the dependencies and libraries that IINA needs, unlike the libraries you get by installing mpv (or mpv-iina) using homebrew directly, this script:
You do not have to use this script in most cases. The libraries that IINA ships are compiled by `other/compile.rb`. All the dependencies of mpv-iina (and mpv-iina itself) is installed to the standard homebrew dirs. Each library is installed via
```bash
brew reinstall {package name} --build-from-source
```

- Compile all IINA dependencies with `MACOSX_DEPLOTMENT_TARGET=10.11` to be compatible with OS X 10.11. This is done by patching homebrew (see `other/homebrew.patch`) before compiling and disable homebrew auto update.
- Add `--build-bottle` option to homebrew when compiling to keep compatibility for some older architecture. See https://github.com/iina/iina/issues/1660 .
Note that this script no longer inject `MACOSX_DEPLOYMENT_TARGET` to the env of homebrew during compile time. All libraries are targeted to the compiling system. So, in order to support a lower version of macOS, please run this script on that specific version of macOS. This script was tested on macOS 10.15 (x86) and macOS 12 (arm).

- Patch Python before compiling harfbuzz to prevent Python from throwing errors complaining `$MACOSX_DEPLOYMENT_TARGET mismatch`. See https://stackoverflow.com/a/13315980 .

**Important** This script automatically reverts changes to homebrew before exiting, but does not restore Python to its original state. Please reinstall Python from homebrew after running this script if you want to use a clean Python.
12 changes: 0 additions & 12 deletions other/homebrew_arm.patch

This file was deleted.

12 changes: 0 additions & 12 deletions other/homebrew_x86.patch

This file was deleted.

0 comments on commit 25dbcd8

Please sign in to comment.