50-vidstab.sh 867 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/bin/bash
  2. SCRIPT_REPO="https://github.com/georgmartius/vid.stab.git"
  3. SCRIPT_COMMIT="8dff7ad3c10ac663745f2263037f6e42b993519c"
  4. ffbuild_enabled() {
  5. [[ $VARIANT == lgpl* ]] && return -1
  6. return 0
  7. }
  8. ffbuild_dockerbuild() {
  9. mkdir build && cd build
  10. local mycmake=(
  11. -DBUILD_SHARED_LIBS=OFF
  12. -DUSE_OMP=ON
  13. )
  14. if [[ $TARGET == *arm64 ]]; then
  15. mycmake+=(
  16. -DSSE2_FOUND=FALSE
  17. )
  18. fi
  19. cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" "${mycmake[@]}" ..
  20. make -j$(nproc)
  21. make install
  22. if [[ $TARGET == linux* ]]; then
  23. echo "Libs.private: -ldl" >> "$FFBUILD_PREFIX"/lib/pkgconfig/vidstab.pc
  24. fi
  25. }
  26. ffbuild_configure() {
  27. echo --enable-libvidstab
  28. }
  29. ffbuild_unconfigure() {
  30. echo --disable-libvidstab
  31. }