#!/bin/bash SCRIPT_REPO="https://github.com/xiph/rav1e.git" SCRIPT_COMMIT="537b1b91b861210062b1cf105a5bd0243bab0b90" ffbuild_enabled() { [[ $TARGET == win32 ]] && return -1 return 0 } ffbuild_dockerbuild() { git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" rav1e cd rav1e local myconf=( --prefix="$FFBUILD_PREFIX" \ --library-type=staticlib \ --crt-static \ --release ) if [[ -n "$FFBUILD_RUST_TARGET" ]]; then myconf+=( --target="$FFBUILD_RUST_TARGET" ) fi export CC="${FFBUILD_CROSS_PREFIX}gcc" cargo cinstall "${myconf[@]}" } ffbuild_configure() { echo --enable-librav1e } ffbuild_unconfigure() { echo --disable-librav1e }