Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

znc: fix build on macOS <10.14 #24798

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions irc/znc/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@

PortSystem 1.0
PortGroup cmake 1.1
PortGroup legacysupport 1.1
PortGroup compiler_blacklist_versions 1.0

# On macOS <10.13 built-in libc++ has no support for std::variant
legacysupport.newest_darwin_requires_legacy 16
legacysupport.use_mp_libcxx yes

name znc
version 1.9.1
revision 0
categories irc
platforms darwin
maintainers nomaintainer
license Apache-2
description An advanced IRC bouncer
Expand All @@ -33,7 +38,11 @@ configure.args-append \
-DWANT_PYTHON=false \
-DWANT_TCL=true

compiler.cxx_standard 2011
# Translation.h:22:10: fatal error: 'variant'
# file not found on macOS <10.14
compiler.cxx_standard 2017
compiler.blacklist-append \
{clang < 1001}
if {[string match *clang* ${configure.cxx}] && ${configure.cxx_stdlib} ne ""} {
configure.ldflags-append -stdlib=${configure.cxx_stdlib}
}
Expand Down