{% set version = "0.9.20" %}

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

source:
  fn: vlfeat-{{ version }}-bin.tar.gz
  url: http://www.vlfeat.org/download/vlfeat-{{ version }}-bin.tar.gz
  
  patches:
    - no_snprintf.patch  # [win and py35]
    - no_crt_copy.patch  # [win]

build:
  features:
    - vc9   # [win and py27]
    - vc10  # [win and py34]
    - vc14  # [win and py35]

requirements:
  build:
    - python  # [win]

test:
  requires:
    - python {{ environ['PY_VER'] + '*' }}                # [win]

  commands: 
    - sift -h
    - mser -h
    - aib -h
    - if not exist %PREFIX%\\Library\\bin\\vl.dll exit 1  # [win]
    - test -f $PREFIX/lib/libvl.dylib                     # [osx]
    - test -f $PREFIX/lib/libvl.so                        # [linux]

about:
  home: http://www.vlfeat.org/
  summary: The VLFeat open source library implements popular computer vision algorithms specializing in image understanding and local features extraction and matching.
  license: BSD

{% set version = "0.9.20" %}

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

source:
  fn: vlfeat-{{ version }}-bin.tar.gz
  url: http://www.vlfeat.org/download/vlfeat-{{ version }}-bin.tar.gz
  
  patches:
    - no_snprintf.patch  # [win and py35]
    - no_crt_copy.patch  # [win]

build:
  features:
    - vc9   # [win and py27]
    - vc10  # [win and py34]
    - vc14  # [win and py35]

requirements:
  build:
    - python  # [win]

test:
  requires:
    - python {{ environ['PY_VER'] + '*' }}                # [win]

  commands: 
    - sift -h
    - mser -h
    - aib -h
    - if not exist %PREFIX%\\Library\\bin\\vl.dll exit 1  # [win]
    - test -f $PREFIX/lib/libvl.dylib                     # [osx]
    - test -f $PREFIX/lib/libvl.so                        # [linux]

about:
  home: http://www.vlfeat.org/
  summary: The VLFeat open source library implements popular computer vision algorithms specializing in image understanding and local features extraction and matching.
  license: BSD 2-Clause

extra:
  recipe-maintainers:
    - patricksnape
    - 183amir

Add 2-clause and recipe maintainers
Add 2-clause and recipe maintainers
