# This file created by conda-build 3.13.0
# ------------------------------------------------

package:
    name: libopencv
    version: 3.4.2
source:
    -   fn: opencv-3.4.2.zip
        patches:
            - 0001-Use-OpenCV_INSTALL_BINARIES_PREFIX-instead-of-hardcoding.patch
            - 0002-Fix-protobuf-Parser-call.patch
        sha256: 9405c5d7d8ab1696e98631d0c92125816356ec366a73c417bdcc4d74783b42aa
        url: https://github.com/opencv/opencv/archive/3.4.2.zip
    -   fn: opencv_contrib-3.4.2.tar.gz
        folder: opencv_contrib-3.4.2
        sha256: 45a52764ebd2558fa0b7fd8dc47379b37dd0956d912abbf7c786228374fdf60d
        url: https://github.com/opencv/opencv_contrib/archive/3.4.2.tar.gz
build:
    ignore_run_exports:
        - libprotobuf
    number: 1
    run_exports:
        - libopencv >=3.4.2,<3.4.3.0a0
    string: h7c891bd_1
requirements:
    build:
        - bzip2 1.0.6 h1de35cc_5
        - ca-certificates 2018.03.07 0
        - cctools 895 h7512d6f_0
        - clang 4.0.1 h662ec87_0
        - clang_osx-64 4.0.1 h1ce6c1d_11
        - clangxx 4.0.1 hc9b4283_0
        - clangxx_osx-64 4.0.1 h22b1bf0_11
        - cmake 3.12.0 haff7e42_0
        - compiler-rt 4.0.1 h5487866_0
        - expat 2.2.6 h0a44026_0
        - ld64 274.2 h7c2db76_0
        - libcurl 7.61.0 hf30b1f0_0
        - libcxx 4.0.1 h579ed51_0
        - libcxxabi 4.0.1 hebd6815_0
        - libiconv 1.15 hdd342a3_7
        - libssh2 1.8.0 h322a93b_4
        - llvm 4.0.1 hc748206_0
        - llvm-lto-tapi 4.0.1 h6701bc3_0
        - make 4.2.1 h3efe00b_1
        - ncurses 6.1 h0a44026_0
        - openssl 1.0.2p h1de35cc_0
        - pkg-config 0.29.2 h3efe00b_8
        - rhash 1.3.6 hdbc3d79_0
        - xz 5.2.4 h1de35cc_4
        - zlib 1.2.11 hf3cbc9b_2
    host:
        - bzip2 1.0.6 h1de35cc_5
        - cairo 1.14.12 hc4e6be7_4
        - eigen 3.3.3 h504d716_0
        - ffmpeg 4.0 h01ea3c9_0
        - fontconfig 2.13.0 h5d5b041_1
        - freetype 2.9.1 hb4e5f40_0
        - gettext 0.19.8.1 h15daf44_3
        - glib 2.56.2 hd9629dc_0
        - graphite2 1.3.12 h2098e52_2
        - harfbuzz 1.7.6 hb8d4a28_3
        - hdf5 1.10.2 hfa1e0ec_1
        - icu 58.2 h4b95b61_1
        - jasper 2.0.14 h636a363_1
        - jpeg 9b he5867d9_2
        - libcxx 4.0.1 h579ed51_0
        - libcxxabi 4.0.1 hebd6815_0
        - libffi 3.2.1 h475c297_4
        - libgfortran 3.0.1 h93005f0_2
        - libiconv 1.15 hdd342a3_7
        - libopus 1.2.1 h169cedb_0
        - libpng 1.6.34 he12f830_0
        - libprotobuf 3.5.2 h2cd40f5_0
        - libtiff 4.0.9 hcb84e12_2
        - libvpx 1.7.0 h378b8a2_0
        - libxml2 2.9.8 hab757c2_1
        - pcre 8.42 h378b8a2_0
        - pixman 0.34.0 hca0a616_3
        - xz 5.2.4 h1de35cc_4
        - zlib 1.2.11 hf3cbc9b_2
    run:
        - ffmpeg >=4.0,<4.1.0a0
        - freetype >=2.9.1,<3.0a0
        - harfbuzz >=1.7.6,<2.0a0
        - hdf5 >=1.10.2,<1.10.3.0a0
        - jasper >=2.0.14,<3.0a0
        - jpeg >=9b,<10a
        - libcxx >=4.0.1
        - libpng >=1.6.34,<1.7.0a0
        - libtiff >=4.0.9,<5.0a0
        - zlib >=1.2.11,<1.3.0a0
