33 | | patchfiles patch-ATL_AVgcc-fix.diff \ |
34 | | patch-archinfo_freebsd.c.diff \ |
35 | | patch-SpewMakeInc.c.diff |
36 | | |
37 | | checksums $atlasdist \ |
38 | | md5 6c13be94a87178e7582111c08e9503bc \ |
39 | | sha1 c7546210df4796457d9e96a00444adc4c0f2e77f \ |
40 | | rmd160 0425e630d9d0c5b7aae81427a41b7eaa18447e90 \ |
41 | | $lapackdist \ |
42 | | md5 10832891c9e8100f81108c1ec7da0da4 \ |
43 | | sha1 a434c45932f6affb654b3abde21dd669f5751633 \ |
44 | | rmd160 62426f2f360b2c438853ee6230da08f1f23dfd5b |
| 33 | patchfiles patch-SpewMakeInc.c.diff |
| 34 | |
| 35 | checksums atlas3.9.33.tar.bz2 \ |
| 36 | md5 8f518f386b69bdfd1f5061704aa196f9 \ |
| 37 | sha1 8dbc6015318458ff7abd178964d90350a18ce9fa \ |
| 38 | rmd160 810033a9f81c11994a5221dc268e3da84e2367d7 \ |
| 39 | lapack-3.3.0.tgz \ |
| 40 | md5 84213fca70936cc5f1b59a7b1bf71697 \ |
| 41 | sha1 4f0b103da52110e7f60d1d7676727103aca9785e \ |
| 42 | rmd160 cc72e7c93ab13464fd892d684b00b910cbbd3b3e |
107 | | configure.args-delete -b ${my_arch} |
108 | | lappend merger_configure_args(ppc) -b 32 |
109 | | lappend merger_configure_args(ppc64) -b 64 |
110 | | lappend merger_configure_args(i386) -b 32 |
111 | | lappend merger_configure_args(x86_64) -b 64 |
| 107 | configure.args-delete --cc=${configure.cc} \ |
| 108 | -b ${my_arch} \ |
| 109 | -Fa alg -fPIC |
| 110 | |
| 111 | lappend merger_configure_args(ppc) --cc='${configure.cc} -m32' \ |
| 112 | -b 32 \ |
| 113 | -s gas_ppc \ |
| 114 | -Fa alg '-fPIC -m32' |
| 115 | lappend merger_configure_args(ppc64) --cc='${configure.cc} -m64' \ |
| 116 | -b 64 \ |
| 117 | -s gas_ppc \ |
| 118 | -Fa alg '-fPIC -m64' |
| 119 | lappend merger_configure_args(i386) --cc='${configure.cc} -m32' \ |
| 120 | -b 32 \ |
| 121 | -s gas_x86_32 \ |
| 122 | -Fa alg '-fPIC -m32' |
| 123 | lappend merger_configure_args(x86_64) --cc='${configure.cc} -m64' \ |
| 124 | -b 64 \ |
| 125 | -s gas_x86_64 \ |
| 126 | -Fa alg '-fPIC -m64' |
180 | | set lapack_path ${workpath}/${lapackname}-${lapackversion}-${arch} |
181 | | } |
182 | | ui_debug "Clean out old temp directory if exists" |
183 | | file delete -force ${atlas_path}/temp |
184 | | file mkdir ${atlas_path}/temp |
185 | | ui_debug "Assembled Command: '${configure.cmd} ${configure.args} $merger_configure_args(${arch})" |
186 | | system "cd ${atlas_path}/temp && \ |
187 | | ${configure.cmd} ${configure.args} $merger_configure_args(${arch})" |
188 | | |
189 | | # Get the F77FLAGS |
190 | | set atlas_f77 [join [lrange [split [exec grep "F77 = " $atlas_path/temp/Make.inc ] =] 1 end] =] |
191 | | ui_debug "Found atlas F77: ${atlas_f77}" |
192 | | |
193 | | set atlas_fflags [join [lrange [split [exec grep "F77FLAGS = " $atlas_path/temp/Make.inc] =] 1 end] =] |
194 | | ui_debug "Found atlas F77FLAGS: ${atlas_fflags}" |
195 | | |
196 | | ui_debug "Remove the old test configure directory" |
197 | | file delete -force ${atlas_path}/temp |
198 | | |
199 | | # compile lapack |
200 | | system "cd ${lapack_path} && \ |
201 | | cp INSTALL/make.inc.gfortran make.inc" |
202 | | reinplace "s|gfortran|${atlas_f77}|" \ |
203 | | ${lapack_path}/make.inc |
204 | | reinplace "s|OPTS = -O2|OPTS = ${atlas_fflags}|" \ |
205 | | ${lapack_path}/make.inc |
206 | | |
207 | | if { ! [variant_isset universal] } { |
208 | | reinplace "s|NOOPT = -O0|NOOPT = -O2 -m${my_arch}|" \ |
209 | | ${lapack_path}/make.inc |
210 | | } else { |
211 | | if { ${arch}=="i386" || ${arch}=="ppc" } { |
212 | | reinplace "s|NOOPT = -O0|NOOPT = -O2 -m32|" \ |
213 | | ${lapack_path}/make.inc |
214 | | } else { |
215 | | reinplace "s|NOOPT = -O0|NOOPT = -O2 -m64|" \ |
216 | | ${lapack_path}/make.inc |
217 | | } |
218 | | } |
219 | | |
220 | | reinplace "s|PLAT = _LINUX|PLAT = _darwin|" \ |
221 | | ${lapack_path}/make.inc |
222 | | |
223 | | reinplace "s|LOADOPTS =|LOADOPTS = ${atlas_fflags}|" \ |
224 | | ${lapack_path}/make.inc |
225 | | |
226 | | system "cd ${lapack_path} && make lib" |
227 | | |
228 | | # create a build directory for atlas |
229 | | file mkdir ${atlas_path}/build |
230 | | |
231 | | if { ! [variant_isset universal] } { |
232 | | configure.args-append --with-netlib-lapack=${lapack_path}/lapack_darwin.a |
233 | | } else { |
234 | | lappend merger_configure_args(${arch}) --with-netlib-lapack=${lapack_path}/lapack_darwin.a |
235 | | } |
236 | | } |
| 186 | } |
| 187 | |
| 188 | file mkdir ${atlas_path}/build |
| 189 | } |