FFmpeg-Builds/scripts.d/50-frei0r.sh

48 lines
926 B
Bash
Raw Normal View History

#!/bin/bash
2022-07-12 15:54:12 +00:00
SCRIPT_REPO="https://github.com/dyne/frei0r.git"
2023-02-12 13:40:12 +00:00
SCRIPT_COMMIT="599b47843400a248d2b415f46df6d1777902e865"
ffbuild_enabled() {
[[ $VARIANT == lgpl* ]] && return -1
[[ $ADDINS_STR == *4.4* ]] && return -1
return 0
}
ffbuild_dockerbuild() {
2022-07-12 15:54:12 +00:00
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" frei0r
cd frei0r
./autogen.sh
local myconf=(
--prefix="$FFBUILD_PREFIX"
--disable-shared
--enable-static
--with-pic
--enable-cpuflags
)
if [[ $TARGET == win* || $TARGET == linux* ]]; then
myconf+=(
--host="$FFBUILD_TOOLCHAIN"
)
else
echo "Unknown target"
return -1
fi
./configure "${myconf[@]}"
make -C include -j$(nproc)
make -C include install
make install-pkgconfigDATA
}
ffbuild_configure() {
echo --enable-frei0r
}
ffbuild_unconfigure() {
echo --disable-frei0r
}