FFmpeg-Builds/scripts.d/50-libopus.sh
2024-10-06 02:29:04 +02:00

42 lines
698 B
Bash
Executable File

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