Ticket #58836: Portfile_opencv.diff

File Portfile_opencv.diff, 2.0 KB (added by barrettsa, 5 years ago)

Unified diff of Portfile changes

  • Portfile

    old new  
    2727
    2828homepage            http://opencv.org
    2929
    30 master_sites        https://github.com/opencv/opencv/archive/:opencv
     30master_sites        https://github.com/opencv/opencv/archive/:opencv \
     31                    https://github.com/Itseez/opencv_contrib/archive:opencv_contrib
     32
    3133distname            ${version}
    3234
    3335distfiles           ${distname}.tar.gz:opencv
    3436
    35 checksums           rmd160  3a15f1aa8c56e285aaf59810bbca20462e2e6db2 \
     37checksums           ${version}.tar.gz \
     38                    rmd160  3a15f1aa8c56e285aaf59810bbca20462e2e6db2 \
    3639                    sha256  ea743896a604a6ba1e1c1651ad42c97d0f90165debe9940811c7e0bdaa307526 \
    37                     size    88350165
     40                    size    88350165 \
     41                    ${version}.zip \
     42                    rmd160  0a2493f4f29df3656f0fa8fa147d48dd8c480c42 \
     43                    sha256  80e1c00221e1ba8f4a2fae5ca98dd33218bd4ff0a250db7870aea9a071f31e31 \
     44                    size    58507222
    3845
    3946extract.only        ${distname}.tar.gz
    4047
     
    361368variant contrib description {Build OpenCV with extra modules.} {
    362369    distfiles-append        ${version}.zip:opencv_contrib
    363370    configure.args-append   -DOPENCV_EXTRA_MODULES_PATH=${workpath}/opencv_contrib-${version}/modules \
    364                             -DBUILD_PROTOBUF=NO
    365     depends_lib-append      path:${prefix}/lib/libprotobuf.dylib:protobuf-cpp
     371                            -DBUILD_PROTOBUF=YES
    366372
    367373    post-extract {
     374        system "unzip -q ${distpath}/${version}.zip -d ${workpath}"
    368375        # less than ideal way for patchfiles to be applied to contrib directory
    369376        ln -s ${workpath}/opencv_contrib-${version} ${worksrcpath}/opencv_contrib
    370377    }
    371378
    372     extract.only            ${distname}${extract.suffix} \
    373                             ${version}.zip
    374 
    375379    # dnn_modern:
    376380    master_sites-append     https://github.com/tiny-dnn/tiny-dnn/archive/:tiny-dnn
    377381