Changeset 98544


Ignore:
Timestamp:
Oct 8, 2012, 1:25:11 PM (12 years ago)
Author:
vince@…
Message:
  1. Correct a bug of the previous patch that did not handle correctly universal builds;
  2. Bump to LAPACK 3.4.2 (wherefore the _1 revision).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/atlas/Portfile

    r98181 r98544  
    88name                            atlas
    99version                         3.10.0
     10revision                                                1
    1011
    1112# additional versions
    12 set lapackversion               3.4.1
     13set lapackversion               3.4.2
    1314set lapackname                  lapack
    1415set atlasdist                   ${name}${version}.tar.bz2
     
    3738rmd160  4e969dfee2662c536e2f2bfc49b51e8ef5bc2c94 \
    3839sha256  a90a2e3463504e3297b56edc13769d766732e82bd8f1de951cfc78444f148465 \
    39                     lapack-3.4.1.tgz \
    40 rmd160  3b715aff2924b47a45433376cfb9b66ffeeeb46d \
    41 sha256  93b910f94f6091a2e71b59809c4db4a14655db527cfc5821ade2e8c8ab75380f
     40                    lapack-3.4.2.tgz \
     41rmd160  8740c35c9a85b71424fe1ffeed192256aebeb431 \
     42sha256  60a65daaf16ec315034675942618a2230521ea7adf85eea788ee54841072faf0
    4243
    4344
     
    431432
    432433    if {[variant_isset universal]} {
    433         set    archs ${universal_archs_to_use}
    434     } else {
    435         set    archs ${build_arch}
    436     }
    437 
    438     foreach arch ${archs} {
    439         if {![variant_isset universal]} {
    440             set    atlas_path ${workpath}/${name}-${version}
    441         } else {
    442             set    atlas_path ${workpath}/${name}-${version}-${arch}
    443         }
    444 
    445         file mkdir ${atlas_path}/build
     434        foreach arch ${universal_archs_to_use} {
     435                        file mkdir ${workpath}/${name}-${version}-${arch}/build
     436                }
     437    } else {
     438        file mkdir ${workpath}/${name}-${version}/build
    446439    }
    447440}
     
    483476
    484477post-build {
    485     reinplace "s|^LIBTOOL=.*$|LIBTOOL=\$\(GCC\) \$\(GCCFLAGS\)|" \
    486         ${build.dir}/lib/Makefile
    487     reinplace "s|dynamic|dynamiclib|g" \
    488         ${build.dir}/lib/Makefile
    489     system "cd ${build.dir}/lib && ${build.cmd} shared_all"
     478        if {! [variant_isset universal]} {
     479                reinplace "s|^LIBTOOL=.*$|LIBTOOL=\$\(GCC\) \$\(GCCFLAGS\)|" \
     480                        ${build.dir}/lib/Makefile
     481                reinplace "s|dynamic|dynamiclib|g" \
     482                        ${build.dir}/lib/Makefile
     483                system "cd ${build.dir}/lib && ${build.cmd} shared_all"
     484        } else {
     485        foreach arch ${universal_archs_to_use} {
     486                        reinplace "s|^LIBTOOL=.*$|LIBTOOL=\$\(GCC\) \$\(GCCFLAGS\)|" \
     487                                ${workpath}/${name}-${version}-${arch}/build/lib/Makefile
     488                        reinplace "s|dynamic|dynamiclib|g" \
     489                                ${workpath}/${name}-${version}-${arch}/build/lib/Makefile
     490                        system "cd ${workpath}/${name}-${version}-${arch}/build/lib && \
     491                                        ${build.cmd} shared_all"
     492                }
     493        }
    490494}
    491495
Note: See TracChangeset for help on using the changeset viewer.