<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/b98e657d49ca402606ea2dfb624c6f41dbe73844">https://github.com/macports/macports-ports/commit/b98e657d49ca402606ea2dfb624c6f41dbe73844</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit b98e657d49ca402606ea2dfb624c6f41dbe73844
</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 | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
<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..eb12d3f67de 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;'>@@ -228,6 +228,12 @@ configure.args-append \
</span> -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python \
-DPYTHON_DEFAULT_EXECUTABLE:FILEPATH=/usr/bin/python
<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><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> universal_variant no
# PCH broken when universal
<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>