Ticket #44296: root5.diff

File root5.diff, 3.9 KB (added by cjones051073 (Chris Jones), 10 years ago)

Updated patch

  • Portfile

     
    88PortGroup           compiler_blacklist_versions 1.0
    99
    1010name                root5
    11 version             5.34.18
     11version             5.34.19
    1212set version_major   [lindex [split ${version} .] 0]
    1313
    1414categories          science
     
    2424master_sites        http://root.cern.ch/download/ \
    2525                    ftp://root.cern.ch/root/
    2626
    27 checksums           rmd160  2fbaff8f831611779b42480fcb86cbde34ef72bd \
    28                     sha256  9196dce7d76b31e5bcabd985bd31bc4d9b7c8c4d0c7ce84f730efa4ef82a3567
     27checksums           rmd160  8e8a92d8734bd3e30abae66794dac07085e9b7dc \
     28                    sha256  c516d167434c7d6d9c6a2f44f7b4af4115d3d0e3389ba79999ae984aee61356d
    2929
    3030worksrcdir          root
    3131
     
    107107                    --disable-c++11 \
    108108                    --disable-xrootd \
    109109                    --disable-oracle \
     110                    --disable-http \
     111                    --disable-vc \
    110112                    --enable-builtin-ftgl \
    111113                    --enable-mathmore \
    112114                    --enable-genvector \
     
    181183  ui_msg "======================================================================================"
    182184}
    183185
    184 universal_variant   no
     186universal_variant  no
    185187
    186 default_variants    +ssl +xml +gsl +minuit2 +tmva +roofit +graphviz +opengl +soversion
     188default_variants   +ssl +xml +gsl +minuit2 +tmva +roofit +graphviz +opengl +soversion +http
    187189
    188190# Since ROOT 5.34.15 the cocoa backend is default on OSX 10.8 or newer
    189191# We also make it default on 10.7
     
    193195    set default_gui_variant +x11
    194196}
    195197
     198variant http description {Build with HTTP Server library support} {
     199    configure.args-replace --disable-http --enable-http
     200}
     201
     202variant vc description {Build with Vc library support} {
     203    configure.args-replace --disable-vc --enable-vc
     204}
     205
    196206variant debug description {Enable a debug build} {
    197207    configure.args-append --build=debug
    198208}
     
    206216}
    207217
    208218variant soversion description {Build with soversion support} {
    209     configure.args-delete   --disable-soversion
    210     configure.args-append   --enable-soversion
     219    configure.args-replace --disable-soversion --enable-soversion
    211220}
    212221
    213222variant graphviz description {Build with graphviz support} {
     
    267276}
    268277
    269278variant roofit description {Build the RooFit advanced fitting package} {
    270     configure.args-delete   --disable-roofit
    271     configure.args-append   --enable-roofit
     279    configure.args-replace  --disable-roofit --enable-roofit
    272280}
    273281
    274282variant tmva description {Build the TMVA package} {
    275     configure.args-delete   --disable-tmva
    276     configure.args-append   --enable-tmva
     283    configure.args-replace  --disable-tmva --enable-tmva
    277284    post-destroot {
    278285        set tmvaTuts ${destroot}${install_prefix}/share/root/tutorial/tmva
    279286        file mkdir ${tmvaTuts}
     
    282289}
    283290
    284291variant minuit2 description {Build with minuit2 support} {
    285     configure.args-delete   --disable-minuit2
    286     configure.args-append   --enable-minuit2
     292    configure.args-replace  --disable-minuit2 --enable-minuit2
    287293}
    288294
    289295variant opengl description {Build with opengl support} {
     
    487493    eval $variant_line
    488494}
    489495
     496# make sure that the proper variant is automatically selected
     497# (ROOT crashes if the compiler it was built with doesn't exist)
     498if {![variant_isset clang33] && ![variant_isset clang34] && ![variant_isset clang35]} {
     499    if { ${configure.compiler} eq "macports-clang-3.3" } {
     500        default_variants-append +clang33
     501    } elseif { ${configure.compiler} eq "macports-clang-3.4" } {
     502        default_variants-append +clang34
     503    } elseif { ${configure.compiler} eq "macports-clang-3.5" } {
     504        default_variants-append +clang35
     505    }
     506}
     507
    490508# Is a variant active ?
    491509set active_clang_variant ""
    492510foreach ver ${clang_versions} {