Changeset 98584
- Timestamp:
- Oct 9, 2012, 12:58:01 PM (12 years ago)
- Location:
- trunk/dports/science
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/science/mpich2-devel/Portfile
r98543 r98584 6 6 name mpich2-devel 7 7 set pkgname mpich2 8 version 1.5 rc38 version 1.5 9 9 revision 0 10 epoch 20121008 10 11 license BSD 11 12 categories science parallel net … … 29 30 30 31 checksums \ 31 rmd160 7a21996f3b8ab0dfa9f72335f53a4b3c120f0b84\32 sha256 31beae6f6344f600ed43ad8bbcca21a04fbbfc225608e7c51e7ab2e83fd9e9fc32 rmd160 69572f5c435aec1ef37af197f7509cfc073ce53a \ 33 sha256 7175926fc2e4230f00201e880318c08de4f949c0dbe167fe1b2e256ac79d5f66 33 34 34 35 depends_lib-append port:libxml2 -
trunk/dports/science/mpich2/Portfile
r97763 r98584 5 5 6 6 name mpich2 7 version 1.4.1p1 8 revision 1 7 set pkgname mpich2 8 version 1.5 9 revision 0 10 # Added to keep in line with mpich2-devel 11 epoch 20121008 9 12 license BSD 10 13 categories science parallel net … … 25 28 homepage http://www.mcs.anl.gov/research/projects/mpich2/ 26 29 master_sites ${homepage}downloads/tarballs/${version}/ 30 distname ${pkgname}-${version} 27 31 28 checksums md5 b470666749bcb4a0449a072a18e2c204 \ 29 sha1 8dcc8888fb27232eb8f76c11cc890f1c3c483804 \ 30 rmd160 1d355cc07b8675af77b1c255fd10696844447298 32 checksums \ 33 rmd160 69572f5c435aec1ef37af197f7509cfc073ce53a \ 34 sha256 7175926fc2e4230f00201e880318c08de4f949c0dbe167fe1b2e256ac79d5f66 35 36 depends_lib-append port:libxml2 31 37 32 38 # Don't build if lammpi is around. 33 39 pre-configure { 34 40 if {[file exists ${prefix}/etc/lammpi/lam-helpfile]} { 35 ui_error "Cannot co-exist with lammpi; please deactivate lammpi before configuring." 41 ui_error \ 42 "Cannot co-exist with lammpi; please deactivate lammpi before configuring." 36 43 return -code error 37 44 } … … 40 47 pre-build { 41 48 if {[file exists ${prefix}/etc/lammpi/lam-helpfile]} { 42 ui_error "Cannot co-exist with lammpi; please deactivate lammpi before building." 49 ui_error \ 50 "Cannot co-exist with lammpi; please deactivate lammpi before building." 43 51 return -code error 44 52 } 45 53 } 46 54 47 # Puts all entries in <prefix>/share into appropriate mpich2 subdirs 48 destroot.args PACKAGE=mpich2 49 patchfiles patch-src-util-createshlib.in 55 configure.args --disable-dependency-tracking \ 56 --disable-f77 \ 57 --disable-fc \ 58 --disable-silent-rules \ 59 --enable-alloca \ 60 --enable-base-cache \ 61 --enable-cache \ 62 --enable-cxx \ 63 --enable-fast=O2 \ 64 --enable-shared \ 65 --enable-smpcoll \ 66 --includedir=${prefix}/include/${pkgname} \ 67 --with-device=ch3:nemesis \ 68 --with-mpe \ 69 --with-pm=hydra \ 70 --with-thread-package=posix \ 71 "F90FLAGS='' F90=''" \ 72 MPICH2LIB_CPPFLAGS=-I${prefix}/include 50 73 51 # the default include-dir conflicts with openmpi! 52 configure.args --with-thread-package=posix \ 53 --enable-timer-type=mach_absolute_time \ 54 --enable-cxx \ 55 --mandir=${prefix}/share/man \ 56 --docdir=${prefix}/share/doc/${name} \ 57 --htmldir=${prefix}/share/doc/${name} \ 58 --includedir=${prefix}/include/${name} \ 59 --disable-f77 --disable-fc \ 60 --with-mpe \ 61 --with-device=ch3:nemesis \ 62 "F90FLAGS='' F90=''" \ 63 --with-pm=hydra \ 64 --enable-shared \ 65 --enable-cache \ 66 --enable-smpcoll \ 67 --enable-base-cache 74 platform darwin { 75 configure.args-append --enable-timer-type=mach_absolute_time 76 } 68 77 69 build.args-append VERBOSE=1 78 79 # We're making compiler wrappers here... don't default to -O2 for wrappers. 80 # Actual library code is compiled with -O2 via --enable-fast=O2 configure arg 81 configure.cflags-delete -O2 82 configure.cxxflags-delete -O2 83 configure.fflags-delete -O2 84 configure.fcflags-delete -O2 85 configure.cppflags-delete -I${prefix}/include 70 86 71 87 universal_variant no 72 use_parallel_build no73 88 conflicts lammpi \ 74 mpich2-devel 75 76 # Fixes for the beta DESTDIR support in 1.4.1. Should go away in 1.5 branch. 77 post-patch { 78 reinplace -E "s|fix=\\\$\\\{DESTDIR\\\}|fix=|g" \ 79 ${worksrcpath}/Makefile.in 80 reinplace -E "s|dir=\\\$\\\{DESTDIR\\\}|dir=|g" \ 81 ${worksrcpath}/Makefile.in 82 } 89 mpich2 83 90 84 91 post-destroot { 85 reinplace -E "s|${destroot}||g" ${destroot}${prefix}/bin/mpicxx \ 86 ${destroot}${prefix}/bin/mpicc \ 87 ${destroot}${prefix}/etc/mpicxx.conf \ 88 ${destroot}${prefix}/etc/mpicc.conf 89 if {[ variant_isset gcc43 ] || 90 [ variant_isset gcc44 ] || 91 [ variant_isset gcc45 ] || 92 [ variant_isset gcc46 ] || 93 [ variant_isset gcc47 ]} { 94 reinplace -E "s|${destroot}||g" ${destroot}${prefix}/bin/mpif77 \ 95 ${destroot}${prefix}/bin/mpif90 \ 96 ${destroot}${prefix}/etc/mpif77.conf \ 97 ${destroot}${prefix}/etc/mpif90.conf 98 } 92 # Move examples directories to preferred location 93 move ${destroot}${prefix}/share/examples \ 94 ${destroot}${prefix}/share/doc/${pkgname}/examples 99 95 96 # Remove un-needed (in MacPorts) binaries 100 97 file delete ${destroot}${prefix}/sbin/mpeuninstall 98 file delete ${destroot}${prefix}/sbin/mpecheckinstall 99 100 # That's what man pages are for 101 delete ${destroot}${prefix}/share/doc/www4 101 102 } 102 103 … … 105 106 106 107 variant gcc47 description { 107 Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc47 108 } conflicts gcc43 gcc44 gcc45 gcc46 llvm clang {108 Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc47 port 109 } conflicts gcc43 gcc44 gcc45 gcc46 llvm clang clang31 { 109 110 depends_lib-append port:gcc47 110 111 configure.compiler macports-gcc-4.7 … … 112 113 113 114 variant gcc46 description { 114 Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc46 115 } conflicts gcc43 gcc44 gcc45 gcc47 llvm clang {115 Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc46 port 116 } conflicts gcc43 gcc44 gcc45 gcc47 llvm clang clang31 { 116 117 depends_lib-append port:gcc46 117 118 configure.compiler macports-gcc-4.6 … … 119 120 120 121 variant gcc45 description { 121 Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc45 122 } conflicts gcc43 gcc44 gcc46 gcc47 llvm clang {122 Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc45 port 123 } conflicts gcc43 gcc44 gcc46 gcc47 llvm clang clang31 { 123 124 depends_lib-append port:gcc45 124 125 configure.compiler macports-gcc-4.5 … … 126 127 127 128 variant gcc44 description { 128 Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc44 129 } conflicts gcc43 gcc45 gcc46 gcc47 llvm clang {129 Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc44 port 130 } conflicts gcc43 gcc45 gcc46 gcc47 llvm clang clang31 { 130 131 depends_lib-append port:gcc44 131 132 configure.compiler macports-gcc-4.4 … … 133 134 134 135 variant gcc43 description { 135 Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc43 136 } conflicts gcc44 gcc45 gcc46 gcc47 llvm clang {136 Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc43 port 137 } conflicts gcc44 gcc45 gcc46 gcc47 llvm clang clang31 { 137 138 depends_lib-append port:gcc43 138 139 configure.compiler macports-gcc-4.3 … … 150 151 variant llvm description { 151 152 Use llvm-gcc 152 } conflicts gcc43 gcc44 gcc45 gcc46 gcc47 clang {153 } conflicts gcc43 gcc44 gcc45 gcc46 gcc47 clang clang31 { 153 154 configure.compiler llvm-gcc-4.2 154 155 } … … 156 157 variant clang description { 157 158 Use clang 158 } conflicts gcc43 gcc44 gcc45 gcc46 gcc47 llvm {159 } conflicts gcc43 gcc44 gcc45 gcc46 gcc47 llvm clang31 { 159 160 configure.compiler clang 160 configure.cxx clang++ 161 configure.cflags-append -w 162 configure.cxxflags-append -w 161 } 162 163 variant clang31 description { 164 Use clang 3.1 from MacPorts 165 } conflicts gcc43 gcc44 gcc45 gcc46 gcc47 llvm clang { 166 depends_lib-append port:clang-3.1 167 configure.compiler clang 168 configure.cc ${prefix}/bin/clang-mp-3.1 169 configure.cxx ${prefix}/bin/clang++-mp-3.1 163 170 } 164 171 … … 170 177 } 171 178 172 platform darwin { 173 configure.args-append --enable-sharedlibs=osx-gcc 174 } 175 176 variant default_mpi description { 177 Install as defalt MPI -- conflict with OpenMPI 178 } { 179 configure.args-delete --includedir=${prefix}/include/${name} 180 conflicts-append openmpi 179 variant tuned description {Build with more optimizations)} { 180 configure.args-delete --enable-fast=O2 181 configure.args-append --enable-fast=all \ 182 MPICH2LIB_CFLAGS='-fomit-frame-pointer -O2' 181 183 } 182 184 183 185 livecheck.type regex 184 livecheck.regex ${name}-(\[0-9.p\]+)${extract.suffix} 186 livecheck.regex ${pkgname}-(\[0-9.pbrc\]+)${extract.suffix} 187 livecheck.url ${homepage}downloads/index.php?s=downloads
Note: See TracChangeset
for help on using the changeset viewer.