2020-09-05 15:52:40 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-07-12 15:54:12 +00:00
|
|
|
SCRIPT_REPO="https://github.com/xiph/rav1e.git"
|
2022-07-13 15:08:17 +00:00
|
|
|
SCRIPT_COMMIT="182bbff8c4398af56123977ac91f1f3f589fbd85"
|
2020-09-05 15:52:40 +00:00
|
|
|
|
|
|
|
ffbuild_enabled() {
|
|
|
|
[[ $TARGET == win32 ]] && return -1
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_dockerbuild() {
|
2022-07-12 15:54:12 +00:00
|
|
|
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" rav1e
|
2021-04-04 02:08:20 +00:00
|
|
|
cd rav1e
|
2020-09-05 15:52:40 +00:00
|
|
|
|
2021-05-13 00:17:17 +00:00
|
|
|
local myconf=(
|
2021-04-04 02:08:20 +00:00
|
|
|
--prefix="$FFBUILD_PREFIX" \
|
2021-04-04 20:58:11 +00:00
|
|
|
--library-type=staticlib \
|
2021-04-04 02:08:20 +00:00
|
|
|
--crt-static \
|
|
|
|
--release
|
2021-05-13 00:17:17 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
if [[ -n "$FFBUILD_RUST_TARGET" ]]; then
|
|
|
|
myconf+=(
|
|
|
|
--target="$FFBUILD_RUST_TARGET"
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
|
2022-07-06 12:55:26 +00:00
|
|
|
export CC="${FFBUILD_CROSS_PREFIX}gcc"
|
2022-05-09 22:15:31 +00:00
|
|
|
|
2021-05-13 00:17:17 +00:00
|
|
|
cargo cinstall "${myconf[@]}"
|
2020-09-05 15:52:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_configure() {
|
|
|
|
echo --enable-librav1e
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_unconfigure() {
|
|
|
|
echo --disable-librav1e
|
|
|
|
}
|