summaryrefslogtreecommitdiffstats
path: root/update
diff options
context:
space:
mode:
authorzeromind <zeromind@gmx.com>2022-08-31 22:17:09 +0000
committerKevin Mitchell <kevmitch@gmail.com>2022-08-31 15:59:07 -0700
commitdb240a2a9b3045410ec1f47262be93222e4d0a54 (patch)
tree42fa26a59df6e0f4575f863a6fc100deebd294df /update
parent383e54c100319a95e77d97372d0659d58ad8c582 (diff)
downloadmpv-build-db240a2a9b3045410ec1f47262be93222e4d0a54.tar.bz2
mpv-build-db240a2a9b3045410ec1f47262be93222e4d0a54.tar.xz
include libplacebo
Include libplacebo to add support `vo=gpu-next` in mpv, as the OS-provided libplacebo may not be recent enough. Explicitly link mpv and ffmpeg against stdc++ in case libplacebo was built with glslang, which does not have pkg-config files. Adjust the update script to also checkout git submodules as well, which is needed for libplacebo.
Diffstat (limited to 'update')
-rwxr-xr-xupdate15
1 files changed, 10 insertions, 5 deletions
diff --git a/update b/update
index 2e43198..8b06d61 100755
--- a/update
+++ b/update
@@ -11,15 +11,17 @@ do_clone()
cd "$1"
git remote set-url origin "$2"
git fetch
+ git submodule update --init
)
}
do_clone_all()
{
- do_clone "ffmpeg" "https://github.com/FFmpeg/FFmpeg.git"
- #do_clone "fribidi" "http://anongit.freedesktop.org/git/fribidi/fribidi.git"
- do_clone "libass" "https://github.com/libass/libass.git"
- do_clone "mpv" "https://github.com/mpv-player/mpv.git"
+ do_clone "ffmpeg" "https://github.com/FFmpeg/FFmpeg.git"
+ #do_clone "fribidi" "http://anongit.freedesktop.org/git/fribidi/fribidi.git"
+ do_clone "libass" "https://github.com/libass/libass.git"
+ do_clone "libplacebo" "https://github.com/haasn/libplacebo.git"
+ do_clone "mpv" "https://github.com/mpv-player/mpv.git"
}
do_gitmaster()
@@ -47,7 +49,7 @@ do_releasetag()
local prefix= # by default, don't use a prefix
case "$1" in
ffmpeg) prefix=n;; # e.g. n3.3.1
- mpv) prefix=v;; # e.g. v0.26.0
+ mpv|libplacebo) prefix=v;; # e.g. v0.26.0
esac
(
@@ -86,6 +88,7 @@ checkout()
checkout_ffmpeg=master
#checkout_fribidi=release
checkout_libass=master
+checkout_libplacebo=master
checkout_mpv=master
@@ -96,6 +99,7 @@ checkout_all()
checkout ffmpeg $checkout_ffmpeg
#$checkout fribidi $checkout_fribidi
checkout libass $checkout_libass
+ checkout libplacebo $checkout_libplacebo
checkout mpv $checkout_mpv
}
@@ -124,6 +128,7 @@ case "$1" in
checkout_ffmpeg="master -"
#checkout_fribidi="master -"
checkout_libass="master -"
+ checkout_libplacebo="master -"
checkout_mpv="master -"
;;
--release)