mirror of
https://github.com/ivabus/pantry
synced 2024-11-15 04:55:08 +03:00
31 lines
No EOL
665 B
YAML
31 lines
No EOL
665 B
YAML
distributable:
|
|
url: https://github.com/Esri/lerc/archive/v{{version}}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: Esri/lerc
|
|
|
|
build:
|
|
dependencies:
|
|
cmake.org: '*'
|
|
|
|
script:
|
|
- cmake -S . -B build $ARGS
|
|
- cmake --build build
|
|
- cmake --install build
|
|
env:
|
|
ARGS:
|
|
- -DCMAKE_INSTALL_PREFIX="{{prefix}}"
|
|
- -DCMAKE_BUILD_TYPE=Release
|
|
- -DCMAKE_VERBOSE_MAKEFILE=ON
|
|
- -DCMAKE_FIND_FRAMEWORK=LAST
|
|
- -Wno-dev
|
|
- -DBUILD_TESTING=OFF
|
|
|
|
test:
|
|
dependencies:
|
|
freedesktop.org/pkg-config: '*'
|
|
script:
|
|
- pkg-config --modversion Lerc | grep {{version}}
|
|
- cc test.cc -std=gnu++17 -lLerc -o test
|
|
- ./test |