diff --git a/ports/science/miriad/Portfile b/ports/science/miriad/Portfile
index 9f4132d..16a532f 100644
a
|
b
|
license unknown |
34 | 34 | master_sites http://astro.berkeley.edu/~pkwill/miriad-macport/ |
35 | 35 | checksums sha1 5aa26e678efbdb0c893517cf0a9d1f4d20eb66bd |
36 | 36 | |
| 37 | # Telescope/buffer size selection. |
| 38 | |
| 39 | variant ata conflicts carma description {use buffer sizes appropriate to ATA data} {} |
| 40 | variant carma conflicts ata description {use buffer sizes appropriate to CARMA data} {} |
| 41 | |
| 42 | if {[variant_isset carma]} { |
| 43 | set thescope carma |
| 44 | } else { |
| 45 | set thescope ata |
| 46 | } |
| 47 | |
37 | 48 | # We need Fortran support, which the Apple version of GCC doesn't offer. |
38 | 49 | # So we force the use of a specified MacPorts-built GCC. |
39 | 50 | |
40 | 51 | variant gcc43 conflicts gcc44 description {build with gcc 4.3} {} |
41 | 52 | variant gcc44 conflicts gcc43 description {build with gcc 4.4} {} |
42 | 53 | |
| 54 | default_variants +gcc44 +ata |
| 55 | |
43 | 56 | if {[variant_isset gcc43]} { |
44 | 57 | set compilerport gcc43 |
45 | 58 | set compilerident macports-gcc-4.3 |
46 | 59 | } else { |
47 | 60 | set compilerport gcc44 |
48 | 61 | set compilerident macports-gcc-4.4 |
49 | | default_variants +gcc44 |
50 | 62 | } |
51 | 63 | |
52 | 64 | universal_variant no |
… |
… |
minimum_xcodeversions {9 3.1} |
73 | 85 | |
74 | 86 | worksrcdir ${name}-${relver} |
75 | 87 | |
76 | | # I'm writing the Portfile and I use the ATA, so the default telescope |
77 | | # is the ATA too. Privileges of maintainership. |
78 | | |
79 | | set defaultscope ata |
80 | | set thescope ${defaultscope} |
81 | | |
82 | 88 | # Configure settings. Keep the binaries out of ${prefix}/bin to avoid |
83 | 89 | # possible conflicts. The automiriad scripts will deal with this correctly. |
84 | 90 | |
85 | 91 | configure.args --bindir=${prefix}/libexec/miriad \ |
86 | | --with-telescope=${defaultscope} \ |
| 92 | --with-telescope=${thescope} \ |
87 | 93 | --disable-docs |
88 | 94 | configure.compiler ${compilerident} |
89 | 95 | |
… |
… |
configure.compiler ${compilerident} |
92 | 98 | |
93 | 99 | pre-configure { |
94 | 100 | ui_msg "Configuring MIRIAD with telescope parameter of \"${thescope}\"." |
95 | | ui_msg "Consult the port variants to use a different setting. The default" |
96 | | ui_msg "is \"${defaultscope}\". If there's no variant for your desired" |
97 | | ui_msg "telescope, contact the port maintainer and one will be quickly added." |
| 101 | ui_msg "Consult the port variants to use a different setting. If there's" |
| 102 | ui_msg "no variant for your desired telescope, contact the port maintainer" |
| 103 | ui_msg "and one will be quickly added." |
98 | 104 | } |
99 | 105 | |
100 | 106 | # Little helpful message. We could consider adding a patch to install |
… |
… |
notes "MIRIAD programs are not in your \$PATH by default." \ |
109 | 115 | "You can put this command in your .profile or other shell initialization " \ |
110 | 116 | "files to have your shells automatically set up to use MIRIAD." |
111 | 117 | |
112 | | # Variants. We can easily add more telescope variants as requested. |
113 | | |
114 | | variant carma description {Use buffer sizes appropriate to CARMA data} { |
115 | | set thescope carma |
116 | | configure.args-delete --with-telescope=${defaultscope} |
117 | | configure.args-append --with-telescope=${thescope} |
118 | | } |
| 118 | # Miscellaneous variants. |
119 | 119 | |
120 | 120 | variant debug description {Build with debugging support -- tasks will be very slow} { |
121 | 121 | configure.optflags -g -O0 |