{% set version = "5.18.0" %}
{% set sha256 = "6c01be2306ec0c9656b59cb082eb7b90176c39506dd0f912b02e08298a553360" %}

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

build:
  number: 10
  run_exports:
    - {{ pin_subpackage('libsbml', max_pin='x.x') }}

source:
  url: https://sourceforge.net/projects/sbml/files/libsbml/{{ version }}/stable/libSBML-{{ version }}-core-plus-packages-src.tar.gz
  sha256: {{ sha256 }}

requirements:
  build:
    - make
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}
    - cmake
  host:
    - bzip2
    - libxml2
    - zlib
  run:
    - bzip2
    - libxml2
    - zlib

test:
  commands:
    - test -f "${PREFIX}/lib/libsbml${SHLIB_EXT-.so}"

about:
  home: http://sbml.org/Software/libSBML
  license: LGPL
  license_file: 'LICENSE.txt'
  summary: LibSBML is a free, open-source programming library to help you read, write, manipulate, translate, and validate SBML files and data streams.
