Ticket #43917: root6.diff

File root6.diff, 4.5 KB (added by cjones051073 (Chris Jones), 10 years ago)
  • Portfile

     
    99PortGroup           github 1.0
    1010PortGroup           select 1.0
    1111
    12 # TODO:
    13 # - try to figure out if one could also build root6 on < 10.9
    14 # - version 5.99.06-beta is broken also on 10.9
    15 #if {${os.major} < 13 } {
    16 github.setup        root-mirror root e3dec6e203
    17 version             5.99.05-beta
    18 checksums           rmd160  69f6a99413908eed7789bc30939a621f45eac7a2 \
    19                     sha256  10f2956cd821471477a351c01355c2eb802c01e046764d18865e7416dfa810f8
    20 #} else {
    21 #   github.setup    root-mirror root 5-99-06 v
    22 #   version         5.99.06-beta
    23 #   checksums       rmd160  b8b5ae705aae185c0d6ed097a5efa6fbeb961bfb \
    24 #                   sha256  c873d536769ff06616c0a9981e7f1db2414eaca0a1bcab045d4073b36644981a
    25 #}
     12# The official 6.00.00 release
     13#github.setup        root-mirror root 6-00-00 v
     14#version             6.00.00
     15#checksums           rmd160  d6c67868a2f4a4dcb649b45b8c959abca27da11a \
     16#                    sha256  4bc0f98b7dff32099e2844dd12bb8ec05b76ba899fdeb0848d9c013416606586
    2617
     18# Essentially 6.00.00, but with some bug fixes to the build system...
     19github.setup        root-mirror root aaf9b65
     20version             6.00.00
     21checksums           rmd160  e0b7080d897469f421dd5ee44ca570a4774dc5d4 \
     22                    sha256  58692b7e2c970df5eac0dd298ab7d1ac5352e4ed549d61c29578d71915e831be
     23
    2724name                root6
    2825set version_major   6
    2926categories          science
     
    3330description         ROOT is a data analysis framework from CERN
    3431long_description    The ROOT system provides a set of frameworks with all \
    3532                    the functionality needed to handle and analyze large amounts \
    36                     of data in a very efficient way. This version provides a build \
    37                     of a snapshot of the ROOT 6 development version. \
    38                     For a stable release install the root port instead.
     33                    of data in a very efficient way. ROOT6 is a development release, \
     34                    for a more stable release install the ROOT5 port instead.
    3935
    4036homepage            http://root.cern.ch/
    4137platforms           darwin
     
    168164    ln -s ${install_prefix}/etc/root ${destroot}${prefix}/etc/root${version_major}
    169165    # share dir
    170166    ln -s ${install_prefix}/share ${destroot}${prefix}/share/root${version_major}
    171     # 'Fix' genreflex
    172     #reinplace "s|lib/python/genreflex|lib/root${version_major}/python/genreflex|g" ${destroot}${install_prefix}/bin/genreflex
    173167    # Compress manpages in custom location (borrowed from mariadb)
    174168    set manpath ${install_prefix}/share/man
    175169    set gzip [findBinary gzip ${portutil::autoconf::gzip_path}]
     
    219213}
    220214
    221215# TODO - Doesn't seem to work. To be reported upstream..
    222 # variant xrootd description {Build with XRootD support} {
    223 #   system "export XRDSYS=${prefix}/lib"
    224 #   configure.args-replace  -Dxrootd=OFF -Dxrootd=ON
    225 # #configure.args-append   -Dbuiltin_xrootd=ON
    226 #   configure.args-append   -DXROOTD_INCLUDE_DIR="${prefix}/include/xrootd"
    227 #   depends_lib-append      port:xrootd
    228 # }
     216variant xrootd description {Build with XRootD support} {
     217 #system "export XRDSYS=${prefix}/lib"
     218  configure.args-replace  -Dxrootd=OFF -Dxrootd=ON
     219 #configure.args-append   -Dbuiltin_xrootd=ON
     220  configure.args-append   -DXROOTD_INCLUDE_DIR="${prefix}/include/xrootd"
     221  depends_lib-append      port:xrootd
     222}
    229223
    230224variant soversion description {Build with soversion support} {
    231225    configure.args-replace  -Dsoversion=OFF -Dsoversion=ON
     
    431425#     depends_lib-append     port:oracle-instantclient
    432426# }
    433427
    434 # TODO - Doesn't seem to work. To be reported upstream..
    435 # variant pythia description {Pythia 8 support for root} {
    436 #     configure.args-replace  -Dpythia8=OFF -Dpythia8=ON
    437 #     configure.args-append   -DPYTHIA8_INCLUDE_DIR=${prefix}/include \
    438 #                             -DPYTHIA8_LIBRARY=${prefix}/lib/libpythia8.dylib
    439 #     depends_lib-append      port:pythia
    440 # }
     428variant pythia description {Enables Pythia 8 support} {
     429    configure.args-replace  -Dpythia8=OFF -Dpythia8=ON
     430    configure.args-append   -DPYTHIA8_INCLUDE_DIR=${prefix}/include/pythia \
     431                            -DPYTHIA8_LIBRARY=${prefix}/lib/libpythia8.dylib
     432    depends_lib-append      port:pythia
     433}
    441434
    442435variant cocoa conflicts x11 description {Enables native OSX graphical backend} {
    443436    # Enable cocoa support in configure