test:
    commands:
        - pushd test-cmake
        - cmake . -DOpenCV_STATIC=OFF -DOpenCV_SHARED=ON
        - cmake --build . --config Release
        - popd
        - test -f $PREFIX/lib/libopencv_aruco.dylib
        - test -f $PREFIX/lib/libopencv_bgsegm.dylib
        - test -f $PREFIX/lib/libopencv_calib3d.dylib
        - test -f $PREFIX/lib/libopencv_ccalib.dylib
        - test -f $PREFIX/lib/libopencv_core.dylib
        - test -f $PREFIX/lib/libopencv_datasets.dylib
        - test -f $PREFIX/lib/libopencv_dnn.dylib
        - test -f $PREFIX/lib/libopencv_dpm.dylib
        - test -f $PREFIX/lib/libopencv_face.dylib
        - test -f $PREFIX/lib/libopencv_features2d.dylib
        - test -f $PREFIX/lib/libopencv_flann.dylib
        - test -f $PREFIX/lib/libopencv_fuzzy.dylib
        - test -f $PREFIX/lib/libopencv_highgui.dylib
        - test -f $PREFIX/lib/libopencv_imgcodecs.dylib
        - test -f $PREFIX/lib/libopencv_imgproc.dylib
        - test -f $PREFIX/lib/libopencv_line_descriptor.dylib
        - test -f $PREFIX/lib/libopencv_ml.dylib
        - test -f $PREFIX/lib/libopencv_objdetect.dylib
        - test -f $PREFIX/lib/libopencv_optflow.dylib
        - test -f $PREFIX/lib/libopencv_phase_unwrapping.dylib
        - test -f $PREFIX/lib/libopencv_photo.dylib
        - test -f $PREFIX/lib/libopencv_plot.dylib
        - test -f $PREFIX/lib/libopencv_reg.dylib
        - test -f $PREFIX/lib/libopencv_rgbd.dylib
        - test -f $PREFIX/lib/libopencv_saliency.dylib
        - test -f $PREFIX/lib/libopencv_shape.dylib
        - test -f $PREFIX/lib/libopencv_stereo.dylib
        - test -f $PREFIX/lib/libopencv_stitching.dylib
        - test -f $PREFIX/lib/libopencv_structured_light.dylib
        - test -f $PREFIX/lib/libopencv_superres.dylib
        - test -f $PREFIX/lib/libopencv_surface_matching.dylib
        - test -f $PREFIX/lib/libopencv_text.dylib
        - test -f $PREFIX/lib/libopencv_tracking.dylib
        - test -f $PREFIX/lib/libopencv_video.dylib
        - test -f $PREFIX/lib/libopencv_videoio.dylib
        - test -f $PREFIX/lib/libopencv_videostab.dylib
        - test -f $PREFIX/lib/libopencv_xfeatures2d.dylib
        - test -f $PREFIX/lib/libopencv_ximgproc.dylib
        - test -f $PREFIX/lib/libopencv_xobjdetect.dylib
        - test -f $PREFIX/lib/libopencv_xphoto.dylib
    files:
        - test-cmake/CMakeLists.txt
        - test-cmake/DisplayImage.cpp
        - test.cpp
    requires:
        - clangxx_osx-64
        - cmake
about:
    description: 'OpenCV (Open Source Computer Vision Library) includes several hundreds
        of computer vision algorithms.

        It has a modular structure,which means that the package includes several shared
        or static libraries.

        '
    doc_source_url: https://github.com/opencv/opencv/tree/master/doc
    doc_url: http://docs.opencv.org/
    home: http://opencv.org/
    license: BSD 3-clause
    license_family: BSD
    summary: Computer vision and machine learning software library.
extra:
    copy_test_source_files: true
    final: true
