<pre style='margin:0'>
Marius Schamschula (Schamschula) pushed a commit to branch opencv4
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/7e326a355725f96ec02a6f3266d3168db17c132e">https://github.com/macports/macports-ports/commit/7e326a355725f96ec02a6f3266d3168db17c132e</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 7e326a355725f96ec02a6f3266d3168db17c132e
</span>Author: Marius Schamschula <mps@macports.org>
AuthorDate: Tue Feb 9 13:31:27 2021 -0600
<span style='display:block; white-space:pre;color:#404040;'> opencv4: generate pkg-config file
</span>---
graphics/opencv4/Portfile | 21 +++++++++++++++++++--
1 file changed, 19 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/opencv4/Portfile b/graphics/opencv4/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index cde5c859811..b10e63092cf 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/opencv4/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/opencv4/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -7,7 +7,7 @@ PortGroup github 1.0
</span>
github.setup opencv opencv 4.5.0
name opencv4
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 4
</span> categories graphics science
platforms darwin
license BSD
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -226,7 +226,13 @@ configure.args-append \
</span> -DBUILD_opencv_python3:BOOL=OFF \
-DOPENCV_PYTHON_SKIP_DETECTION:BOOL=OFF \
-DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- -DPYTHON_DEFAULT_EXECUTABLE:FILEPATH=/usr/bin/python
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DPYTHON_DEFAULT_EXECUTABLE:FILEPATH=/usr/bin/python \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${name} ne ${subport}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # generate pkg-config file
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DOPENCV_GENERATE_PKGCONFIG=YES
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span>
universal_variant no
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -574,6 +580,17 @@ post-extract {
</span> post-destroot {
ui_debug "${subport}: phase post-destroot running"
opencv_post_destroot
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${name} ne ${subport}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Move opencv4.pc to standard location
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${prefix}/lib/pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${destroot}${prefix}/lib/opencv4/pkgconfig/opencv4.pc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/lib/pkgconfig/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Fix paths in opencv4.pc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|\$\{exec_prefix\}\/||g" ${destroot}${prefix}/lib/pkgconfig/opencv4.pc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|\$\{prefix\}\/||g" ${destroot}${prefix}/lib/pkgconfig/opencv4.pc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
if {[string match "py*" ${subport}]} {
</pre><pre style='margin:0'>
</pre>