Changeset 97783
- Timestamp:
- Sep 15, 2012, 10:58:24 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/science/root/Portfile
r97763 r97783 339 339 } 340 340 341 variant gcc45 conflicts gcc46 gcc47 clang31 description {Compile using MacPorts gcc 4.5} {341 variant gcc45 conflicts gcc46 gcc47 gcc48 clang31 description {Compile using MacPorts gcc 4.5} { 342 342 configure.compiler macports-gcc-4.5 343 343 depends_lib-append port:gcc45 344 344 } 345 345 346 variant gcc46 conflicts gcc45 gcc47 clang31 description {Compile using MacPorts gcc 4.6} {346 variant gcc46 conflicts gcc45 gcc47 gcc48 clang31 description {Compile using MacPorts gcc 4.6} { 347 347 configure.compiler macports-gcc-4.6 348 348 depends_lib-append port:gcc46 349 349 } 350 350 351 variant gcc47 conflicts gcc45 gcc46 clang31 description {Compile using MacPorts gcc 4.7} {351 variant gcc47 conflicts gcc45 gcc46 gcc48 clang31 description {Compile using MacPorts gcc 4.7} { 352 352 configure.compiler macports-gcc-4.7 353 353 depends_lib-append port:gcc47 354 } 355 356 variant gcc48 conflicts gcc45 gcc46 gcc47 clang31 description {Compile using MacPorts gcc 4.8} { 357 configure.compiler macports-gcc-4.8 358 depends_lib-append port:gcc48 354 359 } 355 360 … … 358 363 depends_lib-append port:clang-3.1 359 364 configure.args-append --with-llvm-config="${prefix}/bin/llvm-config-mp-3.1" 365 } 366 367 if {[variant_isset qt_mac]} { 368 PortGroup qt4 1.0 369 } 370 371 variant qt_mac description {Builds port with Qt support via Mac UI} { 372 post-patch { 373 # fix where "qglobal.h" is found in all files that use or reference it 374 foreach tpf { configure graf2d/qt/src/TGQt.cxx } { 375 reinplace "s@Qt/qglobal\\.h@QtCore/qglobal\\.h@g" \ 376 ${worksrcpath}/${tpf} 377 } 378 reinplace "/qttestdir/s@Qt@QtCore@g" ${worksrcpath}/configure 379 380 # fix library search extensions to include ".la" 381 # for Qt framework libraries (only) 382 reinplace "s@\\(\\.so \\.sl \\.dylib \\.dll\\.a\\)@\\1 \\.la@g" \ 383 ${worksrcpath}/configure 384 } 385 386 configure.args-delete --disable-qt 387 configure.args-delete --disable-qtgsi 388 configure.args-append --enable-qt --enable-qtgsi \ 389 --with-qt-incdir="${prefix}/include" \ 390 --with-qt-libdir="${prefix}/lib" 391 depends_lib-append port:qt4-mac 392 393 post-configure { 394 # patch up the Makefile.config to handle the QTLIB frameworks correctly 395 reinplace "/QTLIB\[ \]/s@:= @:= -F${qt_libs_dir} @" \ 396 ${worksrcpath}/config/Makefile.config 397 reinplace "/QTLIB\[ \]/s@\\(Qt\[^ \]*\\).la@-framework \\1@g" \ 398 ${worksrcpath}/config/Makefile.config 399 } 360 400 } 361 401 … … 406 446 # depends_lib-append port:qt4-x11 407 447 # } 408 409 # if {[variant_isset qt_mac]} {410 # PortGroup qt4 1.0411 # }412 413 # variant qt_mac conflicts qt_x11 description {Builds port with Qt support via Mac UI} {414 # post-patch {415 # # fix where "qglobal.h" is found in all files that use or reference it416 # foreach tpf { configure graf2d/qt/src/TGQt.cxx } {417 # reinplace "s@Qt/qglobal\\.h@QtCore/qglobal\\.h@g" \418 # ${worksrcpath}/${tpf}419 # }420 # reinplace "/qttestdir/s@Qt@QtCore@g" ${worksrcpath}/configure421 422 # # fix library search extensions to include ".la"423 # # for Qt framework libraries (only)424 # reinplace "s@\\(\\.so \\.sl \\.dylib \\.dll\\.a\\)@\\1 \\.la@g" \425 # ${worksrcpath}/configure426 # }427 428 # configure.args-delete --disable-qt429 # configure.args-delete --disable-qtgsi430 # configure.args-append --enable-qt --enable-qtgsi \431 # --with-qt-incdir="${prefix}/include" \432 # --with-qt-libdir="${prefix}/lib"433 # depends_lib-append port:qt4-mac434 435 # post-configure {436 # # patch up the Makefile.config to handle the QTLIB frameworks correctly437 # reinplace "/QTLIB\[ \]/s@:= @:= -F${qt_libs_dir} @" \438 # ${worksrcpath}/config/Makefile.config439 # reinplace "/QTLIB\[ \]/s@\\(Qt\[^ \]*\\).la@-framework \\1@g" \440 # ${worksrcpath}/config/Makefile.config441 # }442 # }
Note: See TracChangeset
for help on using the changeset viewer.