Add vidstab
This commit is contained in:
parent
0a829886d9
commit
f32eb1cb09
1 changed files with 36 additions and 0 deletions
36
scripts.d/50-vidstab.sh
Executable file
36
scripts.d/50-vidstab.sh
Executable file
|
@ -0,0 +1,36 @@
|
|||
#!/bin/bash
|
||||
|
||||
VIDSTAB_REPO="https://github.com/georgmartius/vid.stab.git"
|
||||
VIDSTAB_COMMIT="aeabc8daa7904f9edf7441a11f293965a5ef53b8"
|
||||
|
||||
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
|
||||
}
|
Loading…
Reference in a new issue