Ticket #44062: root-x11fix.diff

File root-x11fix.diff, 1.8 KB (added by cjones051073 (Chris Jones), 10 years ago)
  • Portfile

     
    6161
    6262patchfiles          patch-cmake-modules-SearchInstalledSoftware.cmake.diff
    6363
    64 # an ugly workaround for lack of __thread on 10.6
    65 platform darwin 10 {
    66     patchfiles-append \
    67                     patch-montecarlo-vmc-inc-TMCtls.h.diff
    68 }
    69 
    7064# Force a compatible compiler
    7165# (macports-clang-3.3 works; it's blacklisted only to give the preference to 3.4)
    7266compiler.blacklist-append *gcc* {clang < 500} macports-clang-2.9 macports-clang-3.0 macports-clang-3.1 macports-clang-3.2 macports-clang-3.3
     
    127121
    128122configure.post_args ${worksrcpath}
    129123
     124# Work arounds for OSX 10.6
     125platform darwin 10 {
     126    # an ugly workaround for lack of __thread
     127    patchfiles-append patch-montecarlo-vmc-inc-TMCtls.h.diff
     128}
     129
    130130platform darwin {
    131131    # Note that we are forcing this choice.  This means that anything linking
    132132    # against root6 needs to also be using libc++.  This is possibly
     
    206206
    207207universal_variant   no
    208208
    209 default_variants    +ssl +xml +gsl +minuit2 +tmva +roofit +graphviz +opengl +soversion
     209default_variants    +ssl +xml +gsl +minuit2 +tmva +roofit +graphviz +soversion
    210210
    211211# Since ROOT 5.34.15 the cocoa backend is default on OSX 10.8 or newer
    212212# We also make it default on 10.7
     
    437437variant cocoa conflicts x11 description {Enables native OSX graphical backend} {
    438438    # Enable cocoa support in configure
    439439    configure.args-append   -Dcocoa=ON -Dx11=OFF
     440    # Enable the OpenGL variant by default when Cocoa backend is used.
     441    # Do this here, as OpenGL conflicts with the X11 backend...
     442    default_variants-append +opengl
    440443}
    441444
    442445variant x11 conflicts cocoa description {Enables X11 graphical backend} {