PortGroup compiler_blacklist_versions 1.0
maintainers {jeremyhu @jeremyhu}
description libc++ is a new implementation of the C++ standard library with support for C++11 and portions of C++14.
long_description ${description} \
Because objects cannot be passed between different versions of the C++ runtime, this port must \
replace the host version in order to be used. On Snow Leopard and earlier, this is done \
automatically because there is no existing host version of this library. On Lion and later, \
users must build the port with +replacemnt_libcxx and install the root manually if they wish \
to replace the existing host implementation.
homepage http://libcxx.llvm.org/
master_sites http://www.llvm.org/releases/${version}/
distname ${name}-${version}.src
checksums rmd160 43bcf879f60763425f5d296f4fa5ac0b9a0779f6 \
sha256 25e615e428f60e651ed09ffd79e563864e3f4bc69a9e93ee41505c419d1a7461
default_variants +universal
set roots_path ${prefix}/var/system_roots/
set root_name ${name}-${version}-${revision}
ui_error "${name} is not supported on Tiger or earlier."
error "unsupported platform"
if {${os.subplatform} eq "macosx"} {
lappend dirs ${developer_dir}/SDKs/MacOSX${macosx_version}.sdk
system -W ${d} "tar xzf ${roots_path}/${root_name}.tgz"
variant replacemnt_libcxx description {EXPERTS ONLY: Build a replacement libcxxabi and libcxx even if it is already part of the base OS.} {}
if {${os.major} < 11 || [variant_isset replacemnt_libcxx]} {
compiler.blacklist *gcc* {clang < 500}