<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/fc6d6f4b5d98731545a0d463613fbdcff4074276">https://github.com/macports/macports-ports/commit/fc6d6f4b5d98731545a0d463613fbdcff4074276</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new fc6d6f4b5d9 meson: specify pkg-config and cmake when cross building
</span>fc6d6f4b5d9 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit fc6d6f4b5d98731545a0d463613fbdcff4074276
</span>Author: Ken Cunningham <kencu@macports.org>
AuthorDate: Sat Aug 15 20:41:12 2020 -0700
<span style='display:block; white-space:pre;color:#404040;'> meson: specify pkg-config and cmake when cross building
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> meson requires pkg-config and cmake to be specified
</span><span style='display:block; white-space:pre;color:#404040;'> in the cross files when cross building.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> see: https://github.com/mesonbuild/meson/issues/7276
</span><span style='display:block; white-space:pre;color:#404040;'> closes: https://trac.macports.org/ticket/60987
</span>---
devel/meson/Portfile | 6 +++++-
devel/meson/files/cross/i386-darwin | 4 ++++
devel/meson/files/cross/x86_64-darwin | 4 ++++
3 files changed, 13 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/meson/Portfile b/devel/meson/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index ba7c3f5f0e9..813cc96e077 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/meson/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/meson/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,7 +6,7 @@ PortGroup github 1.0
</span>
github.setup mesonbuild meson 0.55.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 2
</span>
github.tarball_from releases
license Apache-2
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -70,6 +70,10 @@ post-destroot {
</span> # install our MacPorts cross files
xinstall -m 755 -d ${destroot}${prefix}/share/meson/
copy ${filespath}/cross ${destroot}${prefix}/share/meson/
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fs-traverse f ${destroot}${prefix}/share/meson/cross/ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@@PREFIX@@|${prefix}|g" ${f}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
# the following block avoids requiring users to 'sudo port select python3 python37'
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/meson/files/cross/i386-darwin b/devel/meson/files/cross/i386-darwin
</span><span style='display:block; white-space:pre;color:#808080;'>index 11af73bbd2a..8c9f8016092 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/meson/files/cross/i386-darwin
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/meson/files/cross/i386-darwin
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -3,3 +3,7 @@ system = 'darwin'
</span> cpu_family = 'x86'
cpu = 'i386'
endian = 'little'
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+[binaries]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+pkgconfig = '@@PREFIX@@/bin/pkg-config'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+cmake = '@@PREFIX@@/bin/cmake'
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/meson/files/cross/x86_64-darwin b/devel/meson/files/cross/x86_64-darwin
</span><span style='display:block; white-space:pre;color:#808080;'>index ef7bd58a990..7a7d24f2ef7 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/meson/files/cross/x86_64-darwin
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/meson/files/cross/x86_64-darwin
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -3,3 +3,7 @@ system = 'darwin'
</span> cpu_family = 'x86_64'
cpu = 'x86_64'
endian = 'little'
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+[binaries]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+pkgconfig = '@@PREFIX@@/bin/pkg-config'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+cmake = '@@PREFIX@@/bin/cmake'
</span></pre><pre style='margin:0'>
</pre>