FFmpeg-Builds/scripts.d/50-rav1e.sh
2024-10-06 02:29:04 +02:00

39 lines
806 B
Bash
Executable File

#!/bin/bash
SCRIPT_REPO="https://github.com/xiph/rav1e.git"
SCRIPT_COMMIT="09a4111ff5e4fd803927ba47ad2c96551d4fd2f3"
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
# The pinned version is broken, and upstream does not react
cargo update cc
cargo cinstall -v "${myconf[@]}"
chmod 644 "${FFBUILD_PREFIX}"/lib/*rav1e*
}
ffbuild_configure() {
echo --enable-librav1e
}
ffbuild_unconfigure() {
echo --disable-librav1e
}