Skip to content

Commit 59306c8

Browse files
committed
Merge branch 'master' into spiced
2 parents 34ade5c + 53901fe commit 59306c8

9 files changed

Lines changed: 70 additions & 13 deletions

File tree

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ PKG_CONFIG_PATH="${PREFIX}/lib/pkgconfig"
77
CMAKE_GENERATOR="Ninja"
88
MACOSX_DEPLOYMENT_TARGET="$(sw_vers -productVersion 2>/dev/null || echo "15.4")"
99
CMAKE_POLICY_VERSION_MINIMUM="4.0"
10-
MACOSX_DEPLOYMENT_TARGET="${MACOSX_DEPLOYMENT_TARGET:-15.5}"
10+
MACOSX_DEPLOYMENT_TARGET="${MACOSX_DEPLOYMENT_TARGET:-26.0}"
1111
CFLAGS="-mcpu=native"
1212
CXXFLAGS="${CFLAGS}"

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313

1414
jobs:
1515
build:
16-
runs-on: macos-15
16+
runs-on: macos-26
1717

1818
permissions:
1919
contents: read
@@ -47,20 +47,20 @@ jobs:
4747
- name: Build & Install
4848
run: ./build-all --bundle
4949
env:
50-
MACOSX_DEPLOYMENT_TARGET: 15.5
50+
MACOSX_DEPLOYMENT_TARGET: 26.0
5151

5252
- name: Upload Artifact
5353
id: upload
5454
uses: actions/upload-artifact@v4
5555
with:
56-
name: mpv-macos-15-arm64
56+
name: mpv-macos-26-arm64
5757
path: mpv.tar.gz
5858
if-no-files-found: error
5959
compression-level: 0
6060
overwrite: true
6161

6262
- name: Attest Artifact
63-
uses: actions/attest-build-provenance@v2
63+
uses: actions/attest-build-provenance@v3
6464
with:
65-
subject-name: mpv-macos-15-arm64.zip
65+
subject-name: mpv-macos-26-arm64.zip
6666
subject-digest: sha256:${{ steps.upload.outputs.artifact-digest }}

.github/workflows/lint.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
run: editorconfig-checker
3838

3939
actionlint:
40+
if: false # doesn't support macos-26
4041
runs-on: ubuntu-latest
4142
steps:
4243
- name: Checkout
@@ -53,7 +54,7 @@ jobs:
5354
uses: actions/checkout@v5
5455

5556
- name: Setup Node
56-
uses: actions/setup-node@v4
57+
uses: actions/setup-node@v5
5758

5859
- name: Install
5960
run: npm install prettier@next

.yamllint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ extends: default
33

