FFmpeg-Builds/scripts.d/50-rav1e.sh
2024-06-23 13:17:34 +02:00

36 lines
721 B
Bash
Executable File

#!/bin/bash
SCRIPT_REPO="https://github.com/xiph/rav1e.git"
SCRIPT_COMMIT="c0afbf9c2859702b7768f2dba27060ea3a8fff22"
ffbuild_enabled() {
[[ $TARGET == win32 ]] && return -1
return 0
}
ffbuild_dockerbuild() {
local myconf=(
--prefix="$FFBUILD_PREFIX"
--target="${FFBUILD_RUST_TARGET}"
--library-type=staticlib
--crt-static
--release
)
# Pulls in target-libs for host tool builds otherwise.
# Luckily no target libraries are needed.
unset PKG_CONFIG_LIBDIR
cargo cinstall -v "${myconf[@]}"
chmod 644 "${FFBUILD_PREFIX}"/lib/*rav1e*
}
ffbuild_configure() {
echo --enable-librav1e
}
ffbuild_unconfigure() {
echo --disable-librav1e
}