Ticket #39352: Portfile-arpack.diff
File Portfile-arpack.diff, 3.4 KB (added by dstrubbe (David Strubbe), 11 years ago) |
---|
-
Portfile
old new 13 13 description Package for solving large scale eigenvalue problems 14 14 long_description \ 15 15 ARPACK is a collection of Fortran77 subroutines designed to solve large \ 16 scale eigenvalue problems. 16 scale eigenvalue problems. Parallel ARPACK (PARPACK) is included if built with an MPI variant. 17 17 homepage http://forge.scilab.org/index.php/p/arpack-ng 18 18 master_sites ${homepage}/downloads/497 19 19 distfiles get … … 23 23 rmd160 2c55eca384cc0a1aebacdef527f88426932bf57b 24 24 worksrcdir ${name}-ng_${version} 25 25 26 # openmpi does not have a universal variant 27 universal_variant no 28 configure.args-append --enable-mpi home=${worksrcpath} 26 configure.args-append home=${worksrcpath} 27 # LDFLAGS needs to be defined here to avoid it having also a "-arch" option, considered illegal by gfortran 29 28 if { ${build_arch}=="x86_64" || ${build_arch}=="ppc64" } { 30 29 configure.args-append FFLAGS='-O2 -m64' LDFLAGS='-L${prefix}/lib' 31 30 } else { 32 31 configure.args-append FFLAGS='-O2 -m32' LDFLAGS='-L${prefix}/lib' 33 32 } 34 33 35 pre-fetch { 36 if {"darwin" == ${os.platform} && ${os.major} < 9} { 37 ui_error "${name} ${version} requires Mac OS X 10.5 or greater" 38 return -code error "incompatible Mac OS X version" 39 } 34 pre-fetch { 35 if {"darwin" == ${os.platform} && ${os.major} < 9} { 36 ui_error "${name} ${version} requires Mac OS X 10.5 or greater" 37 return -code error "incompatible Mac OS X version" 38 } 40 39 } 41 40 42 43 41 # Fortran compilers can not cross-compile 44 42 if { ${os.arch}=="i386" } { 45 43 set universal_archs_supported "i386 x86_64" … … 47 45 set universal_archs_supported "ppc ppc64" 48 46 } 49 47 50 variant openmpi description {build with OpenMPI} conflicts mpich { 51 depends_lib-append port:openmpi 52 configure.env-append MPIF77=${prefix}/bin/openmpif77 48 variant openmpi description {build PARPACK, with OpenMPI} conflicts mpich universal { 49 depends_lib-append port:openmpi 50 configure.args-append --enable-mpi 51 configure.env-append MPIF77=${prefix}/bin/openmpif77 53 52 } 54 53 55 variant mpich description {build with MPICH} conflicts openmpi { 56 depends_lib-append path:bin/mpicc:mpich 57 configure.env-append MPIF77=${prefix}/bin/mpif77 54 variant mpich description {build PARPACK, with MPICH} conflicts openmpi { 55 depends_lib-append path:bin/mpif77:mpich 56 configure.args-append --enable-mpi 57 configure.env-append MPIF77=${prefix}/bin/mpif77 58 58 } 59 59 60 60 if {![variant_isset mpich]} { … … 95 95 default_variants +gcc47 96 96 } 97 97 98 # warning: this is ignored if atlas is installed99 98 variant accelerate conflicts atlas description {build with Accelerate framework} { 100 configure.args-append --with- lapack=/usr/lib/liblapack.dylib99 configure.args-append --with-blas=/usr/lib/libblas.dylib --with-lapack=/usr/lib/liblapack.dylib 101 100 patchfiles-append patch-ARPACK-cdot-and-zdot.diff 102 101 if {[variant_isset openmpi] || [variant_isset mpich]} { 103 102 patchfiles-append patch-PARPACK-cdot-and-zdot.diff … … 106 105 107 106 variant atlas description {build with atlas} { 108 107 depends_lib-append port:atlas 109 patchfiles-append patch-configure-atlas.diff 110 configure.args-append --with-lapack=${prefix}/lib/libtatlas.dylib 108 configure.args-append --with-blas=${prefix}/lib/libsatlas.dylib 111 109 } 112 110 113 111 if {![variant_isset atlas]} {