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

versions:
  github: webmproject/libvpx/tags
  strip: /^v/

build:
  dependencies:
    yasm.tortall.net: '*'
  script: |
    ./configure $ARGS
    make --jobs {{ hw.concurrency }} install
  env:
    ARGS:
      - --prefix="{{prefix}}"
      - --disable-dependency-tracking
      - --disable-examples
      - --disable-unit-tests
      - --enable-pic
      - --enable-shared
      - --enable-vp9-highbitdepth

test:
  dependencies:
    freedesktop.org/pkg-config: '*'
  script:
    pkg-config --modversion vpx | grep {{version}}