-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmpv.yml
46 lines (40 loc) · 1.57 KB
/
mpv.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
pkgtype: pie
summary: A free, open source, and cross-platform media player based on MPlayer and mplayer2
web-url: https://mpv.io
src-url: https://github.com/mpv-player/mpv/archive/refs/tags/v0.39.0.tar.gz
src-sha: 2ca92437affb62c2b559b4419ea4785c70d023590500e8a52e95ea3ab4554683
dep-pkg: libplacebo libbluray libluajit libmujs libass libuchardet librubberband mesa
dep-lib: soxr xcb-dri3
dopatch: |
gsed -i "/iconv =/c iconv = dependency('libiconv', method : 'pkg-config')" meson.build
ln -s "$libexpat_LIBRARY_DIR/libexpat$SHARED_LIBRARY_SUFFIX" "../lib/libexpat$SHARED_LIBRARY_SUFFIX"
rm ../lib/libexpat.a
install -d ../lib/pkgconfig
cat > ../lib/pkgconfig/expat.pc <<EOF
Name: expat
Version: 2.6.4
Description: expat XML parser
URL: https://libexpat.github.io/
Libs: -L$PACKAGE_WORKING_DIR/lib -lexpat -lm
Cflags: -I$libexpat_INCLUDE_DIR
EOF
install: |
mesonw \
-Dtests=false \
-Dlibmpv=false \
-Dcplayer=true \
-Dsdl2=enabled \
-Dvulkan=enabled \
-Duchardet=enabled \
-Dlibbluray=enabled \
-Dlibarchive=enabled \
-Djavascript=enabled \
-Dlua=luajit
doextra: |
run cp -r "$libfontconfig_INSTALL_DIR/etc/fonts" etc/
run cp -r "$libdrm_INSTALL_DIR/share/libdrm" share/
caveats: |
The following environment variables should be set if you move/copy this software to other location
MPV_INSTALLED_DIR=/somewhere
export FONTCONFIG_FILE=$MPV_INSTALLED_DIR/etc/fonts/fonts.conf
export AMDGPU_ASIC_ID_TABLE_PATH=$MPV_INSTALLED_DIR/share/libdrm/amdgpu.ids