<commit_before>{% set name = "irrlicht" %}
{% set version = "1.8.4" %}
{% set major_minor_version = version.split('.')[0] + "." + version.split('.')[1] %}

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

source:
  - url: http://downloads.sourceforge.net/irrlicht/irrlicht-{{ version }}.zip
    sha256: f42b280bc608e545b820206fe2a999c55f290de5c7509a02bdbeeccc1bf9e433
  # This adds a CMakeLists.txt file to build Irrlicht
  # Originally based on https://github.com/microsoft/vcpkg/blob/2020.11-1/ports/irrlicht/portfile.cmake
  - path: CMakeLists.txt

build:
  number: 0
  run_exports:
    # https://abi-laboratory.pro/index.php?view=timeline&l=irrlicht
    - {{ pin_subpackage(name, max_pin='x.x') }}

requirements:
  build:
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}
    - make                               # [not win]
    - cmake
    - {{ cdt('mesa-libgl-devel') }}  # [linux]
    - {{ cdt('mesa-dri-drivers') }}  # [linux]
    - {{ cdt('libselinux') }}  # [linux]
    - {{ cdt('libxdamage') }}  # [linux]
    - {{ cdt('libxxf86vm') }}  # [linux]
    - {{ cdt('libxxf86vm-devel') }}  # [linux] 
    - {{ cdt('xorg-x11-proto-devel') }}  # [linux]
    - {{ cdt('libxext') }}  # [linux]
    - {{ cdt('libxext-devel') }}  # [linux]
    - {{ cdt('libx11') }}  # [linux]
    - {{ cdt('libx11-devel') }}  # [linux]
    
  host:
    - xorg-libxfixes  # [linux]
    - bzip2
    - libjpeg-turbo
    - libpng
    - zlib
    - xorg-libx11  # [unix]
    - xorg-libxext  # [unix]
  run:
    - xorg-libx11  # [unix]
    - xorg-libxext  # [unix]

test:
  commands:
    - test -f ${PREFIX}/include/irrlicht/irrlicht.h  # [not win]
    - test -f ${PREFIX}/lib/libIrrlicht.so  # [linux]
    - test -f ${PREFIX}/lib/libIrrlicht.dylib  # [osx]
    - if exist %PREFIX%\\Library\\include\\irrlicht\irrlicht.h (exit 0) else (exit 1)  # [win]
    - if exist $PREFIX$\\Library\\lib\\Irrlicht.lib (exit 0) else (exit 1)  # [win]
    - if exist $PREFIX$\\Library\\bin\\Irrlicht.dll (exit 0) else (exit 1)  # [win]

about:
  home: http://irrlicht.sourceforge.net/
  license: Zlib
  license_file: readme.txt
  summary: Irrlicht lightning fast 3d engine.

extra:
  recipe-maintainers:
    - traversaro
<commit_msg>Update meta.yaml<commit_after>{% set name = "irrlicht" %}
{% set version = "1.8.4" %}
{% set major_minor_version = version.split('.')[0] + "." + version.split('.')[1] %}

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

source:
  - url: http://downloads.sourceforge.net/irrlicht/irrlicht-{{ version }}.zip
    sha256: f42b280bc608e545b820206fe2a999c55f290de5c7509a02bdbeeccc1bf9e433
  # This adds a CMakeLists.txt file to build Irrlicht
  # Originally based on https://github.com/microsoft/vcpkg/blob/2020.11-1/ports/irrlicht/portfile.cmake
  - path: CMakeLists.txt

build:
  number: 0
  run_exports:
    # https://abi-laboratory.pro/index.php?view=timeline&l=irrlicht
    - {{ pin_subpackage(name, max_pin='x.x') }}

requirements:
  build:
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}
    - make                               # [not win]
    - cmake
    - {{ cdt('mesa-libgl-devel') }}  # [linux]
    - {{ cdt('mesa-dri-drivers') }}  # [linux]
    - {{ cdt('libselinux') }}  # [linux]
    - {{ cdt('libxdamage') }}  # [linux]
    - {{ cdt('libxxf86vm') }}  # [linux]
    - {{ cdt('libxxf86vm-devel') }}  # [linux] 
    - {{ cdt('xorg-x11-proto-devel') }}  # [linux]
    - {{ cdt('libxext') }}  # [linux]
    - {{ cdt('libxext-devel') }}  # [linux]
    - {{ cdt('libx11') }}  # [linux]
    - {{ cdt('libx11-devel') }}  # [linux]
    
  host:
    - bzip2
    - libjpeg-turbo
    - libpng
    - zlib
    - xorg-libxfixes  # [linux]
    - xorg-libx11  # [unix]
    - xorg-libxext  # [unix]
  run:
    - xorg-libx11  # [unix]
    - xorg-libxext  # [unix]

test:
  commands:
    - test -f ${PREFIX}/include/irrlicht/irrlicht.h  # [not win]
    - test -f ${PREFIX}/lib/libIrrlicht.so  # [linux]
    - test -f ${PREFIX}/lib/libIrrlicht.dylib  # [osx]
    - if exist %PREFIX%\\Library\\include\\irrlicht\irrlicht.h (exit 0) else (exit 1)  # [win]
    - if exist $PREFIX$\\Library\\lib\\Irrlicht.lib (exit 0) else (exit 1)  # [win]
    - if exist $PREFIX$\\Library\\bin\\Irrlicht.dll (exit 0) else (exit 1)  # [win]

about:
  home: http://irrlicht.sourceforge.net/
  license: Zlib
  license_file: readme.txt
  summary: Irrlicht lightning fast 3d engine.

extra:
  recipe-maintainers:
    - traversaro

{'fraction_non_alphanumeric': 0.19256067135404853, 'fraction_numerical': 0.03447493762757995, 'mean_word_length': 2.57085020242915, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5365258', 'n_tokens_mistral': 1914, 'n_tokens_neox': 1813, 'n_words': 297}