Ticket #58836: Portfile_opencv.diff
File Portfile_opencv.diff, 2.0 KB (added by barrettsa, 5 years ago) |
---|
-
Portfile
old new 27 27 28 28 homepage http://opencv.org 29 29 30 master_sites https://github.com/opencv/opencv/archive/:opencv 30 master_sites https://github.com/opencv/opencv/archive/:opencv \ 31 https://github.com/Itseez/opencv_contrib/archive:opencv_contrib 32 31 33 distname ${version} 32 34 33 35 distfiles ${distname}.tar.gz:opencv 34 36 35 checksums rmd160 3a15f1aa8c56e285aaf59810bbca20462e2e6db2 \ 37 checksums ${version}.tar.gz \ 38 rmd160 3a15f1aa8c56e285aaf59810bbca20462e2e6db2 \ 36 39 sha256 ea743896a604a6ba1e1c1651ad42c97d0f90165debe9940811c7e0bdaa307526 \ 37 size 88350165 40 size 88350165 \ 41 ${version}.zip \ 42 rmd160 0a2493f4f29df3656f0fa8fa147d48dd8c480c42 \ 43 sha256 80e1c00221e1ba8f4a2fae5ca98dd33218bd4ff0a250db7870aea9a071f31e31 \ 44 size 58507222 38 45 39 46 extract.only ${distname}.tar.gz 40 47 … … 361 368 variant contrib description {Build OpenCV with extra modules.} { 362 369 distfiles-append ${version}.zip:opencv_contrib 363 370 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 366 372 367 373 post-extract { 374 system "unzip -q ${distpath}/${version}.zip -d ${workpath}" 368 375 # less than ideal way for patchfiles to be applied to contrib directory 369 376 ln -s ${workpath}/opencv_contrib-${version} ${worksrcpath}/opencv_contrib 370 377 } 371 378 372 extract.only ${distname}${extract.suffix} \373 ${version}.zip374 375 379 # dnn_modern: 376 380 master_sites-append https://github.com/tiny-dnn/tiny-dnn/archive/:tiny-dnn 377 381