Ticket #34854: root.Portfile.diff
File root.Portfile.diff, 15.3 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 … … 54 55 55 56 pre-configure { 56 57 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} 58 63 } else { 59 64 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} 61 70 } else { 62 71 configure.args-append \ 63 72 --with-cc=${configure.cc} \ … … 111 120 --disable-bonjour \ 112 121 --disable-gviz \ 113 122 --disable-soversion \ 114 -- with-x11-libdir=${prefix}/lib\115 -- with-xpm-libdir=${prefix}/lib\123 --disable-c++11 \ 124 --disable-fink \ 116 125 --enable-builtin-ftgl \ 117 126 --enable-mathmore \ 118 127 --enable-genvector \ 119 128 --enable-memstat \ 120 129 --enable-unuran \ 121 130 --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 \ 123 137 124 138 pre-build { 125 139 build.args CC=${configure.cc} \ … … 219 233 configure.args-append --enable-opengl --enable-builtin-glew 220 234 } 221 235 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} { 236 variant python27 conflicts python32 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/ … … 245 248 } 246 249 } 247 250 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} { 251 variant python32 conflicts python27 description {Builds port with python 3.2 support} { 262 252 set mypydir ${prefix}/Library/Frameworks/Python.framework/Versions/3.2 263 253 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}" 265 257 depends_lib-append port:python32 266 258 post-destroot { 267 259 set mypysitedir ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/ … … 294 286 depends_lib-append port:libxml2 295 287 } 296 288 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 289 variant mysql description {Builds port with mysql support} { 352 290 configure.args-delete --disable-mysql 353 291 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 357 295 } 358 296 359 variant postgresql9 0description {Builds port with PostgreSQL support} {297 variant postgresql92 description {Builds port with PostgreSQL support} { 360 298 configure.args-delete --disable-pgsql 361 299 configure.args-append --enable-pgsql \ 362 --with-pgsql-incdir="${prefix}/include/postgresql9 0" \363 --with-pgsql-libdir="${prefix}/lib/postgresql9 0"364 depends_lib-append port:libpqxx port:postgresql9 0300 --with-pgsql-incdir="${prefix}/include/postgresql92" \ 301 --with-pgsql-libdir="${prefix}/lib/postgresql92" 302 depends_lib-append port:libpqxx port:postgresql92 365 303 } 366 304 367 305 variant pythia description {Pythia 8 support for root} { … … 372 310 depends_lib-append port:pythia 373 311 } 374 312 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 313 variant cocoa requires clang31 description {EXPERIMENTAL - Enables a native OSX graphical backend instead of X11} { 314 configure.args-append --enable-cocoa 378 315 } 379 316 380 variant gcc4 4 conflicts gcc43 gcc45 gcc46 description {Compile using MacPorts gcc 4.4} {381 configure.compiler macports-gcc-4. 4382 depends_lib-append port:gcc4 4317 variant gcc46 conflicts gcc47 clang31 description {Compile using MacPorts gcc 4.6} { 318 configure.compiler macports-gcc-4.6 319 depends_lib-append port:gcc46 383 320 } 384 321 385 variant gcc4 5 conflicts gcc43 gcc44 gcc46 description {Compile using MacPorts gcc 4.5} {386 configure.compiler macports-gcc-4. 5387 depends_lib-append port:gcc4 5322 variant gcc47 conflicts gcc46 clang31 description {Compile using MacPorts gcc 4.7} { 323 configure.compiler macports-gcc-4.7 324 depends_lib-append port:gcc47 388 325 } 389 326 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 327 variant 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" 393 331 } 394 332 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 # } 333 livecheck.type regex 334 livecheck.url [lindex ${master_sites} 0] 335 livecheck.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 # ======================================================================================== 400 340 401 341 # variant cling requires clang31 description {EXPERIMENTAL - Enable cling interpreter backend} { 402 # configure.args-append --enable-cling342 # configure.args-append --enable-cling 403 343 # } 404 344 405 # Build issues.406 345 # variant kerberos5 description {Builds port with kerberos5 support} { 407 346 # configure.args-delete --disable-krb5 408 347 # configure.args-append --enable-krb5 \ … … 411 350 # depends_lib-append port:kerberos5 412 351 # } 413 352 414 # Build issues.415 353 # variant ftgl description {Builds port with ftgl support} { 416 354 # configure.args-delete --enable-builtin-ftgl 417 355 # configure.args-append --disable-builtin-ftgl \ … … 420 358 # depends_lib-append port:ftgl 421 359 # } 422 360 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 # }