87 | | variant debug description {Build with debug symbols} { |
| 84 | variant accelerate conflicts atlas builtin_lapack description {build using the BLAS and Lapack in Apple's Accelerate framework} { |
| 85 | configure.args-append --with-blas="-framework vecLib" \ |
| 86 | --with-lapack="-framework vecLib" |
| 87 | } |
| 88 | |
| 89 | variant atlas conflicts accelerate builtin_lapack description {build using the BLAS and Lapack provided by the atlas port} { |
| 90 | #more in post-destroot phase |
| 91 | configure.args-append --without-blas --without-lapack |
| 92 | } |
| 93 | |
| 94 | variant builtin_lapack conflicts accelerate atlas description {build using reference BLAS and Lapack} { |
| 95 | configure.args-append --without-blas --without-lapack |
| 96 | } |
| 97 | |
| 98 | variant debug description {build with debug symbols} { |
207 | | ln -s ${build_arch}/libRblas.dylib ${destroot}${resources}/lib/libRblas.dylib |
208 | | ln -s ${build_arch}/libRlapack.dylib ${destroot}${resources}/lib/libRlapack.dylib |
| 222 | |
| 223 | if {[variant_isset atlas]} { |
| 224 | file delete ${destroot}${resources}/lib/${build_arch}/libRblas.dylib |
| 225 | file delete ${destroot}${resources}/lib/${build_arch}/libRlapack.dylib |
| 226 | ln -s ${prefix}/lib/libtatlas.dylib ${destroot}${resources}/lib/${build_arch}/libRblas.dylib |
| 227 | ln -s ${prefix}/lib/libtatlas.dylib ${destroot}${resources}/lib/${build_arch}/libRlapack.dylib |
| 228 | ln -s ${prefix}/lib/libtatlas.dylib ${destroot}${resources}/lib/libRblas.dylib |
| 229 | ln -s ${prefix}/lib/libtatlas.dylib ${destroot}${resources}/lib/libRlapack.dylib |
| 230 | } else { |
| 231 | ln -s ${build_arch}/libRblas.dylib ${destroot}${resources}/lib/libRblas.dylib |
| 232 | ln -s ${build_arch}/libRlapack.dylib ${destroot}${resources}/lib/libRlapack.dylib |
| 233 | } |
220 | | # Hopefully can get rid of this soon |
221 | | |
222 | | platform darwin 12 { |
223 | | configure.args-delete --with-blas="-framework vecLib" --with-lapack="-framework vecLib" |
224 | | configure.args-append --without-blas --without-lapack |
225 | | pre-configure { |
226 | | ui_msg "Temporary Mountain Lion issue: using builtin lapack" |
227 | | } |
228 | | } |
229 | | |
230 | | if {[variant_isset gcc45] || [variant_isset gcc46]} { |
231 | | if {${os.platform} == "darwin" && ${os.major} == 12} { |
232 | | ui_error "This version of the R-framework port does not compile with gcc45 or gcc46 on Mountain Lion" |
233 | | return -code error "incompatible variant" |
234 | | } |
235 | | } |
236 | | |
237 | | |