Ticket #25186: Portfile_g95_atlas_accelerate.diff
File Portfile_g95_atlas_accelerate.diff, 3.5 KB (added by tenomoto (Takeshi Enomoto), 14 years ago) |
---|
-
Portfile
old new 5 5 6 6 name arpack 7 7 version 1 8 revision 48 revision 5 9 9 categories math 10 10 platforms darwin 11 11 maintainers mmoll … … 23 23 worksrcdir ARPACK 24 24 patchfiles patch-arpack.diff 25 25 26 depends_lib port:atlas 27 26 28 use_parallel_build no 27 29 28 30 pre-fetch { … … 78 80 build.args-append FC=${configure.fc} MAKE=${build.cmd} 79 81 } 80 82 83 set lapacklibs "-latlas -llapack -lblas" 84 set flibs -lgfortran 85 set mpilibs "-lSystem" 86 if {![variant_isset g95]} { 81 87 post-build { 82 88 set curVer ${version} 83 89 set comVer [join [lrange [split ${version} '.'] 0 1 ] '.'] … … 95 101 set dir ${worksrcpath}-${arch} 96 102 } 97 103 98 make_dylib arpack ${dir} ${arch} "-latlas -llapack -lblas -lgfortran -lSystem" ${version} 99 100 if { [variant_isset mpi] } { 101 make_dylib parpack ${dir} ${arch} "-latlas -llapack -lblas -lgfortran -lmpi_f77 -lSystem -larpack.1" ${version} 102 } 104 make_dylib arpack ${dir} ${arch} "${lapacklibs} ${flibs} ${mpilibs}" ${version} 103 105 } 104 106 } 107 } 105 108 106 109 post-configure { 107 110 if { [variant_isset mpi] } { 108 111 set stlibs "libarpack.a libparpack.a" 109 112 set shlibs "libarpack.1.dylib libparpack.1.dylib" 110 } else {113 } elseif {![variant_isset g95]} { 111 114 set stlibs "libarpack.a" 112 115 set shlibs "libarpack.1.dylib" 116 } else { 117 set stlibs "libarpack.a" 118 set shlibs "" 113 119 } 114 120 115 121 if { ![variant_isset universal] } { … … 139 145 } 140 146 } 141 147 142 variant gcc42 description {build with gfortran-mp-4.2} conflicts gcc43 gcc44 gcc45 universal {148 variant gcc42 description {build with gfortran-mp-4.2} conflicts gcc43 gcc44 gcc45 g95 universal { 143 149 depends_build-append port:gcc42 144 150 configure.fc ${prefix}/bin/gfortran-mp-4.2 145 151 } 146 152 147 variant gcc43 description {build with gfortran-mp-4.3} conflicts gcc42 gcc44 gcc45 universal {153 variant gcc43 description {build with gfortran-mp-4.3} conflicts gcc42 gcc44 gcc45 g95 universal { 148 154 depends_build-append port:gcc43 149 155 configure.fc ${prefix}/bin/gfortran-mp-4.3 150 156 } 151 157 152 variant gcc44 description {build with gfortran-mp-4.4} conflicts gcc42 gcc43 gcc45 {158 variant gcc44 description {build with gfortran-mp-4.4} conflicts gcc42 gcc43 gcc45 g95 { 153 159 depends_build-append port:gcc44 154 160 configure.fc ${prefix}/bin/gfortran-mp-4.4 155 161 } 156 162 157 variant gcc45 description {build with gfortran-mp-4.5} conflicts gcc42 gcc43 gcc44 {163 variant gcc45 description {build with gfortran-mp-4.5} conflicts gcc42 gcc43 gcc44 g95 { 158 164 depends_build-append port:gcc45 159 165 configure.fc ${prefix}/bin/gfortran-mp-4.5 160 166 } 161 167 162 if { ![variant_isset gcc42] && ![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45] } { 168 variant g95 description {build with g95} conflicts gcc42 gcc43 gcc44 gcc45 universal { 169 depends_build-append port:g95 170 configure.fc ${prefix}/bin/g95 171 } 172 173 if { ![variant_isset gcc42] && ![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45] && ![variant_isset g95] } { 163 174 default_variants +gcc44 164 175 } 165 176 … … 187 198 188 199 depends_build port:openmpi 189 200 configure.fc ${prefix}/bin/openmpif77 201 set mpilibs "-lmpi_f77 -lSystem -larpack.1" 190 202 } 191 203 204 variant no_atlas description {build with Accelerate framework} { 205 depends_lib-delete port:atlas 206 set lapacklibs "-framework Accelerate" 207 } 208 if {[variant_isset g95]} { 209 default_variants +no_atlas 210 } 211 212 192 213 193 214 194 215 livecheck.type none