{% set xorg_name = "recordproto" %}
{% set xorg_category = "proto" %}
{% set name = "xorg-" ~ xorg_name %}
{% set version = "1.14.2" %}
{% set sha256 = "a777548d2e92aa259f1528de3c4a36d15e07a4650d0976573a8e2ff5437e7370" %}

# This particular package has a very old config.guess that doesn't recognize
# PPC and ARM, so unlike most X.org packages we regenerate configure on all
# platforms.
{% set am_version = "1.15" if win else '' %}
{% set posix = 'm2-' if win else '' %}

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

source:
  fn: {{ name }}-{{ version }}.tar.bz2
  url: https://www.x.org/releases/individual/{{ xorg_category }}/{{ xorg_name }}-{{ version }}.tar.bz2
  sha256: {{ sha256 }}

build:
  number: 1002
  detect_binary_files_with_prefix: true

requirements:
  build:
    - {{posix}}autoconf
    - {{posix}}automake{{ am_version }}
    - {{posix}}libtool
    - m2w64-pkg-config  # [win]
    - make
    - pkg-config  # [not win]
    - posix  # [win]
    - gnuconfig  # [unix]
    - {{ compiler('c') }}        # [unix]
    - {{ compiler('m2w64_c') }}  # [win]
  host:
    - xorg-util-macros

test:
  commands:

about:
  home: https://www.x.org/
  license: MIT
  license_family: MIT
  license_file: COPYING
  summary: 'C prototypes for the X event-recording extension.'

extra:
  recipe-maintainers:
    - pkgw
