Skip to content
Permalink
Browse files

lang/castxml: add clang70 variant

  • Loading branch information
mamoll committed Sep 27, 2018
1 parent 172991f commit 0f2ba523e055feb130021d790cf17304155eba9c
Showing with 12 additions and 6 deletions.
  1. +12 −6 lang/castxml/Portfile
@@ -34,42 +34,48 @@ configure.args-append \

patchfiles-append patch-src_CMakeLists.txt.diff

variant clang38 conflicts clang39 clang40 clang50 clang60 description {Use clang 3.8 toolchain.} {
variant clang38 conflicts clang39 clang40 clang50 clang60 clang70 description {Use clang 3.8 toolchain.} {
depends_build-append \
port:clang-3.8
configure.args-append \
-DLLVM_DIR=${prefix}/libexec/llvm-3.8/share/llvm/cmake
}

variant clang39 conflicts clang38 clang40 clang50 clang60 description {Use clang 3.9 toolchain.} {
variant clang39 conflicts clang38 clang40 clang50 clang60 clang70 description {Use clang 3.9 toolchain.} {
depends_build-append \
port:clang-3.9
configure.args-append \
-DLLVM_DIR=${prefix}/libexec/llvm-3.9/lib/cmake/llvm
}

variant clang40 conflicts clang38 clang39 clang50 clang60 description {Use clang 4.0 toolchain.} {
variant clang40 conflicts clang38 clang39 clang50 clang60 clang70 description {Use clang 4.0 toolchain.} {
depends_build-append \
port:clang-4.0
configure.args-append \
-DLLVM_DIR=${prefix}/libexec/llvm-4.0/lib/cmake/llvm
}

variant clang50 conflicts clang38 clang39 clang40 clang60 description {Use clang 5.0 toolchain.} {
variant clang50 conflicts clang38 clang39 clang40 clang60 clang70 description {Use clang 5.0 toolchain.} {
depends_build-append \
port:clang-5.0
configure.args-append \
-DLLVM_DIR=${prefix}/libexec/llvm-5.0/lib/cmake/llvm
}

variant clang60 conflicts clang38 clang39 clang40 clang50 description {Use clang 6.0 toolchain.} {
variant clang60 conflicts clang38 clang39 clang40 clang50 clang70 description {Use clang 6.0 toolchain.} {
depends_build-append \
port:clang-6.0
configure.args-append \
-DLLVM_DIR=${prefix}/libexec/llvm-6.0/lib/cmake/llvm
}

variant clang70 conflicts clang38 clang39 clang40 clang50 clang60 description {Use clang 7.0 toolchain.} {
depends_build-append \
port:clang-7.0
configure.args-append \
-DLLVM_DIR=${prefix}/libexec/llvm-7.0/lib/cmake/llvm
}

if {![variant_isset clang38] && ![variant_isset clang39] && ![variant_isset clang40] && ![variant_isset clang50] && ![variant_isset clang60]} {
if {![variant_isset clang38] && ![variant_isset clang39] && ![variant_isset clang40] && ![variant_isset clang50] && ![variant_isset clang60] && ![variant_isset clang70]} {
default_variants +clang60
}

0 comments on commit 0f2ba52

Please sign in to comment.
You can’t perform that action at this time.