{% set name = "bandage_ng" %}
{% set version = "2025.6.1" %}

package:
  name: "{{ name|lower }}"
  version: "{{ version }}"

source:
  url: https://github.com/asl/BandageNG/archive/refs/tags/v{{ version }}.tar.gz
  sha256: 224cdb66fb95e9a68078b61f969b5f03a6b6259cd152b754eeee430857dc88e8

build:
  number: 0
  run_exports:
    - {{ pin_subpackage("bandage_ng", max_pin=None) }}

requirements:
  build:
    - make
    - cmake
    - pkg-config
    - {{ compiler('cxx') }}
    - {{ cdt('mesa-libgl-devel') }}      # [linux]
    - {{ cdt('mesa-libegl-devel') }}     # [linux]
    - {{ cdt('mesa-dri-drivers') }}      # [linux]
    - {{ cdt('libdrm-devel') }}          # [linux]
    - {{ cdt('libglvnd-glx') }}          # [linux and cdt_name != 'cos6']
    - qt6-main
    - clangdev  # [osx]
    - llvmlite  # [osx]
  host:
    - xorg-libx11                        # [linux]
    - xorg-libxext                       # [linux]
    - xorg-libxdamage                    # [linux]
    - xorg-libsm                         # [linux]
    - xorg-libice                        # [linux]
    - xorg-libxcomposite                 # [linux]
    - xorg-libxxf86vm                    # [linux]
    - xorg-xf86vidmodeproto              # [linux]
    - libvulkan-headers
    - libvulkan-loader
    - doxygen
  run:
    - qt6-main
    - fonts-conda-ecosystem

test:
  commands:
    - which BandageNG
    - QT_QPA_PLATFORM='offscreen' BandageNG --version

about:
  home: "https://github.com/asl/BandageNG"
  license: "GPL-3.0-or-later"
  license_family: GPL3
  license_file: COPYING
  summary: "Bandage - a Bioinformatics Application for Navigating De novo Assembly Graphs Easily."
  dev_url: "https://github.com/asl/BandageNG"
  doc_url: "https://github.com/asl/BandageNG/blob/v{{ version }}/README.md"

extra:
  additional-platforms:
    - linux-aarch64
    - osx-arm64
  identifiers:
    - doi:10.1093/bioinformatics/btv383
  container:
    # needed for libGL.so.1
    extended-base: True
