<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/9a2beb3222f03fe99285e67d3745d5143ec0203a">https://github.com/macports/macports-ports/commit/9a2beb3222f03fe99285e67d3745d5143ec0203a</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 9a2beb3222f03fe99285e67d3745d5143ec0203a
</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><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    fix double paths in opencv4.pc file and move to default location
</span>---
 graphics/opencv4/Portfile | 15 +++++++++++++--
 1 file changed, 13 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..b7989586340 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,9 @@ 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;'>+                    -DOPENCV_GENERATE_PKGCONFIG=YES
</span> 
 universal_variant   no
 
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -574,6 +576,15 @@ 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;'>+    # 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> }
 
 if {[string match "py*" ${subport}]} {
</pre><pre style='margin:0'>

</pre>