44
rules:
55
truthy: disable
6+
comments:
7+
min-spaces-from-content: 1

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A set of scripts that help build [mpv](https://mpv.io) on macOS.
88
> [!TIP]
99
> Prebuilt mpv.app from GitHub Actions is available at [nightly.link].
1010
>
11-
> Download: [`mpv-macos-15-arm64.zip`] (macOS 15.5 & Apple M1 or newer)
11+
> Download: [`mpv-macos-26-arm64.zip`] (macOS 26.0 & Apple M1 or newer)
1212
1313
### Requirements
1414

@@ -93,5 +93,5 @@ macos-render-timer=feedback
9393
- `MTL_HUD_ENABLED=1` - enables the [Metal Performance HUD].
9494

9595
[nightly.link]: https://nightly.link/m154k1/mpv-build-macOS/workflows/build/master
96-
[`mpv-macos-15-arm64.zip`]: https://nightly.link/m154k1/mpv-build-macOS/workflows/build/master/mpv-macos-15-arm64.zip
96+
[`mpv-macos-26-arm64.zip`]: https://nightly.link/m154k1/mpv-build-macOS/workflows/build/master/mpv-macos-26-arm64.zip
9797
[Metal Performance HUD]: https://developer.apple.com/documentation/xcode/monitoring-your-metal-apps-graphics-performance

build-libvpx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,16 @@ pkgname="libvpx"
1010
pkgdir="${STOWDIR}/${pkgname}"
1111
srcdir="src/libvpx"
1212

13+
target="$(uname -m)-darwin$(uname -r | cut -d . -f 1)-gcc"
14+
1315
echo
1416
echo "*** $0: started"
1517

1618
cd "${srcdir}"
1719

1820
./configure \
1921
--prefix="${pkgdir}" \
22+
--target="${target}" \
2023
--enable-shared \
2124
--enable-runtime-cpu-detect \
2225
--enable-pic \

build-shaderc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ cmake -B "${builddir}" -S "${srcdir}" \
2727
-DCMAKE_INSTALL_NAME_DIR="${pkgdir}/lib" \
2828
-DCMAKE_BUILD_TYPE=Release \
2929
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \
30+
-DSHADERC_SKIP_EXECUTABLES=ON \
3031
-DSHADERC_SKIP_TESTS=ON \
3132
-DSHADERC_SKIP_EXAMPLES=ON \
3233
"$@"
@@ -36,7 +37,7 @@ cmake --build "${builddir}"
3637
rm -rf "${pkgdir}"
3738

3839
cmake --install "${builddir}"
39-
rm -rf "${pkgdir}"/{bin,lib/{*.a,pkgconfig/*{combined,static}.pc}}
40+
rm -rf "${pkgdir}"/lib/{*.a,pkgconfig/*{combined,static}.pc}
4041
stow -Rd "${STOWDIR}" "${pkgname}"
4142

4243
rm -rf "${builddir}"

fetch

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ fetch_libvpx() {
126126
local url="https://chromium.googlesource.com/webm/libvpx"
127127
rm -rf src/libvpx
128128
git -C src clone --depth 1 "${url}"
129+
git -C src/libvpx apply --apply --stat "$(realpath patches/libvpx-darwin25.diff)"
129130
}
130131

131132
fetch_libwebp() {
@@ -153,9 +154,16 @@ fetch_mpv() {
153154
}
154155

155156
fetch_opus() {
156-
local version="1.5.2"
157-
local url="https://downloads.xiph.org/releases/opus/opus-${version}.tar.gz"
158-
fetch_tar "${url}" opus
157+
local url="https://github.com/xiph/opus.git"
158+
rm -rf src/opus
159+
git -C src clone --single-branch "${url}"
160+
161+
local model
162+
cd src/opus
163+
model="$(sed -nE 's;^dnn/download_model\.sh "(.+)"$;\1;p' autogen.sh)"
164+
echo "dnn model checksum: '${model}'"
165+
./dnn/download_model.sh "${model}"
166+
cd -
159167
}
160168

161169
fetch_shaderc() {

patches/libvpx-darwin25.diff

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
diff --git a/build/make/configure.sh b/build/make/configure.sh
2+
index d1d89aa..5434e83 100644
3+
--- a/build/make/configure.sh
4+
+++ b/build/make/configure.sh
5+
@@ -832,7 +832,7 @@ process_common_toolchain() {
6+
tgt_isa=x86_64
7+
tgt_os=`echo $gcctarget | sed 's/.*\(darwin1[0-9]\).*/\1/'`
8+
;;
9+
- *darwin2[0-4]*)
10+
+ *darwin2[0-5]*)
11+
tgt_isa=`uname -m`
12+
tgt_os=`echo $gcctarget | sed 's/.*\(darwin2[0-9]\).*/\1/'`
13+
;;
14+
@@ -991,7 +991,7 @@ EOF
15+
add_cflags "-mmacosx-version-min=10.15"
16+
add_ldflags "-mmacosx-version-min=10.15"
17+
;;
18+
- *-darwin2[0-4]-*)
19+
+ *-darwin2[0-5]-*)
20+
add_cflags "-arch ${toolchain%%-*}"
21+
add_ldflags "-arch ${toolchain%%-*}"
22+
;;
23+
diff --git a/configure b/configure
24+
index 356bbe2..8eee4e4 100755
25+
--- a/configure
26+
+++ b/configure
27+
@@ -104,6 +104,7 @@ all_platforms="${all_platforms} arm64-darwin21-gcc"
28+
all_platforms="${all_platforms} arm64-darwin22-gcc"
29+
all_platforms="${all_platforms} arm64-darwin23-gcc"
30+
all_platforms="${all_platforms} arm64-darwin24-gcc"
31+
+all_platforms="${all_platforms} arm64-darwin25-gcc"
32+
all_platforms="${all_platforms} arm64-linux-gcc"
33+
all_platforms="${all_platforms} arm64-win64-gcc"
34+
all_platforms="${all_platforms} arm64-win64-vs15"
35+
@@ -169,6 +170,7 @@ all_platforms="${all_platforms} x86_64-darwin21-gcc"
36+
all_platforms="${all_platforms} x86_64-darwin22-gcc"
37+
all_platforms="${all_platforms} x86_64-darwin23-gcc"
38+
all_platforms="${all_platforms} x86_64-darwin24-gcc"
39+
+all_platforms="${all_platforms} x86_64-darwin25-gcc"
40+
all_platforms="${all_platforms} x86_64-iphonesimulator-gcc"
41+
all_platforms="${all_platforms} x86_64-linux-gcc"
42+
all_platforms="${all_platforms} x86_64-linux-icc"

0 commit comments

Comments
 (0)