diff --git a/projects/mpv.io/package.yml b/projects/mpv.io/package.yml new file mode 100644 index 00000000..d4badd98 --- /dev/null +++ b/projects/mpv.io/package.yml @@ -0,0 +1,75 @@ +distributable: + url: git+https://github.com/mpv-player/mpv + ref: ${{version.tag}} + +versions: + github: mpv-player/mpv + +dependencies: + ffmpeg.org: '*' + libjpeg-turbo.org: 2 + libarchive.org: 3 + github.com/libass/libass: ^0.17 + videolan.org/libplacebo: 6 + littlecms.com: 2 + luajit.org: 2 + mujs.com: 1 + freedesktop.org/uchardet: 0 + vapoursynth.com: 66 + yt-dlp.org: '*' + linux: + alsa-project.org/alsa-lib: 1 + github.com/adah1972/libunibreak: 5 + +build: + dependencies: + mesonbuild.com: 1 + ninja-build.org: 1 + git-scm.org: 2 + invisible-island.net/ncurses: 6 + script: + # FIXME: this is an extreme measure, but otherwise swift tries to mix apple's 2008 + # ncurses with ours; believe me, i tried many workarounds here. + # ncurses isn't even used by us; it's brought in as part of python being used by + # meson and even if we remove it right here, the bkpyvenv script brings it back when + # running meson using `pkgx +python~3.11`. :((( + - run: | + if test -d $NCURSES_INCLUDE; then + mv $NCURSES_INCLUDE ${NCURSES_INCLUDE}.bak + fi + if: darwin + + - meson setup build $ARGS + - meson compile -C build + - meson install -C build + + - run: | + if test -d ${NCURSES_INCLUDE}.bak; then + mv ${NCURSES_INCLUDE}.bak $NCURSES_INCLUDE + fi + if: darwin + env: + ARGS: + - -Djavascript=enabled + - -Dlibmpv=true + - -Dlua=luajit + - -Dlibarchive=enabled + - -Duchardet=enabled + - -Dvapoursynth=enabled + - -Dmanpage-build=disabled + - --sysconfdir={{prefix}}/etc + - --datadir={{prefix}}/share + - --prefix={{prefix}} + - --buildtype=release + darwin: + NCURSES_INCLUDE: ${{deps.invisible-island.net/ncurses.prefix}}/include + linux: + CC: clang + LD: clang + +test: + - mpv --ao=null --vo=null test.wav + - mpv --vf=help | grep vapoursynth + +provides: + - bin/mpv diff --git a/projects/mpv.io/test.wav b/projects/mpv.io/test.wav new file mode 100644 index 00000000..c846b8a9 Binary files /dev/null and b/projects/mpv.io/test.wav differ