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

33 lines
583 B
Bash
Executable File

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