{% set name = "bellmans-gapc" %}
{% set version = "2024.01.12" %}

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

source:
  url: https://github.com/jlab/gapc/archive/{{ version }}.tar.gz
  sha256: 590b62d5fc39b1deb45855b0586d7ca3674ef17c59fc84ef445d2760a480f7ba

build:
  number: 5
  run_exports:
    - {{ pin_subpackage('bellmans-gapc', max_pin=None) }}

requirements:
  build:
    - {{ compiler('cxx') }}
    - make
    - flex
    - bison
    - pkg-config
    - gnuconfig
  host:
    - boost-cpp
    - gsl
    - blas
    - sed
  run:
    - boost-cpp
    - gsl
    - blas
    # gapc generates C++ code, which needs to be compiled by the user of this
    # package, thus make is required at run-time
    - make
    - sed

test:
  commands:
    # basic test if binary is executable
    - gapc -h

about:
  home: "https://github.com/jlab/gapc"
  license: "GPL-3.0-or-later"
  license_family: GPL3
  license_file: LICENSE
  summary: "A language and compiler for algebraic dynamic programming."
  doc_url: "https://bibiserv.cebitec.uni-bielefeld.de/gapc"
  dev_url: "https://github.com/jlab/gapc"

extra:
  additional-platforms:
    #- linux-aarch64
    - osx-arm64
