FFmpeg-Builds/scripts.d/50-rav1e.sh
2024-12-31 16:41:09 +01:00

39 lines
806 B
Bash
Executable File

#!/bin/bash
SCRIPT_REPO="https://github.com/xiph/rav1e.git"
SCRIPT_COMMIT="62b4888672aa5c1c8084a8114f999c0699e08080"
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
}