Skip to content

Commit

Permalink
flashrom: fix build for < 10.7
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Jul 5, 2024
1 parent 2790a46 commit 53a114a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions sysutils/flashrom/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

PortSystem 1.0
PortGroup compiler_blacklist_versions 1.0
PortGroup legacysupport 1.1

# strndup
legacysupport.newest_darwin_requires_legacy 10

name flashrom
version 1.3.0
Expand Down Expand Up @@ -32,9 +36,9 @@ revision 3
# 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+.
compiler.blacklist *gcc* {clang < 1000}
compiler.blacklist *gcc-4.* {clang < 1000}

depends_build port:pkgconfig
depends_build path:bin/pkg-config:pkgconfig

# NOTE: The build procedure tests for pci.h and libpci, even though all
# programmers that would use libpci are disabled in this build. Thus,
Expand All @@ -46,7 +50,9 @@ depends_lib port:libftdi1 \
use_configure no
build.args-append CC=${configure.cc} \
CXX=${configure.cxx} \
CPP=${configure.cpp}
CPP=${configure.cpp} \
CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"

build.env-append CONFIG_ENABLE_LIBPCI_PROGRAMMERS=0 \
CONFIG_GFXNVIDIA=0 \
Expand Down

0 comments on commit 53a114a

Please sign in to comment.