mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
ea87e347b6
commit
630d957b85
2 changed files with 75 additions and 0 deletions
75
projects/mpv.io/package.yml
Normal file
75
projects/mpv.io/package.yml
Normal file
|
@ -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
|
BIN
projects/mpv.io/test.wav
Normal file
BIN
projects/mpv.io/test.wav
Normal file
Binary file not shown.
Loading…
Reference in a new issue