distributable:
  url: https://github.com/georgmartius/vid.stab/archive/refs/tags/v{{version}}.tar.gz
  strip-components: 1

versions:
  github: georgmartius/vid.stab/tags
  strip:
    - /^v/
  ignore:
    - /^before_complex_transforms/
    - /^release-/

build:
  dependencies:
    cmake.org: '*'
  script: |
    cmake . $ARGS
    make install
  env:
    ARGS:
      - -DCMAKE_INSTALL_PREFIX="{{prefix}}"
      - -DCMAKE_BUILD_TYPE=Release
      - -DUSE_OMP=OFF

test:
  script: |
    c++ vidstab_version.cpp -o vidstab_version -lvidstab
    ./vidstab_version
