# This compiler version is not supported beyond these very strict use cases:
# 1) Building webkit-gtk-2.0 on libstdc++ systems
# 2) Building llvm-3.4 on Leopard (https://trac.macports.org/ticket/52091)
# There should be no other usage of clang-3.3 nor llvm-3.3
name llvm-${llvm_version}
subport clang-${llvm_version} { revision 11 }
set suffix mp-${llvm_version}
set sub_prefix ${prefix}/libexec/llvm-${llvm_version}
maintainers {jeremyhu @jeremyhu} {larryv @larryv}
if {${subport} == "llvm-${llvm_version}"} {
homepage https://llvm.org/
description llvm is a next generation compiler infrastructure
long_description The LLVM Core libraries provide a modern source- and \
target-independent optimizer, along with code \
generation support for many popular CPUs (as well as \
some less common ones!) These libraries are built \
around a well specified code representation known as \
the LLVM intermediate representation ("LLVM IR").
depends_run bin:perl:perl5 port:llvm_select
} elseif {${subport} == "clang-${llvm_version}"} {
homepage https://clang.llvm.org/
description C, C++, Objective C and Objective C++ compiler
long_description Clang is an "LLVM native" C/C++/Objective-C compiler, \
which aims to deliver amazingly fast compiles (e.g. \
about 3x faster than GCC when compiling Objective-C \
code in a debug configuration), extremely useful error \
and warning messages and to provide a platform for \
building great source level tools. The included Clang \
Static Analyzer is a tool that automatically finds bugs in \
your code, and is a great example of the sort of tool \
that can be built using the Clang frontend as a \
library to parse C/C++ code.
depends_lib port:llvm-${llvm_version} port:libffi
depends_run port:clang_select port:ld64
depends_build port:cctools
depends_skip_archcheck-append cctools ld64
default_variants +analyzer
#set compiler_rt_rev ${svn.revision}
#set libcxx_rev ${svn.revision}
#version ${llvm_version}-r${svn.revision}
#svn.url http://llvm.org/svn/llvm-project/llvm/trunk