File: C:/Users/fred/anaconda3/pkgs/lerc-3.0-hd77b12b_0/info/recipe/meta.yaml.template
{% set name = "lerc" %}
{% set version = "3.0" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
url: https://github.com/Esri/lerc/archive/v{{ version }}.tar.gz
sha256: 8c0148f5c22d823eff7b2c999b0781f8095e49a7d3195f13c68c5541dd5740a1
# CMakeLists.txt taken from master, and adapted for better compatibility
# PR made: https://github.com/Esri/lerc/pull/128
build:
number: 0
run_exports:
# No real information, keep conda-forge defaults
- {{ pin_subpackage('lerc', max_pin='x') }}
requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- cmake
- make # [unix]
- ninja # [win]
#host:
# TODO: add support for
# gdal
# geotiff
test:
commands:
- if not exist %LIBRARY_INC%\Lerc_types.h exit 1 # [win]
- if not exist %LIBRARY_BIN%\Lerc.dll exit 1 # [win]
- if not exist %LIBRARY_LIB%\Lerc.lib exit 1 # [win]
- test -f ${PREFIX}/lib/libLerc${SHLIB_EXT} # [unix]
- test -f ${PREFIX}/include/Lerc_types.h # [unix]
about:
home: https://github.com/Esri/lerc
license: Apache-2.0
license_family: Apache
license_file: LICENSE
summary: LERC - Limited Error Raster Compression
description: |
LERC is an open-source image or raster format which
supports rapid encoding and decoding for any pixel type
(not just RGB or Byte). Users set the maximum compression
error per pixel while encoding, so the precision of the
original input image is preserved (within user defined
error bounds).
extra:
recipe-maintainers:
- hmaarrfk