Ticket #34854: root.Portfile.2.diff

File root.Portfile.2.diff, 14.0 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
     
    5354}
    5455
    5556pre-configure {
    56     if {${configure.compiler} == "clang"} {
     57    configure.args-append \
     58          --with-cc=${configure.cc} \
     59          --with-cxx=${configure.cxx} \
     60          --with-ld=${configure.cxx} \
     61          --with-f77=${configure.f77}
     62    if { ${configure.compiler} == "clang" || ${configure.compiler} == "macports-clang-3.1" } {
    5763        configure.args-append --with-clang
    58     } else {
    59         if {${configure.compiler} == "macports-clang-3.1"} {
    60             configure.args-append --with-clang
    61         } else {
    62             configure.args-append \
    63              --with-cc=${configure.cc} \
    64              --with-cxx=${configure.cxx} \
    65              --with-ld=${configure.cxx} \
    66              --with-f77=${configure.f77}
    67         }
    6864    }
    6965    # the build type (32 or 64 bit) -must- be for first argument
    7066    if {${build_arch} == "i386" || ${build_arch} == "ppc"} {
     
    111107                    --disable-bonjour \
    112108                    --disable-gviz \
    113109                    --disable-soversion \
    114                     --with-x11-libdir=${prefix}/lib \
    115                     --with-xpm-libdir=${prefix}/lib \
     110                    --disable-c++11 \
     111                    --disable-fink \
    116112                    --enable-builtin-ftgl \
    117113                    --enable-mathmore \
    118114                    --enable-genvector \
    119115                    --enable-memstat \
    120116                    --enable-unuran \
    121117                    --enable-reflex \
    122                     --enable-table
     118                    --enable-table \
     119                    --enable-fink
     120
     121# Seem to cause build problems with FTGL ...
     122#                    --with-x11-libdir=${prefix}/lib \
     123#                    --with-xpm-libdir=${prefix}/lib \
    123124
    124125pre-build {
    125126    build.args      CC=${configure.cc} \
     
    235236variant python27 conflicts python32 python31 python26 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/
     
    261264variant python32 conflicts python31 python27 python26 description {Builds port with python 3.2 support} {
    262265    set mypydir ${prefix}/Library/Frameworks/Python.framework/Versions/3.2
    263266    configure.args-delete   --disable-python
    264     configure.args-append   --enable-python --with-python-incdir="${mypydir}/Headers" --with-python-libdir="${mypydir}"
     267    configure.args-append   --enable-python \
     268                            --with-python-incdir="${mypydir}/Headers" \
     269                            --with-python-libdir="${mypydir}"
    265270    depends_lib-append      port:python32
    266271    post-destroot {
    267272        set mypysitedir ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/
     
    294299    depends_lib-append      port:libxml2
    295300}
    296301
    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 
    351302variant mysql description {Builds port with mysql support} {
    352303    configure.args-delete   --disable-mysql
    353304    configure.args-append   --enable-mysql \
    354                             --with-mysql-incdir="${prefix}/include" \
    355                             --with-mysql-libdir="${prefix}/lib"
     305                            --with-mysql-incdir="${prefix}/include/mysql5/mysql" \
     306                            --with-mysql-libdir="${prefix}/lib/mysql5/mysql"
    356307    depends_lib-append      port:mysql5
    357308}
    358309
    359 variant postgresql90 description {Builds port with PostgreSQL support} {
     310variant postgresql90 conflicts postgresql92 description {Builds port with PostgreSQL 9.2 support} {
    360311    configure.args-delete   --disable-pgsql
    361312    configure.args-append   --enable-pgsql \
    362313                            --with-pgsql-incdir="${prefix}/include/postgresql90" \
     
    364315    depends_lib-append      port:libpqxx port:postgresql90
    365316}
    366317
     318variant postgresql92 conflicts postgresql90 description {Builds port with PostgreSQL 9.0 support} {
     319    configure.args-delete   --disable-pgsql
     320    configure.args-append   --enable-pgsql \
     321                            --with-pgsql-incdir="${prefix}/include/postgresql92" \
     322                            --with-pgsql-libdir="${prefix}/lib/postgresql92"
     323    depends_lib-append      port:libpqxx port:postgresql92
     324}
     325
    367326variant pythia description {Pythia 8 support for root} {
    368327    configure.args-delete   --disable-pythia8
    369328    configure.args-append   --enable-pythia8 \
     
    372331    depends_lib-append      port:pythia
    373332}
    374333
    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
    378 }
    379 
    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
     334variant cocoa requires clang31 description {EXPERIMENTAL - Enables a native OSX graphical backend instead of X11} {
     335    configure.args-append --enable-cocoa
    383336}
    384337
    385 variant gcc45 conflicts gcc43 gcc44 gcc46 description {Compile using MacPorts gcc 4.5} {
     338variant gcc45 conflicts gcc46 gcc47 clang31 description {Compile using MacPorts gcc 4.5} {
    386339    configure.compiler      macports-gcc-4.5
    387340    depends_lib-append      port:gcc45
    388341}
    389342
    390 variant gcc46 conflicts gcc43 gcc44 gcc45 description {Compile using MacPorts gcc 4.6} {
     343variant gcc46 conflicts gcc45 gcc47 clang31 description {Compile using MacPorts gcc 4.6} {
    391344    configure.compiler      macports-gcc-4.6
    392345    depends_lib-append      port:gcc46
    393346}
    394347
    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 # }
     348variant gcc47 conflicts gcc45 gcc46 clang31 description {Compile using MacPorts gcc 4.7} {
     349    configure.compiler      macports-gcc-4.7
     350    depends_lib-append      port:gcc47
     351}
     352
     353variant clang31 conflicts gcc47 gcc46 gcc45 description {Compile using MacPorts clang 3.1} {
     354     configure.compiler      macports-clang-3.1
     355     depends_lib-append      port:clang-3.1
     356     configure.args-append   --with-llvm-config="${prefix}/bin/llvm-config-mp-3.1"
     357}
     358
     359livecheck.type              regex
     360livecheck.url               [lindex ${master_sites} 0]
     361livecheck.regex             ${name}_v(\[0-9a-z.\]+)\\.source
     362
     363# ========================================================================================
     364# The following have build issues or are obsolete. Keep just for reference for the moment
     365# ========================================================================================
    400366
    401367# variant cling requires clang31 description {EXPERIMENTAL - Enable cling interpreter backend} {
    402 #     configure.args-append --enable-cling
     368#       configure.args-append --enable-cling
    403369# }
    404370
    405 # Build issues.
    406371# variant kerberos5 description {Builds port with kerberos5 support} {
    407372#     configure.args-delete   --disable-krb5
    408373#     configure.args-append   --enable-krb5 \
     
    411376#      depends_lib-append      port:kerberos5
    412377# }
    413378
    414 # Build issues.
    415379# variant ftgl description {Builds port with ftgl support} {
    416380#     configure.args-delete   --enable-builtin-ftgl
    417381#     configure.args-append   --disable-builtin-ftgl \
     
    420384#     depends_lib-append      port:ftgl
    421385# }
    422386
    423 livecheck.type              regex
    424 livecheck.url               [lindex ${master_sites} 0]
    425 livecheck.regex             ${name}_v(\[0-9a-z.\]+)\\.source
     387# variant qt_x11 conflicts qt_mac description {Builds port with Qt support via X11 UI} {
     388#     # fix where "qglobal.h" is found in all files that use or reference it
     389#     post-patch {
     390#         foreach tpf { configure graf2d/qt/src/TGQt.cxx } {
     391#             reinplace "s@Qt/qglobal\\.h@QtCore/qglobal\\.h@g" \
     392#                 ${worksrcpath}/${tpf}
     393#         }
     394#         reinplace "/qttestdir/s@Qt@QtCore@g" ${worksrcpath}/configure
     395#     }
     396
     397#     configure.env-append    QTDIR=${prefix}/libexec/qt4-x11
     398#     configure.args-delete   --disable-qt
     399#     configure.args-delete   --disable-qtgsi
     400#     configure.args-append   --enable-qt --enable-qtgsi \
     401#                             --with-qt-incdir="${prefix}/include" \
     402#                             --with-qt-libdir="${prefix}/lib"
     403#     depends_lib-append      port:qt4-x11
     404# }
     405
     406# if {[variant_isset qt_mac]} {
     407#     PortGroup qt4 1.0
     408# }
     409
     410# variant qt_mac conflicts qt_x11 description {Builds port with Qt support via Mac UI} {
     411#     post-patch {
     412#         # fix where "qglobal.h" is found in all files that use or reference it
     413#         foreach tpf { configure graf2d/qt/src/TGQt.cxx } {
     414#             reinplace "s@Qt/qglobal\\.h@QtCore/qglobal\\.h@g" \
     415#                 ${worksrcpath}/${tpf}
     416#         }
     417#         reinplace "/qttestdir/s@Qt@QtCore@g" ${worksrcpath}/configure
     418
     419#         # fix library search extensions to include ".la"
     420#         # for Qt framework libraries (only)
     421#         reinplace "s@\\(\\.so \\.sl \\.dylib \\.dll\\.a\\)@\\1 \\.la@g" \
     422#             ${worksrcpath}/configure
     423#     }
     424
     425#     configure.args-delete   --disable-qt
     426#     configure.args-delete   --disable-qtgsi
     427#     configure.args-append   --enable-qt --enable-qtgsi \
     428#                             --with-qt-incdir="${prefix}/include" \
     429#                             --with-qt-libdir="${prefix}/lib"
     430#     depends_lib-append      port:qt4-mac
     431
     432#     post-configure {
     433#         # patch up the Makefile.config to handle the QTLIB frameworks correctly
     434#         reinplace "/QTLIB\[ \]/s@:= @:= -F${qt_libs_dir} @" \
     435#             ${worksrcpath}/config/Makefile.config
     436#         reinplace "/QTLIB\[ \]/s@\\(Qt\[^ \]*\\).la@-framework \\1@g" \
     437#             ${worksrcpath}/config/Makefile.config
     438#     }
     439# }