Ticket #15175: patch-arpack.diff
File patch-arpack.diff, 2.0 KB (added by mmoll@…, 17 years ago) |
---|
-
Portfile
old new 4 4 5 5 name arpack 6 6 version 1 7 revision 17 revision 2 8 8 categories math 9 9 platforms darwin 10 10 maintainers mmoll@cs.rice.edu … … 18 18 checksums arpack96.tar.gz md5 fffaa970198b285676f4156cebc8626e \ 19 19 patch.tar.gz md5 14830d758f195f272b8594a493501fa2 20 20 21 # We need gfortran. Gcc41 doesn't seem to compile on Intel Mac, so we'll take22 # gcc42. Too bad that the actual gfortran binary in gcc42 is called23 # gfortran-mp-4.2, otherwise we could just say bin:gfortran:gcc42.24 depends_build port:gcc4225 21 use_configure no 26 22 worksrcdir ARPACK 27 23 patchfiles patch-arpack.diff 28 build.args all FC=gfortran-mp-4.2home=${worksrcpath}24 build.args all home=${worksrcpath} 29 25 destroot { 30 26 xinstall -m 644 -v -W ${worksrcpath} libarpack.a ${destroot}${prefix}/lib 31 27 } … … 33 29 system "ranlib ${destroot}${prefix}/lib/libarpack.a" 34 30 } 35 31 32 variant gcc42 description {build with gfortran-mp-4.2} conflicts gcc43 g95 { 33 configure.f77 ${prefix}/bin/gfortran-mp-4.2 34 configure.fc ${prefix}/bin/gfortran-mp-4.2 35 depends_build-append port:gcc42 36 } 37 38 variant gcc43 description {build with gfortran-mp-4.3} conflicts gcc42 g95 { 39 configure.f77 ${prefix}/bin/gfortran-mp-4.3 40 configure.fc ${prefix}/bin/gfortran-mp-4.3 41 depends_build-append port:gcc43 42 } 43 44 variant g95 description {build with gfortran-mp-4.2} conflicts gcc42 gcc43 { 45 configure.f77 ${prefix}/bin/g95 46 configure.fc ${prefix}/bin/g95 47 depends_build-append port:g95 48 } 49 36 50 variant mpi { 37 51 distfiles-append parpack96.tar.gz ppatch.tar.gz 38 52 checksums-append parpack96.tar.gz md5 598d0453b938ccd99a078246be5927f3 \ … … 48 62 system "ranlib ${destroot}${prefix}/lib/libparpack.a" 49 63 } 50 64 } 65 66 if { ![variant_isset gcc42] && ![variant_isset gcc43] && ![variant_isset g95] } { 67 default_variants +gcc42 68 }