{% set name = "libavif" %}
{% set version = "0.9.0" %}

package:
  name: {{ name|lower }}
  version: {{ version }}

source:
  url: https://github.com/AOMediaCodec/libavif/archive/refs/tags/v{{ version }}.tar.gz
  sha256: ea1603fc18e7dd20cf01f0b405156576886ecb5df84db8c0e87187cd2f8a00f4
  patches:
    - install-tests.patch

build:
  number: 0

requirements:
  build:
    - cmake
    - {{ compiler('c') }}
    - nasm
    - ninja
    - meson
  host:
    - aom
    # - svt-av1  # TODO: linking error with this optional library

test:
  source_files:
    - tests/data
  commands:
    - aviftest tests/data/

about:
  home: https://github.com/AOMediaCodec/libavif
  license: BSD-2-Clause
  license_family: BSD
  license_file: LICENSE
  summary: 'A friendly, portable C implementation of the AV1 Image File Format'
  description: |
    This library aims to be a friendly, portable C implementation of the AV1
    Image File Format, as described here
    <https://aomediacodec.github.io/av1-avif/>.

extra:
  recipe-maintainers:
    - carterbox
    - hmaarrfk

{% set name = "libavif" %}
{% set version = "0.9.0" %}

package:
  name: {{ name|lower }}
  version: {{ version }}

source:
  url: https://github.com/AOMediaCodec/libavif/archive/refs/tags/v{{ version }}.tar.gz
  sha256: ea1603fc18e7dd20cf01f0b405156576886ecb5df84db8c0e87187cd2f8a00f4
  patches:
    - install-tests.patch

build:
  run_exports:
    - {{ pin_subpackage('libavif', min_pin='x.x.x', max_pin='x') }}
  number: 0

requirements:
  build:
    - cmake
    - {{ compiler('c') }}
    - nasm
    - ninja
    - meson
  host:
    - aom
    # - svt-av1  # TODO: linking error with this optional library

test:
  source_files:
    - tests/data
  commands:
    - aviftest tests/data/

about:
  home: https://github.com/AOMediaCodec/libavif
  license: BSD-2-Clause
  license_family: BSD
  license_file: LICENSE
  summary: 'A friendly, portable C implementation of the AV1 Image File Format'
  description: |
    This library aims to be a friendly, portable C implementation of the AV1
    Image File Format, as described here
    <https://aomediacodec.github.io/av1-avif/>.

extra:
  recipe-maintainers:
    - carterbox
    - hmaarrfk

Add run export because this is a library
NEW: Add run export because this is a library
