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