2020-09-06 20:21:23 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
VIDSTAB_REPO="https://github.com/georgmartius/vid.stab.git"
|
2021-01-09 05:13:31 +00:00
|
|
|
# TODO: clamp to e7715fc until georgmartius/vid.stab#104 get fixed
|
|
|
|
VIDSTAB_COMMIT="e7715fcf329573cdcff5c57d0e4a25f4c3a0cb7f"
|
2020-09-06 20:21:23 +00:00
|
|
|
|
|
|
|
ffbuild_enabled() {
|
|
|
|
[[ $VARIANT == gpl* ]] || return -1
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_dockerbuild() {
|
|
|
|
git-mini-clone "$VIDSTAB_REPO" "$VIDSTAB_COMMIT" vidstab
|
|
|
|
cd vidstab
|
|
|
|
|
|
|
|
mkdir build && cd build
|
|
|
|
|
2021-05-14 02:52:29 +00:00
|
|
|
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DBUILD_SHARED_LIBS=OFF -DUSE_OMP=ON ..
|
2020-09-06 20:21:23 +00:00
|
|
|
make -j$(nproc)
|
|
|
|
make install
|
2021-05-14 02:52:29 +00:00
|
|
|
|
|
|
|
if [[ $TARGET == linux* ]]; then
|
|
|
|
echo "Libs.private: -ldl" >> "$FFBUILD_PREFIX"/lib/pkgconfig/vidstab.pc
|
|
|
|
fi
|
2020-09-06 20:21:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_configure() {
|
|
|
|
echo --enable-libvidstab
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_unconfigure() {
|
|
|
|
echo --disable-libvidstab
|
|
|
|
}
|