{% set version = "1.1.1g" %}
{% set buildnumber = 1 %}

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

source:
  fn: openssl-{{version}}.tar.gz
  url: http://www.openssl.org/source/openssl-{{version}}.tar.gz
  sha256: ddb04774f1e32f0c49751e21b67216ac87852ceb056b75209af2443400636d46
  patches:
    - intel_parallelism.patch
    - add_ldflags_apps_makefile.patch  # [linux]

build:
  detect_binary_files_with_prefix: True
  number: {{buildnumber}}
  features:
    - vc14                             # [win]
  run_exports:
    - {{ pin_subpackage('openssl', max_pin='x.x.x') }}

requirements:
  build:
    - {{ compiler('c') }}
    - vc 14.1                          # [win]
    - nasm                             # [win]
  host:
    # workaround. see conda-forge/openssl-feedstock
    - perl 5.*                         # [win]
  run:
    - vc 14.1                          # [win]

about:
  home: http://www.openssl.org/
  license: Apache-style (http://www.openssl.org/source/license.html)
  license_family: Apache
  license_file: LICENSE
  summary: OpenSSL is an open-source implementation of the SSL and TLS protocols
