37 lines
693 B
Bash
Executable file
37 lines
693 B
Bash
Executable file
#!/bin/bash
|
|
|
|
RAV1E_REPO="https://github.com/xiph/rav1e.git"
|
|
RAV1E_COMMIT="9417a4df1069cc066d499e04b9130ffd32019ed1"
|
|
|
|
ffbuild_enabled() {
|
|
[[ $TARGET == win32 ]] && return -1
|
|
return 0
|
|
}
|
|
|
|
ffbuild_dockerbuild() {
|
|
git-mini-clone "$RAV1E_REPO" "$RAV1E_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
|
|
|
|
cargo cinstall "${myconf[@]}"
|
|
}
|
|
|
|
ffbuild_configure() {
|
|
echo --enable-librav1e
|
|
}
|
|
|
|
ffbuild_unconfigure() {
|
|
echo --disable-librav1e
|
|
}
|