{% set name = "libmaus2" %}
{% set version = "2.0.813" %}
{% set datestamp = "20221210220409" %}
{% set sha256 = "4125f8daefd6900185675026498369457088e25e81029597659249be49cd5261" %}

package:
  name: {{ name }}
  version: {{ version }}

build:
  # There's some issue with clang
  skip: True  # [osx]
  number: 0
  run_exports:
    - {{ pin_subpackage('libmaus2', max_pin='x') }}

source:
  url: https://gitlab.com/german.tischler/libmaus2/-/archive/{{ version }}-release-{{ datestamp }}/libmaus2-{{ version }}-release-{{ datestamp }}.tar.gz
  sha256: {{ sha256 }}
  #patches:
    # Until gcc >=8 is being used
    #- patch

requirements:
  build:
    - make
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}
    - autoconf
    - automake
    - libtool
    - pkg-config
  host:
    - boost-cpp
    - libgomp  # [linux]
    - llvm-openmp  # [osx]
    - libcurl
    # snappy 1.1.9 introduced a binary incompatible build change (https://github.com/mhx/dwarfs/issues/56#issuecomment-896857211)
    # enabling -fno-rtti. libmaus needs typeid, which is only available with activated rtti.
    # Hence, we stick with snappy 1.1.8
    - snappy =1.1.8
    - staden_io_lib >=1.14.14
    - libdeflate
    - gmp
    - nettle
    - zlib
  run:
    - boost-cpp
    - libgomp  # [linux]
    - llvm-openmp  # [osx]
    - snappy =1.1.8
    - staden_io_lib >=1.14.14

test:
  commands:
    - echo

about:
  home: https://gitlab.com/german.tischler/libmaus2
  license: GPL-3.0-or-later
  license_family: GPL3
  license_file: GPLv3
  summary: "Collection of data structures and algorithms for NGS data."
  dev_url: https://gitlab.com/german.tischler/libmaus2

extra:
  additional-platforms:
    - linux-aarch64
  identifiers:
    - biotools:libmaus
