42 lines
898 B
Bash
Executable file
42 lines
898 B
Bash
Executable file
#!/bin/bash
|
|
|
|
SCRIPT_REPO="https://github.com/georgmartius/vid.stab.git"
|
|
SCRIPT_COMMIT="05829db776069b7478dd2d90b6e0081668a41abc"
|
|
|
|
ffbuild_enabled() {
|
|
[[ $VARIANT == lgpl* ]] && return -1
|
|
return 0
|
|
}
|
|
|
|
ffbuild_dockerbuild() {
|
|
cd "$FFBUILD_DLDIR/$SELF"
|
|
|
|
mkdir build && cd build
|
|
|
|
local mycmake=(
|
|
-DBUILD_SHARED_LIBS=OFF
|
|
-DUSE_OMP=ON
|
|
)
|
|
|
|
if [[ $TARGET == *arm64 ]]; then
|
|
mycmake+=(
|
|
-DSSE2_FOUND=FALSE
|
|
)
|
|
fi
|
|
|
|
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" "${mycmake[@]}" ..
|
|
make -j$(nproc)
|
|
make install
|
|
|
|
if [[ $TARGET == linux* ]]; then
|
|
echo "Libs.private: -ldl" >> "$FFBUILD_PREFIX"/lib/pkgconfig/vidstab.pc
|
|
fi
|
|
}
|
|
|
|
ffbuild_configure() {
|
|
echo --enable-libvidstab
|
|
}
|
|
|
|
ffbuild_unconfigure() {
|
|
echo --disable-libvidstab
|
|
}
|