FFmpeg-Builds/scripts.d/50-libopus.sh
2024-03-19 22:55:26 +01:00

42 lines
698 B
Bash
Executable File

#!/bin/bash
SCRIPT_REPO="https://github.com/xiph/opus.git"
SCRIPT_COMMIT="95dbea83486b90256785aa3c75dd2827f591a34c"
ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
default_dl .
echo "./autogen.sh"
}
ffbuild_dockerbuild() {
local myconf=(
--prefix="$FFBUILD_PREFIX"
--host="$FFBUILD_TOOLCHAIN"
--disable-shared
--enable-static
--disable-extra-programs
)
if [[ $TARGET == winarm* ]]; then
myconf+=(
--disable-rtcd
)
fi
./configure "${myconf[@]}"
make -j$(nproc)
make install
}
ffbuild_configure() {
echo --enable-libopus
}
ffbuild_unconfigure() {
echo --disable-libopus
}