FFmpeg-Builds/scripts.d/50-rav1e.sh

38 lines
693 B
Bash
Raw Normal View History

2020-09-05 15:52:40 +00:00
#!/bin/bash
2021-04-04 02:08:20 +00:00
RAV1E_REPO="https://github.com/xiph/rav1e.git"
2022-06-09 20:21:18 +00:00
RAV1E_COMMIT="a8d1e46e0dba460345e70a519d3becd079bb3acd"
2020-09-05 15:52:40 +00:00
ffbuild_enabled() {
[[ $TARGET == win32 ]] && return -1
return 0
}
ffbuild_dockerbuild() {
2021-04-04 02:08:20 +00:00
git-mini-clone "$RAV1E_REPO" "$RAV1E_COMMIT" rav1e
cd rav1e
2020-09-05 15:52:40 +00:00
local myconf=(
2021-04-04 02:08:20 +00:00
--prefix="$FFBUILD_PREFIX" \
2021-04-04 20:58:11 +00:00
--library-type=staticlib \
2021-04-04 02:08:20 +00:00
--crt-static \
--release
)
if [[ -n "$FFBUILD_RUST_TARGET" ]]; then
myconf+=(
--target="$FFBUILD_RUST_TARGET"
)
fi
cargo cinstall "${myconf[@]}"
2020-09-05 15:52:40 +00:00
}
ffbuild_configure() {
echo --enable-librav1e
}
ffbuild_unconfigure() {
echo --disable-librav1e
}