Changeset 103464 for trunk/dports/math/atlas
- Timestamp:
- Feb 26, 2013, 2:35:03 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/math/atlas/Portfile
r103159 r103464 8 8 name atlas 9 9 version 3.10.1 10 revision 110 revision 2 11 11 12 12 # additional versions … … 220 220 221 221 configure.args-append --nof77 222 }223 224 if {${build_arch} == "ppc" || ${build_arch} == "ppc64"} {225 226 configure.args-append -t 0227 222 } 228 223 … … 320 315 } 321 316 317 pre-fetch { 318 # If we run on a mono-processor machine (PPC), then disable threading 319 320 if {![catch {sysctl hw.logicalcpu} result] && $result == 1} { 321 configure.args-append -t 0 322 ui_msg "Building sequential only version of atlas." 323 } 324 } 325 326 322 327 extract { 323 328 # extract Atlas and move to a consistent working directory name … … 500 505 # Ensure libgomp is linked 501 506 if {[info exists gccversion] && ${gccnumber} > 45} { 502 set gmpfx${prefix}/lib/gcc${gccnumber}503 504 505 506 507 508 509 510 511 507 set gmpfx ${prefix}/lib/gcc${gccnumber} 508 if {[file exists ${gmpfx}/${arch}/libgomp.dylib]} { 509 reinplace -E \ 510 "s|(LIBS =.*)|\\1 ${gmpfx}/${arch}/libgomp.dylib|" \ 511 ${atlas_path}/build/Make.inc 512 } else { 513 reinplace -E \ 514 "s|(LIBS =.*)|\\1 ${gmpfx}/libgomp.dylib|" \ 515 ${atlas_path}/build/Make.inc 516 } 512 517 } 513 518 } … … 521 526 post-build { 522 527 if {! [variant_isset universal]} { 528 set libdir ${build.dir}/lib 523 529 reinplace "s|^LIBTOOL=.*$|LIBTOOL=\$\(GCC\) \$\(GCCFLAGS\)|" \ 524 ${build.dir}/lib/Makefile 525 reinplace "s|dynamic|dynamiclib|g" \ 526 ${build.dir}/lib/Makefile 527 system "cd ${build.dir}/lib && ${build.cmd} shared_all" 530 ${libdir}/Makefile 531 reinplace "s|dynamic|dynamiclib|g" ${libdir}/Makefile 532 533 # On mono-processors machines, build libsatlas.dylib only 534 if {![catch {sysctl hw.logicalcpu} result] && $result == 1} { 535 system -W ${libdir} "${build.cmd} dylib" 536 } else { 537 system -W ${libdir} "${build.cmd} shared_all" 538 } 528 539 } else { 529 540 foreach arch ${universal_archs_to_use} { 541 set libdir ${workpath}/${name}-${version}-${arch}/build/lib 530 542 reinplace "s|^LIBTOOL=.*$|LIBTOOL=\$\(GCC\) \$\(GCCFLAGS\)|" \ 531 ${workpath}/${name}-${version}-${arch}/build/lib/Makefile 532 reinplace "s|dynamic|dynamiclib|g" \ 533 ${workpath}/${name}-${version}-${arch}/build/lib/Makefile 534 system "cd ${workpath}/${name}-${version}-${arch}/build/lib && \ 535 ${build.cmd} shared_all" 543 ${libdir}/Makefile 544 reinplace "s|dynamic|dynamiclib|g" ${libdir}/Makefile 545 546 # Same as above 547 if {![catch {sysctl hw.logicalcpu} result] && $result == 1} { 548 system -W ${libdir} "${build.cmd} dylib" 549 } else { 550 system -W ${libdir} "${build.cmd} shared_all" 551 } 536 552 } 537 553 } … … 541 557 destroot.destdir DESTDIR=${destroot}${prefix} 542 558 559 post-destroot { 560 # On monoprocessor machines, make tatlas and satlas synonymous 561 if {![catch {sysctl hw.logicalcpu} result] && $result == 1} { 562 set libdir ${destroot}${prefix}/lib 563 system -W ${libdir} "ln -s libsatlas.dylib libtatlas.dylib" 564 } 565 } 566 543 567 livecheck.name math-atlas 544 568 livecheck.distname Stable
Note: See TracChangeset
for help on using the changeset viewer.