FFmpeg-Builds/scripts.d/50-libtheora.sh
2025-04-07 20:21:54 +02:00

46 lines
822 B
Bash
Executable File

#!/bin/bash
SCRIPT_REPO="https://github.com/xiph/theora.git"
SCRIPT_COMMIT="b167cb4a3e3e2d3239d71f0ca2cbc25af4f2183c"
ffbuild_enabled() {
return 0
}
ffbuild_dockerbuild() {
./autogen.sh
local myconf=(
--prefix="$FFBUILD_PREFIX"
--disable-shared
--enable-static
--with-pic
--disable-examples
--disable-oggtest
--disable-vorbistest
--disable-spec
--disable-doc
)
if [[ $TARGET == win* || $TARGET == linux* ]]; then
myconf+=(
--host="$FFBUILD_TOOLCHAIN"
)
else
echo "Unknown target"
return -1
fi
./configure "${myconf[@]}"
make -j$(nproc)
make install
}
ffbuild_configure() {
echo --enable-libtheora
}
ffbuild_unconfigure() {
echo --disable-libtheora
}