<pre style='margin:0'>
ra1nb0w (ra1nb0w) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/0dad1184137958ea64297f63843bff14b502e2db">https://github.com/macports/macports-ports/commit/0dad1184137958ea64297f63843bff14b502e2db</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 0dad1184137 flashrom: fix build for < 10.7
</span>0dad1184137 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 0dad1184137958ea64297f63843bff14b502e2db
</span>Author: Sergey Fedorov <barracuda@macos-powerpc.org>
AuthorDate: Fri Jul 5 15:11:11 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> flashrom: fix build for < 10.7
</span>---
sysutils/flashrom/Portfile | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/flashrom/Portfile b/sysutils/flashrom/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 759b3e4515e..01f0426683f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/flashrom/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/flashrom/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2,6 +2,10 @@
</span>
PortSystem 1.0
PortGroup compiler_blacklist_versions 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup legacysupport 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# strndup
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+legacysupport.newest_darwin_requires_legacy 10
</span>
name flashrom
version 1.3.0
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -32,9 +36,9 @@ revision 3
</span> # which is also adding fixes for 10.5 adn 10.6.
#
# This fix is sufficient for 10.7-10.12, and a NOP on 10.13+.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-compiler.blacklist *gcc* {clang < 1000}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.blacklist *gcc-4.* {clang < 1000}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_build port:pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build path:bin/pkg-config:pkgconfig
</span>
# NOTE: The build procedure tests for pci.h and libpci, even though all
# programmers that would use libpci are disabled in this build. Thus,
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -46,7 +50,9 @@ depends_lib port:libftdi1 \
</span> use_configure no
build.args-append CC=${configure.cc} \
CXX=${configure.cxx} \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- CPP=${configure.cpp}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CPP=${configure.cpp} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
</span>
build.env-append CONFIG_ENABLE_LIBPCI_PROGRAMMERS=0 \
CONFIG_GFXNVIDIA=0 \
</pre><pre style='margin:0'>
</pre>