pantry/projects/gitlab.com/AOMediaCodec/SVT-AV1/package.yml
Andrew aef71a60a1
gitlab.com/AOMediaCodec/SVT-AV1 (#2568)
* gitlab.com/AOMediaCodec/SVT-AV1

* DCMAKE_C_COMPILER && DCMAKE_CXX_COMPILER

* +tea.xyz/gx/make
2023-07-12 14:41:30 -04:00

40 lines
948 B
YAML

distributable:
url: https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/v{{version}}/SVT-AV1-v{{version}}.tar.gz
strip-components: 1
versions:
gitlab: AOMediaCodec/SVT-AV1
build:
dependencies:
tea.xyz/gx/cc: c99
cmake.org: '*'
yasm.tortall.net: '*'
linux:
tea.xyz/gx/make: '*'
script:
- cmake -S . -B build $ARGS
- cmake --build build
- cmake --install build
env:
ARGS:
- -DBUILD_SHARED_LIBS=OFF
- -DCMAKE_INSTALL_PREFIX={{prefix}}
- -DCMAKE_INSTALL_LIBDIR=lib
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_FIND_FRAMEWORK=LAST
- -DCMAKE_VERBOSE_MAKEFILE=ON
- -Wno-dev
- -DBUILD_TESTING=OFF
linux:
ARGS:
- -DCMAKE_C_COMPILER={{deps.tea.xyz/gx/cc.prefix}}/bin/cc
- -DCMAKE_CXX_COMPILER={{deps.tea.xyz/gx/cc.prefix}}/bin/c++
provides:
- bin/SvtAv1EncApp
- bin/SvtAv1DecApp
test: SvtAv1EncApp --version | grep {{version}}