Ticket #48145: patch-Portfile.diff

File patch-Portfile.diff, 1.1 KB (added by mamoll (Mark Moll), 9 years ago)
  • Portfile

     
    99
    1010name                castxml
    1111version             20150608
     12revision            1
    1213categories          lang
    1314platforms           darwin
    1415license             Apache-2
     
    3435                    port:ncurses
    3536
    3637configure.args-append \
    37                     -DLLVM_DIR=${prefix}/libexec/llvm-3.6/share/llvm/cmake \
    3838                    -DCastXML_INSTALL_DOC_DIR=share/doc/castxml
     39
     40variant clang36 conflicts clang37 description {Use clang 3.6 toolchain.} {
     41    configure.compiler macports-clang-3.6
     42    configure.args-append \
     43                    -DLLVM_DIR=${prefix}/libexec/llvm-3.6/share/llvm/cmake
     44}
     45
     46variant clang37 conflicts clang36 description {Use clang 3.7 toolchain.} {
     47    configure.compiler macports-clang-3.7
     48    configure.env-append \
     49                    -DLLVM_DIR=${prefix}/libexec/llvm-3.7/share/llvm/cmake
     50}
     51
     52if {![variant_isset clang36] && ![variant_isset clang37]} {
     53    default_variants +clang36
     54}