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 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 9 2837 2012-05-09 00:51:48Z ryandesign@macports.org $2 # $Id: Portfile 90551 2012-03-08 21:13:31Z dports@macports.org $ 3 3 4 4 PortSystem 1.0 5 5 6 6 name root 7 version 5.3 2.028 revision 17 version 5.34.00 8 revision 0 9 9 categories science 10 10 maintainers gmail.com:mattiafrancescomoro hep.phy.cam.ac.uk:jonesc 11 11 license LGPL-2.1+ … … 19 19 master_sites http://root.cern.ch/download/ \ 20 20 ftp://root.cern.ch/root/ 21 21 22 checksums rmd160 0700dbb56adebd07c4e667fa9f78f7a75f59e511\23 sha256 5f14f50e4489cd74b3c5bdfbfff8379c6aaaf83d3ace3318c62964be6fdc38a222 checksums rmd160 6089493c70f94a1c4edd87ebe79adb9f3570f903 \ 23 sha256 808e04876dbc9cfbfea54ee11ba35e90382e8ff4219dbdbe2d2236a9dadf7df1 24 24 25 25 worksrcdir root 26 26 … … 29 29 port:pcre \ 30 30 port:Xft2 \ 31 31 port:xorg-libX11 \ 32 port:xpm \33 32 port:zlib \ 34 33 port:jpeg \ 35 34 port:libpng \ 36 35 port:giflib \ 37 36 port:tiff \ 38 port:gmp 37 port:gmp \ 38 port:xpm \ 39 port:expat 39 40 40 41 patchfiles patch-configure.diff 41 42 … … 53 54 } 54 55 55 56 pre-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" } { 57 63 configure.args-append --with-clang 58 } else {59 if {${configure.compiler} == "macports-clang-3.1"} {60 configure.args-append --with-clang61 } 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 }68 64 } 69 65 # the build type (32 or 64 bit) -must- be for first argument 70 66 if {${build_arch} == "i386" || ${build_arch} == "ppc"} { … … 111 107 --disable-bonjour \ 112 108 --disable-gviz \ 113 109 --disable-soversion \ 114 -- with-x11-libdir=${prefix}/lib\115 -- with-xpm-libdir=${prefix}/lib\110 --disable-c++11 \ 111 --disable-fink \ 116 112 --enable-builtin-ftgl \ 117 113 --enable-mathmore \ 118 114 --enable-genvector \ 119 115 --enable-memstat \ 120 116 --enable-unuran \ 121 117 --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 \ 123 124 124 125 pre-build { 125 126 build.args CC=${configure.cc} \ … … 235 236 variant python27 conflicts python32 python31 python26 description {Builds port with python 2.7 support} { 236 237 set mypydir ${prefix}/Library/Frameworks/Python.framework/Versions/2.7 237 238 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}" 239 242 depends_lib-append port:python27 240 243 post-destroot { 241 244 set mypysitedir ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ … … 261 264 variant python32 conflicts python31 python27 python26 description {Builds port with python 3.2 support} { 262 265 set mypydir ${prefix}/Library/Frameworks/Python.framework/Versions/3.2 263 266 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}" 265 270 depends_lib-append port:python32 266 271 post-destroot { 267 272 set mypysitedir ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/ … … 294 299 depends_lib-append port:libxml2 295 300 } 296 301 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 it299 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}/configure305 }306 307 configure.env-append QTDIR=${prefix}/libexec/qt4-x11308 configure.args-delete --disable-qt309 configure.args-delete --disable-qtgsi310 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-x11314 }315 316 if {[variant_isset qt_mac]} {317 PortGroup qt4 1.0318 }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 it323 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}/configure328 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}/configure333 }334 335 configure.args-delete --disable-qt336 configure.args-delete --disable-qtgsi337 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-mac341 342 post-configure {343 # patch up the Makefile.config to handle the QTLIB frameworks correctly344 reinplace "/QTLIB\[ \]/s@:= @:= -F${qt_libs_dir} @" \345 ${worksrcpath}/config/Makefile.config346 reinplace "/QTLIB\[ \]/s@\\(Qt\[^ \]*\\).la@-framework \\1@g" \347 ${worksrcpath}/config/Makefile.config348 }349 }350 351 302 variant mysql description {Builds port with mysql support} { 352 303 configure.args-delete --disable-mysql 353 304 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" 356 307 depends_lib-append port:mysql5 357 308 } 358 309 359 variant postgresql90 description {Builds port with PostgreSQLsupport} {310 variant postgresql90 conflicts postgresql92 description {Builds port with PostgreSQL 9.2 support} { 360 311 configure.args-delete --disable-pgsql 361 312 configure.args-append --enable-pgsql \ 362 313 --with-pgsql-incdir="${prefix}/include/postgresql90" \ … … 364 315 depends_lib-append port:libpqxx port:postgresql90 365 316 } 366 317 318 variant 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 367 326 variant pythia description {Pythia 8 support for root} { 368 327 configure.args-delete --disable-pythia8 369 328 configure.args-append --enable-pythia8 \ … … 372 331 depends_lib-append port:pythia 373 332 } 374 333 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 334 variant cocoa requires clang31 description {EXPERIMENTAL - Enables a native OSX graphical backend instead of X11} { 335 configure.args-append --enable-cocoa 383 336 } 384 337 385 variant gcc45 conflicts gcc4 3 gcc44 gcc46description {Compile using MacPorts gcc 4.5} {338 variant gcc45 conflicts gcc46 gcc47 clang31 description {Compile using MacPorts gcc 4.5} { 386 339 configure.compiler macports-gcc-4.5 387 340 depends_lib-append port:gcc45 388 341 } 389 342 390 variant gcc46 conflicts gcc4 3 gcc44 gcc45description {Compile using MacPorts gcc 4.6} {343 variant gcc46 conflicts gcc45 gcc47 clang31 description {Compile using MacPorts gcc 4.6} { 391 344 configure.compiler macports-gcc-4.6 392 345 depends_lib-append port:gcc46 393 346 } 394 347 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 # } 348 variant 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 353 variant 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 359 livecheck.type regex 360 livecheck.url [lindex ${master_sites} 0] 361 livecheck.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 # ======================================================================================== 400 366 401 367 # variant cling requires clang31 description {EXPERIMENTAL - Enable cling interpreter backend} { 402 # configure.args-append --enable-cling368 # configure.args-append --enable-cling 403 369 # } 404 370 405 # Build issues.406 371 # variant kerberos5 description {Builds port with kerberos5 support} { 407 372 # configure.args-delete --disable-krb5 408 373 # configure.args-append --enable-krb5 \ … … 411 376 # depends_lib-append port:kerberos5 412 377 # } 413 378 414 # Build issues.415 379 # variant ftgl description {Builds port with ftgl support} { 416 380 # configure.args-delete --enable-builtin-ftgl 417 381 # configure.args-append --disable-builtin-ftgl \ … … 420 384 # depends_lib-append port:ftgl 421 385 # } 422 386 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 # }