Ticket #44062: root-x11opengl.diff

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

     
    444444variant cocoa conflicts x11 description {Enables native OSX graphical backend} {
    445445    # Enable cocoa support in configure
    446446    configure.args-append   -Dcocoa=ON -Dx11=OFF
    447     # Some changes are needed to make OpenGL and X11 work properly together
    448     # If these get fixed, make +opengl default also for X11
    449     # https://sft.its.cern.ch/jira/browse/ROOT-6393
    450     default_variants-append +opengl
    451447}
    452448
    453449variant x11 conflicts cocoa description {Enables X11 graphical backend} {
     
    478474    default_variants-append ${default_gui_variant}
    479475}
    480476
     477if { [variant_isset cocoa] } {
     478    # Some changes are needed to make OpenGL and X11 work properly together
     479    # If these get fixed, make +opengl default also for X11
     480    # https://sft.its.cern.ch/jira/browse/ROOT-6393
     481    default_variants-append +opengl
     482}
     483
    481484# ========================================================================================
    482485# Setup various clang variants, to provide alternative C++ compilers that support cocoa
    483486# ========================================================================================