commit 8b7cd6343004d83f2ee07237ae3389f6198a33e6
Author: Lawrence Velázquez <larryv@macports.org>
Date: 27 minutes ago
opencv: Use cmake.out_of_source (#47256)
diff --git a/dports/graphics/opencv/Portfile b/dports/graphics/opencv/Portfile
index e3a71d2..5f82509 100644
a
|
b
|
long_description OpenCV is a library that is mainly aimed at real time \ |
27 | 27 | homepage http://opencv.org |
28 | 28 | master_sites sourceforge:project/opencvlibrary/opencv-unix/${version} |
29 | 29 | |
30 | | worksrcdir ${worksrcdir}/../build |
31 | | patch.dir ${workpath}/${distname} |
32 | | |
33 | | post-extract { |
34 | | file mkdir ${worksrcpath} |
35 | | } |
36 | | |
37 | 30 | use_zip yes |
38 | 31 | |
39 | 32 | checksums rmd160 793391b05b571859005b98612cb176c02352a94f \ |
… |
… |
patchfiles patch-fix_dirname_case.diff \ |
59 | 52 | patch-modules_core_src_parallel.cpp.diff \ |
60 | 53 | patch-modules-highgui-src-window_cocoa.mm.diff |
61 | 54 | |
62 | | configure.args-append ../${distname}/ \ |
| 55 | cmake.out_of_source yes |
| 56 | |
| 57 | configure.args-append \ |
63 | 58 | -DWITH_1394=OFF \ |
64 | 59 | -DWITH_CARBON=OFF \ |
65 | 60 | -DWITH_CUBLAS=OFF \ |
… |
… |
compiler.blacklist-append {clang < 318} |
134 | 129 | # TODO: Actually fix this |
135 | 130 | if {[string match "*clang*" ${configure.compiler}]} { |
136 | 131 | post-patch { |
137 | | reinplace "/-Werror=sequence-point/d" ${worksrcpath}/../${distname}/cmake/OpenCVCompilerOptions.cmake |
| 132 | reinplace "/-Werror=sequence-point/d" ${worksrcpath}/cmake/OpenCVCompilerOptions.cmake |
138 | 133 | } |
139 | 134 | } |
140 | 135 | |
… |
… |
variant openni description {Enable OpenNI support.} { |
174 | 169 | configure.args-append -DWITH_OPENNI=ON |
175 | 170 | |
176 | 171 | post-patch { |
177 | | reinplace "s,@@PREFIX@@,${prefix},g" ${worksrcpath}/../${distname}/cmake/OpenCVFindOpenNI.cmake |
| 172 | reinplace "s,@@PREFIX@@,${prefix},g" ${worksrcpath}/cmake/OpenCVFindOpenNI.cmake |
178 | 173 | } |
179 | 174 | } |
180 | 175 | |