{% set name = 'bpp-popgen' %}
{% set version = '2.4.1' %}
{% set sha256 = '03b57d71a63c8fa7f11c085e531d0d691fc1d40d4ea541070dabde0ab3baf413' %}

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

build:
  number: 4

source:
  url: https://github.com/BioPP/{{ name }}/archive/v{{ version }}.tar.gz
  sha256: {{ sha256 }}
  patches:
    - 0001-do-not-override-CXXFLAGS.patch

requirements:
  build:
    - make
    - {{ compiler('cxx') }}
    - cmake
  host:
    - bpp-seq
  run:
    - bpp-seq

test:
  commands:
    - test -f ${PREFIX}/lib/libbpp-popgen.a
    - test -f ${PREFIX}/lib/libbpp-popgen.so  # [linux]
    - test -f ${PREFIX}/lib/libbpp-popgen.dylib  # [osx]

about:
  home: https://github.com/BioPP/bpp-popgen
  license: CeCILL
  license_file: COPYING.txt
  summary: "Bio++ is a set of C++ libraries for Bioinformatics."
