# This version of llvm is only supported for use by the ghc port.
# There should be no other usage of llvm-3.5
PortGroup compiler_blacklist_versions 1.0
set llvm_version_no_dot 35
name llvm-${llvm_version}
subport clang-${llvm_version} {
version ${llvm_version}.2
set suffix mp-${llvm_version}
set sub_prefix ${prefix}/libexec/llvm-${llvm_version}
maintainers {jeremyhu @jeremyhu} {larryv @larryv}
if {${subport} eq "llvm-${llvm_version}"} {
homepage http://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_lib port:libedit port:libffi port:ncurses port:zlib
depends_run bin:perl:perl5 port:llvm_select
# 3.2.6's install_name_tool doesn't support load commands we might see with newer clang+ld64
# 4.3 is just a guess here and should be updated if there are additional reports with other Xcode versions
if {[vercmp $xcodeversion 4.3] < 0 && [string match "*macports*" ${configure.compiler}]} {
depends_build-append port:cctools
depends_skip_archcheck-append cctools
version ${llvm_version}.2
master_sites http://llvm.org/releases/${version}
distfiles llvm-${version}.src${extract.suffix}
worksrcdir llvm-${version}.src
checksums llvm-3.5.2.src.tar.xz \
rmd160 a6117b21f7f6ffe694ed152fba492015450b63f8 \
sha256 44196156d5749eb4b4224fe471a29cc3984df92570a4a89fa859f7394fc0c575
0001-MacPorts-Only-Update-install-targets-for-clang-subpo.patch \