2020-09-06 20:21:23 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
VIDSTAB_REPO="https://github.com/georgmartius/vid.stab.git"
|
2020-09-27 14:17:47 +00:00
|
|
|
VIDSTAB_COMMIT="e851e7b11c482c116d22b247821f22862a207245"
|
2020-09-06 20:21:23 +00:00
|
|
|
|
|
|
|
ffbuild_enabled() {
|
|
|
|
[[ $VARIANT == gpl* ]] || return -1
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_dockerstage() {
|
|
|
|
to_df "ADD $SELF /stage.sh"
|
|
|
|
to_df "RUN run_stage"
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_dockerbuild() {
|
|
|
|
git-mini-clone "$VIDSTAB_REPO" "$VIDSTAB_COMMIT" vidstab
|
|
|
|
cd vidstab
|
|
|
|
|
|
|
|
mkdir build && cd build
|
|
|
|
|
|
|
|
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DBUILD_SHARED_LIBS=OFF ..
|
|
|
|
make -j$(nproc)
|
|
|
|
make install
|
|
|
|
|
|
|
|
cd ../..
|
|
|
|
rm -rf vidstab
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_configure() {
|
|
|
|
echo --enable-libvidstab
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_unconfigure() {
|
|
|
|
echo --disable-libvidstab
|
|
|
|
}
|