Ticket #55139: Portfile

File Portfile, 2.0 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 7 years ago)
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2
3PortSystem          1.0
4PortGroup           languages 1.0
5
6name                blas
7version             3.7.1
8categories          math devel science
9platforms           darwin
10license             BSD
11maintainers         nomaintainer
12description         BLAS Routines
13long_description    BLAS Routines
14
15homepage            http://www.netlib.org/${name}/
16master_sites        ${homepage}
17
18checksums           rmd160  7f133b65294eef68e052acab1e339a6690be8af6 \
19                    sha256  c5a654351f0b046a502bf04b16740b9ab49c7d8512d6d57ad3a64184c8e575c3
20extract.suffix      .tgz
21
22use_configure       no
23
24#compiler.openmp_version  2.5
25compiler.require_fortran yes
26
27#default_variants-append +openmpi
28#default_variants-append +gfortran
29
30compiler.require_fortran yes
31
32variant mpich conflicts openmpi {}
33if {[variant_isset mpich]} {
34    compiler.mpi mpich
35}
36
37variant openmpi conflicts mpich {}
38if {[variant_isset openmpi]} {
39    compiler.mpi openmpi
40}
41
42variant gcc7 conflicts gfortran {}
43if {[variant_isset gcc7]} {
44    compiler.whitelist macports-gcc-7 macports-mpich-gcc-7 macports-openmpi-gcc-7
45}
46
47variant gfortran conflicts gcc7 {}
48if {[variant_isset gfortran]} {
49    compiler.fortran_fallback macports-gcc-7 macports-mpich-gcc-7 macports-openmpi-gcc-7
50}
51
52ui_msg "------------------------------------------------------------------"
53#ui_msg ${compiler.fallback}
54#ui_msg ${compiler.fortran_fallback}
55ui_msg ${configure.cxx}
56ui_msg ${configure.cc}
57ui_msg ${configure.cpp}
58ui_msg ${configure.fc}
59#ui_msg ${configure.cc_archflags}
60#ui_msg ${configure.cxx_archflags}
61#ui_msg ${configure.fc_archflags}
62#ui_msg ${configure.ld_archflags}
63#ui_msg ""
64#ui_msg ""
65#ui_msg [portconfigure::get_valid_compilers]
66#ui_msg ""
67#ui_msg [portconfigure::get_valid_compilers yes]
68ui_msg "------------------------------------------------------------------"
69
70build.args-append \
71    FORTRAN=${configure.f77}