FFmpeg-Builds/scripts.d/50-rav1e.sh
2021-04-05 00:10:08 +02:00

35 lines
696 B
Bash
Executable file

#!/bin/bash
RAV1E_REPO="https://github.com/xiph/rav1e.git"
RAV1E_COMMIT="d6e4b5c714f107f9cc6991d44927fd029ba53a72"
ffbuild_enabled() {
[[ $TARGET == win32 ]] && return -1
return 0
}
ffbuild_dockerstage() {
to_df "ADD $SELF /stage.sh"
to_df "RUN run_stage"
}
ffbuild_dockerbuild() {
git-mini-clone "$RAV1E_REPO" "$RAV1E_COMMIT" rav1e
cd rav1e
cargo cinstall \
--target="$FFBUILD_RUST_TARGET" \
--prefix="$FFBUILD_PREFIX" \
--library-type=staticlib \
--crt-static \
--release
}
ffbuild_configure() {
echo --enable-librav1e
}
ffbuild_unconfigure() {
[[ $VARIANT == *4.2* ]] && return 0
echo --disable-librav1e
}