Ticket #43917: root6-libc++.patch

File root6-libc++.patch, 1.6 KB (added by mojca (Mojca Miklavec), 10 years ago)

a patch hopefully allowing to build root6 on OS X < 10.9

  • Portfile

     
    1212# TODO: try to figure out if one could also build root6 on < 10.9
    1313
    1414# Essentially 6.00.00, but with some bug fixes to the build system
    15 github.setup        root-mirror root aaf9b65
     15github.setup        root-mirror root bf20cb6
    1616#github.setup       root-mirror root 6-00-00 v
    1717version             6.00.00
    18 checksums           rmd160  e0b7080d897469f421dd5ee44ca570a4774dc5d4 \
    19                     sha256  58692b7e2c970df5eac0dd298ab7d1ac5352e4ed549d61c29578d71915e831be
     18checksums           rmd160  58ba2ac69df482ef8f86a75fdc2d803dc0e6a98e \
     19                    sha256  6a19ac7df74a1be5d627c3bade450fddee8551efb239787064118e4d0fbabe61
    2020
    2121name                root6
    2222set version_major   6
     
    3737configure.dir       ${workpath}/build
    3838build.dir           ${configure.dir}
    3939
     40platform darwin {
     41    # Note that we are forcing this choice.  This means that anything linking
     42    # against llvm-3.5 needs to also be using libc++.  This is possibly
     43    # problematic, but luckily there is just a limited set of such dependents.
     44
     45    if {[info exists configure.cxx_stdlib]} {
     46        configure.cxx_stdlib libc++
     47    }
     48
     49    depends_lib-append port:libcxx
     50}
     51
     52pre-fetch {
     53    if {(${os.major} < 13 && ! [info exists configure.cxx_stdlib]) ||
     54        (! [file exists /usr/lib/libc++.dylib])} {
     55        ui_error "$name requires a C++11 runtime, which your configuration does not allow"
     56        error "unsupported configuration"
     57    }
     58}
     59
     60
    4061post-extract {
    4162    file mkdir ${configure.dir}
    4263}