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

44 lines
876 B
Bash
Executable File

#!/bin/bash
SCRIPT_REPO="https://github.com/ultravideo/kvazaar.git"
SCRIPT_COMMIT="6b7f065bd8c1e265b50bafa7e84248fb09a391c9"
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
echo "Cflags.private: -DKVZ_STATIC_LIB" >> "$FFBUILD_PREFIX"/lib/pkgconfig/kvazaar.pc
echo "Libs.private: -lpthread" >> "$FFBUILD_PREFIX"/lib/pkgconfig/kvazaar.pc
}
ffbuild_configure() {
echo --enable-libkvazaar
}
ffbuild_unconfigure() {
echo --disable-libkvazaar
}