PortGroup compiler_blacklist_versions 1.0
PortGroup active_variants 1.1
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 https://libcxx.llvm.org/
master_sites https://releases.llvm.org/${version}/
set libcxxabi_distname libcxxabi-${version}.src
set libcxx_distname libcxx-${version}.src
distfiles ${libcxxabi_distname}${extract.suffix} \
${libcxx_distname}${extract.suffix}
checksums libcxxabi-5.0.1.src.tar.xz \
rmd160 93b74a0644c1afd565938fba5e21b200b206c72a \
sha256 5a25152cb7f21e3c223ad36a1022faeb8a5ac27c9e75936a5ae2d3ac48f6e854 \
libcxx-5.0.1.src.tar.xz \
rmd160 1e5a22e62515382488f232039e31f0b12c08ca4f \
sha256 fa8f99dd2bde109daa3276d529851a3bce5718d46ce1c5d0806f46caa3e57c00
set roots_path ${prefix}/var/system_roots/
set root_name ${name}-${version}-${revision}
set libcxxabi_worksrcpath [file join ${workpath} ${libcxxabi_distname}]
set libcxx_worksrcpath [file join ${workpath} ${libcxx_distname}]
ui_error "${name} is not supported on Tiger or earlier."
error "unsupported platform"
if {${os.subplatform} eq "macosx"} {
lappend dirs ${developer_dir}/SDKs/MacOSX[join [lrange [split ${macosx_version} .] 0 1] .].sdk