Ticket #32491: root.diff
File root.diff, 7.5 KB (added by cjones051073 (Chris Jones), 13 years ago) |
---|
-
science/root/Portfile
old new 1 1 # -*- 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 8 7844 2011-12-08 20:33:56Z pixilla@macports.org $2 # $Id: Portfile 86663 2011-10-31 16:08:47Z macsforever2000@macports.org $ 3 3 4 4 PortSystem 1.0 5 5 6 6 name root 7 7 version 5.32.00 8 revision 08 revision 1 9 9 categories science 10 10 maintainers gmail.com:mattiafrancescomoro hep.phy.cam.ac.uk:jonesc 11 11 license LGPL-2.1+ … … 40 40 41 41 patchfiles patch-configure.diff 42 42 43 if {${configure.compiler} == "clang"} { 44 configure.compiler llvm-gcc-4.2 45 } 43 # Clang seems OK now, with the new --with-clang option below 44 # if {${configure.compiler} == "clang"} { 45 # configure.compiler llvm-gcc-4.2 46 # } 46 47 47 48 post-patch { 48 49 reinplace "s|-lfreetype| \`freetype-config --libs\`|g" ${worksrcpath}/config/root-config.in … … 53 54 } 54 55 55 56 pre-configure { 56 configure.args-append \ 57 --with-cc=${configure.cc} \ 58 --with-cxx=${configure.cxx} \ 59 --with-ld=${configure.cxx} \ 60 --with-f77=${configure.f77} 57 if {${configure.compiler} == "clang"} { 58 configure.args-append --with-clang 59 } else { 60 if {${configure.compiler} == "macports-clang-3.1"} { 61 configure.args-append --with-clang 62 } else { 63 configure.args-append \ 64 --with-cc=${configure.cc} \ 65 --with-cxx=${configure.cxx} \ 66 --with-ld=${configure.cxx} \ 67 --with-f77=${configure.f77} 68 } 69 } 61 70 # the build type (32 or 64 bit) -must- be for first argument 62 71 if {${build_arch} == "i386" || ${build_arch} == "ppc"} { 63 72 configure.pre_args macosx --prefix=${prefix} … … 84 93 --disable-opengl \ 85 94 --disable-pythia6 \ 86 95 --disable-pythia8 \ 87 --disable-qt \88 --disable-qtgsi \89 96 --disable-roofit \ 90 97 --disable-ssl \ 91 98 --disable-xml \ … … 100 107 --disable-ruby \ 101 108 --disable-minuit2 \ 102 109 --disable-tmva \ 110 --disable-qt \ 111 --disable-qtgsi \ 112 --disable-bonjour \ 113 --disable-gviz \ 114 --disable-soversion \ 103 115 --with-x11-libdir=${prefix}/lib \ 104 116 --with-xpm-libdir=${prefix}/lib \ 105 --enable-builtin-ftgl 117 --enable-builtin-ftgl \ 118 --enable-mathmore \ 119 --enable-genvector \ 120 --enable-memstat \ 121 --enable-unuran \ 122 --enable-reflex \ 123 --enable-table 106 124 107 125 pre-build { 108 126 build.args CC=${configure.cc} \ … … 112 130 113 131 universal_variant no 114 132 115 default_variants +ssl +xml +gsl +minuit2 +tmva +roofit 133 default_variants +ssl +xml +gsl +minuit2 +tmva +roofit +graphviz +opengl +soversion 134 135 variant soversion description {Builds port with soversion support} { 136 configure.args-delete --disable-soversion 137 configure.args-append --enable-soversion 138 } 139 140 variant graphviz description {Builds port with graphviz support} { 141 configure.args-delete --disable-gviz 142 configure.args-append --enable-gviz \ 143 --with-gviz-incdir="${prefix}/include/graphviz" \ 144 --with-gviz-libdir="${prefix}/lib" 145 depends_lib-append port:graphviz 146 } 147 148 variant avahi description {Builds port with avahi support} { 149 configure.args-delete --disable-bonjour 150 configure.args-append --enable-bonjour \ 151 --with-avahi-incdir="${prefix}/include" \ 152 --with-avahi-libdir="${prefix}/lib" 153 depends_lib-append port:avahi 154 } 116 155 117 156 variant fftw3 description {Builds port with fftw3 support} { 118 157 configure.args-delete --disable-fftw3 … … 177 216 178 217 variant opengl description {Builds port with opengl support} { 179 218 configure.args-delete --disable-opengl 180 configure.args-append --enable-opengl \ 181 --with-opengl-incdir="${prefix}/include" \ 182 --with-opengl-libdir="${prefix}/lib" \ 183 --with-glew-incdir="${prefix}/include" \ 184 --with-glew-libdir="${prefix}/lib" 185 depends_lib-append port:glew port:mesa 219 configure.args-delete --disable-builtin-glew 220 configure.args-append --enable-opengl --enable-builtin-glew 186 221 } 187 222 188 223 variant python26 conflicts python32 python31 python27 description {Builds port with python 2.6 support} { … … 272 307 273 308 configure.env-append QTDIR=${prefix}/libexec/qt4-x11 274 309 configure.args-delete --disable-qt 275 configure.args-append --enable-qt 310 configure.args-delete --disable-qtgsi 311 configure.args-append --enable-qt --enable-qtgsi \ 312 --with-qt-incdir="${prefix}/include" \ 313 --with-qt-libdir="${prefix}/lib" 276 314 depends_lib-append port:qt4-x11 277 315 } 278 316 … … 296 334 } 297 335 298 336 configure.args-delete --disable-qt 299 configure.args-append --enable-qt 337 configure.args-delete --disable-qtgsi 338 configure.args-append --enable-qt --enable-qtgsi \ 339 --with-qt-incdir="${prefix}/include" \ 340 --with-qt-libdir="${prefix}/lib" 341 depends_lib-append port:qt4-mac 300 342 301 343 post-configure { 302 344 # patch up the Makefile.config to handle the QTLIB frameworks correctly … … 331 373 depends_lib-append port:pythia 332 374 } 333 375 334 variant gcc44 conflicts gcc45 gcc46 description {Compile using MacPorts gcc 4.4} { 376 variant gcc43 conflicts gcc44 gcc45 gcc46 description {Compile using MacPorts gcc 4.3} { 377 configure.compiler macports-gcc-4.3 378 depends_lib-append port:gcc43 379 } 380 381 variant gcc44 conflicts gcc43 gcc45 gcc46 description {Compile using MacPorts gcc 4.4} { 335 382 configure.compiler macports-gcc-4.4 336 383 depends_lib-append port:gcc44 337 384 } 338 385 339 variant gcc45 conflicts gcc4 4 gcc46 description {Compile using MacPorts gcc 4.5} {386 variant gcc45 conflicts gcc43 gcc44 gcc46 description {Compile using MacPorts gcc 4.5} { 340 387 configure.compiler macports-gcc-4.5 341 388 depends_lib-append port:gcc45 342 389 } 343 390 344 variant gcc46 conflicts gcc4 4 gcc45 description {Compile using MacPorts gcc 4.6} {391 variant gcc46 conflicts gcc43 gcc44 gcc45 description {Compile using MacPorts gcc 4.6} { 345 392 configure.compiler macports-gcc-4.6 346 393 depends_lib-append port:gcc46 347 394 } 348 395 396 # variant clang31 conflicts gcc43 gcc44 gcc45 gcc46 description {EXPERIMENTAL - Compile using MacPorts clang 3.1} { 397 # configure.compiler macports-clang-3.1 398 # depends_lib-append port:clang-3.1 399 # configure.args-append --with-llvm-config="${prefix}/bin/llvm-config" 400 # } 401 402 # variant cling description {EXPERIMENTAL - Enable cling interpreter backend. Requires clang31 variant as well.} { 403 # configure.args-append --enable-cling 404 # } 405 349 406 # Build issues. 350 407 # variant kerberos5 description {Builds port with kerberos5 support} { 351 408 # configure.args-delete --disable-krb5