Ticket #34854: root.Portfile.diff

File root.Portfile.diff, 15.3 KB (added by cjones051073 (Chris Jones), 12 years ago)
  • Portfile

    old new  
    11# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    2 # $Id: Portfile 92837 2012-05-09 00:51:48Z ryandesign@macports.org $
     2# $Id: Portfile 90551 2012-03-08 21:13:31Z dports@macports.org $
    33
    44PortSystem          1.0
    55
    66name                root
    7 version             5.32.02
    8 revision            1
     7version             5.34.00
     8revision            0
    99categories          science
    1010maintainers         gmail.com:mattiafrancescomoro hep.phy.cam.ac.uk:jonesc
    1111license             LGPL-2.1+
     
    1919master_sites        http://root.cern.ch/download/ \
    2020                    ftp://root.cern.ch/root/
    2121
    22 checksums           rmd160  0700dbb56adebd07c4e667fa9f78f7a75f59e511 \
    23                     sha256  5f14f50e4489cd74b3c5bdfbfff8379c6aaaf83d3ace3318c62964be6fdc38a2
     22checksums           rmd160  6089493c70f94a1c4edd87ebe79adb9f3570f903 \
     23                    sha256  808e04876dbc9cfbfea54ee11ba35e90382e8ff4219dbdbe2d2236a9dadf7df1
    2424
    2525worksrcdir          root
    2626
     
    2929                    port:pcre \
    3030                    port:Xft2 \
    3131                    port:xorg-libX11 \
    32                     port:xpm \
    3332                    port:zlib \
    3433                    port:jpeg \
    3534                    port:libpng \
    3635                    port:giflib \
    3736                    port:tiff \
    38                     port:gmp
     37                    port:gmp \
     38                    port:xpm \
     39                    port:expat
    3940
    4041patchfiles          patch-configure.diff
    4142
     
    5455
    5556pre-configure {
    5657    if {${configure.compiler} == "clang"} {
    57         configure.args-append --with-clang
     58        configure.args-append \
     59          --with-clang \
     60          --with-cc=${configure.cc} \
     61          --with-cxx=${configure.cxx} \
     62          --with-ld=${configure.cxx}
    5863    } else {
    5964        if {${configure.compiler} == "macports-clang-3.1"} {
    60             configure.args-append --with-clang
     65            configure.args-append \
     66             --with-clang \
     67             --with-cc=${configure.cc} \
     68             --with-cxx=${configure.cxx} \
     69             --with-ld=${configure.cxx}
    6170        } else {
    6271            configure.args-append \
    6372             --with-cc=${configure.cc} \
     
    111120                    --disable-bonjour \
    112121                    --disable-gviz \
    113122                    --disable-soversion \
    114                     --with-x11-libdir=${prefix}/lib \
    115                     --with-xpm-libdir=${prefix}/lib \
     123                    --disable-c++11 \
     124                    --disable-fink \
    116125                    --enable-builtin-ftgl \
    117126                    --enable-mathmore \
    118127                    --enable-genvector \
    119128                    --enable-memstat \
    120129                    --enable-unuran \
    121130                    --enable-reflex \
    122                     --enable-table
     131                    --enable-table \
     132                    --enable-fink
     133
     134# Seem to cause build problems with FTGL ...
     135#                    --with-x11-libdir=${prefix}/lib \
     136#                    --with-xpm-libdir=${prefix}/lib \
    123137
    124138pre-build {
    125139    build.args      CC=${configure.cc} \
     
    219233    configure.args-append   --enable-opengl --enable-builtin-glew
    220234}
    221235
    222 variant python26 conflicts python32 python31 python27 description {Builds port with python 2.6 support} {
    223     set mypydir ${prefix}/Library/Frameworks/Python.framework/Versions/2.6
    224     configure.args-delete   --disable-python
    225     configure.args-append   --enable-python --with-python-incdir="${mypydir}/Headers" --with-python-libdir="${mypydir}"
    226     depends_lib-append      port:python26
    227     post-destroot {
    228         set mypysitedir ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
    229         file mkdir ${mypysitedir}
    230         foreach pyfile [glob ${destroot}${prefix}/lib/root/*.py*] { move $pyfile ${mypysitedir} }
    231         move ${destroot}${prefix}/lib/root/python/genreflex ${mypysitedir}
    232     }
    233 }
    234 
    235 variant python27 conflicts python32 python31 python26 description {Builds port with python 2.7 support} {
     236variant python27 conflicts python32 description {Builds port with python 2.7 support} {
    236237    set mypydir ${prefix}/Library/Frameworks/Python.framework/Versions/2.7
    237238    configure.args-delete   --disable-python
    238     configure.args-append   --enable-python --with-python-incdir="${mypydir}/Headers" --with-python-libdir="${mypydir}"
     239    configure.args-append   --enable-python \
     240                            --with-python-incdir="${mypydir}/Headers" \
     241                            --with-python-libdir="${mypydir}"
    239242    depends_lib-append      port:python27
    240243    post-destroot {
    241244        set mypysitedir ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/
     
    245248    }
    246249}
    247250
    248 variant python31 conflicts python32 python27 python26 description {Builds port with python 3.1 support} {
    249     set mypydir ${prefix}/Library/Frameworks/Python.framework/Versions/3.1
    250     configure.args-delete   --disable-python
    251     configure.args-append   --enable-python --with-python-incdir="${mypydir}/Headers" --with-python-libdir="${mypydir}"
    252     depends_lib-append      port:python31
    253     post-destroot {
    254         set mypysitedir ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/
    255         file mkdir ${mypysitedir}
    256         foreach pyfile [glob ${destroot}${prefix}/lib/root/*.py*] { move $pyfile ${mypysitedir} }
    257         move ${destroot}${prefix}/lib/root/python/genreflex ${mypysitedir}
    258     }
    259 }
    260 
    261 variant python32 conflicts python31 python27 python26 description {Builds port with python 3.2 support} {
     251variant python32 conflicts python27 description {Builds port with python 3.2 support} {
    262252    set mypydir ${prefix}/Library/Frameworks/Python.framework/Versions/3.2
    263253    configure.args-delete   --disable-python
    264     configure.args-append   --enable-python --with-python-incdir="${mypydir}/Headers" --with-python-libdir="${mypydir}"
     254    configure.args-append   --enable-python \
     255                            --with-python-incdir="${mypydir}/Headers" \
     256                            --with-python-libdir="${mypydir}"
    265257    depends_lib-append      port:python32
    266258    post-destroot {
    267259        set mypysitedir ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/
     
    294286    depends_lib-append      port:libxml2
    295287}
    296288
    297 variant qt_x11 conflicts qt_mac description {Builds port with Qt support via X11 UI} {
    298     # fix where "qglobal.h" is found in all files that use or reference it
    299     post-patch {
    300         foreach tpf { configure graf2d/qt/src/TGQt.cxx } {
    301             reinplace "s@Qt/qglobal\\.h@QtCore/qglobal\\.h@g" \
    302                 ${worksrcpath}/${tpf}
    303         }
    304         reinplace "/qttestdir/s@Qt@QtCore@g" ${worksrcpath}/configure
    305     }
    306 
    307     configure.env-append    QTDIR=${prefix}/libexec/qt4-x11
    308     configure.args-delete   --disable-qt
    309     configure.args-delete   --disable-qtgsi
    310     configure.args-append   --enable-qt --enable-qtgsi \
    311                             --with-qt-incdir="${prefix}/include" \
    312                             --with-qt-libdir="${prefix}/lib"
    313     depends_lib-append      port:qt4-x11
    314 }
    315 
    316 if {[variant_isset qt_mac]} {
    317     PortGroup qt4 1.0
    318 }
    319 
    320 variant qt_mac conflicts qt_x11 description {Builds port with Qt support via Mac UI} {
    321     post-patch {
    322         # fix where "qglobal.h" is found in all files that use or reference it
    323         foreach tpf { configure graf2d/qt/src/TGQt.cxx } {
    324             reinplace "s@Qt/qglobal\\.h@QtCore/qglobal\\.h@g" \
    325                 ${worksrcpath}/${tpf}
    326         }
    327         reinplace "/qttestdir/s@Qt@QtCore@g" ${worksrcpath}/configure
    328 
    329         # fix library search extensions to include ".la"
    330         # for Qt framework libraries (only)
    331         reinplace "s@\\(\\.so \\.sl \\.dylib \\.dll\\.a\\)@\\1 \\.la@g" \
    332             ${worksrcpath}/configure
    333     }
    334 
    335     configure.args-delete   --disable-qt
    336     configure.args-delete   --disable-qtgsi
    337     configure.args-append   --enable-qt --enable-qtgsi \
    338                             --with-qt-incdir="${prefix}/include" \
    339                             --with-qt-libdir="${prefix}/lib"
    340     depends_lib-append      port:qt4-mac
    341 
    342     post-configure {
    343         # patch up the Makefile.config to handle the QTLIB frameworks correctly
    344         reinplace "/QTLIB\[ \]/s@:= @:= -F${qt_libs_dir} @" \
    345             ${worksrcpath}/config/Makefile.config
    346         reinplace "/QTLIB\[ \]/s@\\(Qt\[^ \]*\\).la@-framework \\1@g" \
    347             ${worksrcpath}/config/Makefile.config
    348     }
    349 }
    350 
    351289variant mysql description {Builds port with mysql support} {
    352290    configure.args-delete   --disable-mysql
    353291    configure.args-append   --enable-mysql \
    354                             --with-mysql-incdir="${prefix}/include" \
    355                             --with-mysql-libdir="${prefix}/lib"
    356     depends_lib-append      port:mysql5
     292                            --with-mysql-incdir="${prefix}/include/mysql55/mysql" \
     293                            --with-mysql-libdir="${prefix}/lib/mysql55/mysql"
     294    depends_lib-append      port:mysql55
    357295}
    358296
    359 variant postgresql90 description {Builds port with PostgreSQL support} {
     297variant postgresql92 description {Builds port with PostgreSQL support} {
    360298    configure.args-delete   --disable-pgsql
    361299    configure.args-append   --enable-pgsql \
    362                             --with-pgsql-incdir="${prefix}/include/postgresql90" \
    363                             --with-pgsql-libdir="${prefix}/lib/postgresql90"
    364     depends_lib-append      port:libpqxx port:postgresql90
     300                            --with-pgsql-incdir="${prefix}/include/postgresql92" \
     301                            --with-pgsql-libdir="${prefix}/lib/postgresql92"
     302    depends_lib-append      port:libpqxx port:postgresql92
    365303}
    366304
    367305variant pythia description {Pythia 8 support for root} {
     
    372310    depends_lib-append      port:pythia
    373311}
    374312
    375 variant gcc43 conflicts gcc44 gcc45 gcc46 description {Compile using MacPorts gcc 4.3} {
    376     configure.compiler      macports-gcc-4.3
    377     depends_lib-append      port:gcc43
     313variant cocoa requires clang31 description {EXPERIMENTAL - Enables a native OSX graphical backend instead of X11} {
     314    configure.args-append --enable-cocoa
    378315}
    379316
    380 variant gcc44 conflicts gcc43 gcc45 gcc46 description {Compile using MacPorts gcc 4.4} {
    381     configure.compiler      macports-gcc-4.4
    382     depends_lib-append      port:gcc44
     317variant gcc46 conflicts gcc47 clang31 description {Compile using MacPorts gcc 4.6} {
     318    configure.compiler      macports-gcc-4.6
     319    depends_lib-append      port:gcc46
    383320}
    384321
    385 variant gcc45 conflicts gcc43 gcc44 gcc46 description {Compile using MacPorts gcc 4.5} {
    386     configure.compiler      macports-gcc-4.5
    387     depends_lib-append      port:gcc45
     322variant gcc47 conflicts gcc46 clang31 description {Compile using MacPorts gcc 4.7} {
     323    configure.compiler      macports-gcc-4.7
     324    depends_lib-append      port:gcc47
    388325}
    389326
    390 variant gcc46 conflicts gcc43 gcc44 gcc45 description {Compile using MacPorts gcc 4.6} {
    391     configure.compiler      macports-gcc-4.6
    392     depends_lib-append      port:gcc46
     327variant clang31 conflicts gcc47 gcc46 description {Compile using MacPorts clang 3.1} {
     328     configure.compiler      macports-clang-3.1
     329     depends_lib-append      port:clang-3.1
     330     configure.args-append   --with-llvm-config="${prefix}/bin/llvm-config-mp-3.1"
    393331}
    394332
    395 # variant clang31 conflicts gcc43 gcc44 gcc45 gcc46 description {EXPERIMENTAL - Compile using MacPorts clang 3.1} {
    396 #     configure.compiler      macports-clang-3.1
    397 #     depends_lib-append      port:clang-3.1
    398 #     configure.args-append   --with-llvm-config="${prefix}/bin/llvm-config"
    399 # }
     333livecheck.type              regex
     334livecheck.url               [lindex ${master_sites} 0]
     335livecheck.regex             ${name}_v(\[0-9a-z.\]+)\\.source
     336
     337# ========================================================================================
     338# The following have build issues or are obsolete. Keep just for reference for the moment
     339# ========================================================================================
    400340
    401341# variant cling requires clang31 description {EXPERIMENTAL - Enable cling interpreter backend} {
    402 #     configure.args-append --enable-cling
     342#       configure.args-append --enable-cling
    403343# }
    404344
    405 # Build issues.
    406345# variant kerberos5 description {Builds port with kerberos5 support} {
    407346#     configure.args-delete   --disable-krb5
    408347#     configure.args-append   --enable-krb5 \
     
    411350#      depends_lib-append      port:kerberos5
    412351# }
    413352
    414 # Build issues.
    415353# variant ftgl description {Builds port with ftgl support} {
    416354#     configure.args-delete   --enable-builtin-ftgl
    417355#     configure.args-append   --disable-builtin-ftgl \
     
    420358#     depends_lib-append      port:ftgl
    421359# }
    422360
    423 livecheck.type              regex
    424 livecheck.url               [lindex ${master_sites} 0]
    425 livecheck.regex             ${name}_v(\[0-9a-z.\]+)\\.source
     361# variant qt_x11 conflicts qt_mac description {Builds port with Qt support via X11 UI} {
     362#     # fix where "qglobal.h" is found in all files that use or reference it
     363#     post-patch {
     364#         foreach tpf { configure graf2d/qt/src/TGQt.cxx } {
     365#             reinplace "s@Qt/qglobal\\.h@QtCore/qglobal\\.h@g" \
     366#                 ${worksrcpath}/${tpf}
     367#         }
     368#         reinplace "/qttestdir/s@Qt@QtCore@g" ${worksrcpath}/configure
     369#     }
     370
     371#     configure.env-append    QTDIR=${prefix}/libexec/qt4-x11
     372#     configure.args-delete   --disable-qt
     373#     configure.args-delete   --disable-qtgsi
     374#     configure.args-append   --enable-qt --enable-qtgsi \
     375#                             --with-qt-incdir="${prefix}/include" \
     376#                             --with-qt-libdir="${prefix}/lib"
     377#     depends_lib-append      port:qt4-x11
     378# }
     379
     380# if {[variant_isset qt_mac]} {
     381#     PortGroup qt4 1.0
     382# }
     383
     384# variant qt_mac conflicts qt_x11 description {Builds port with Qt support via Mac UI} {
     385#     post-patch {
     386#         # fix where "qglobal.h" is found in all files that use or reference it
     387#         foreach tpf { configure graf2d/qt/src/TGQt.cxx } {
     388#             reinplace "s@Qt/qglobal\\.h@QtCore/qglobal\\.h@g" \
     389#                 ${worksrcpath}/${tpf}
     390#         }
     391#         reinplace "/qttestdir/s@Qt@QtCore@g" ${worksrcpath}/configure
     392
     393#         # fix library search extensions to include ".la"
     394#         # for Qt framework libraries (only)
     395#         reinplace "s@\\(\\.so \\.sl \\.dylib \\.dll\\.a\\)@\\1 \\.la@g" \
     396#             ${worksrcpath}/configure
     397#     }
     398
     399#     configure.args-delete   --disable-qt
     400#     configure.args-delete   --disable-qtgsi
     401#     configure.args-append   --enable-qt --enable-qtgsi \
     402#                             --with-qt-incdir="${prefix}/include" \
     403#                             --with-qt-libdir="${prefix}/lib"
     404#     depends_lib-append      port:qt4-mac
     405
     406#     post-configure {
     407#         # patch up the Makefile.config to handle the QTLIB frameworks correctly
     408#         reinplace "/QTLIB\[ \]/s@:= @:= -F${qt_libs_dir} @" \
     409#             ${worksrcpath}/config/Makefile.config
     410#         reinplace "/QTLIB\[ \]/s@\\(Qt\[^ \]*\\).la@-framework \\1@g" \
     411#             ${worksrcpath}/config/Makefile.config
     412#     }
     413# }