Lines 6-12
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= petsc |
8 |
PORTNAME= petsc |
9 |
DISTVERSION= 2.3.2-p0 |
9 |
DISTVERSION= 2.3.2-p6 |
10 |
PORTEPOCH= 1 |
10 |
PORTEPOCH= 1 |
11 |
CATEGORIES= math parallel |
11 |
CATEGORIES= math parallel |
12 |
MASTER_SITES= ftp://ftp.mcs.anl.gov/pub/petsc/release-snapshots/ |
12 |
MASTER_SITES= ftp://ftp.mcs.anl.gov/pub/petsc/release-snapshots/ |
Lines 64-69
Link Here
|
64 |
|
64 |
|
65 |
.include <bsd.port.pre.mk> |
65 |
.include <bsd.port.pre.mk> |
66 |
|
66 |
|
|
|
67 |
.if exists(${LOCALBASE}/mpi/openmpi/bin/mpirun) |
68 |
WITH_OPENMPI= yes |
69 |
MPIDIR= ${LOCALBASE}/mpi/openmpi |
70 |
.endif |
71 |
|
67 |
.if ${ARCH} == "amd64" |
72 |
.if ${ARCH} == "amd64" |
68 |
WITHOUT_SUPERLU= yes |
73 |
WITHOUT_SUPERLU= yes |
69 |
.endif |
74 |
.endif |
Lines 79-90
Link Here
|
79 |
.endif |
84 |
.endif |
80 |
.if defined(WITH_MPI) |
85 |
.if defined(WITH_MPI) |
81 |
. if exists(${LOCALBASE}/include/mpi.h) |
86 |
. if exists(${LOCALBASE}/include/mpi.h) |
82 |
BROKEN= Cannot build with mpich when lam-7 is installed - set WITHOUT_MPI or deinstall net/lam |
87 |
BROKEN= Cannot build with MPI when lam-7 is installed - set WITHOUT_MPI or deinstall net/lam |
83 |
. endif |
88 |
. endif |
|
|
89 |
.if defined(WITH_OPENMPI) |
90 |
MPIDIR= ${LOCALBASE}/mpi/openmpi |
91 |
BUILD_DEPENDS+= ${MPIDIR}/lib/libmpi.so:${PORTSDIR}/net/openmpi |
92 |
RUN_DEPENDS+= ${MPIDIR}/lib/libmpi.so:${PORTSDIR}/net/openmpi |
93 |
PKGNAMESUFFIX+= -openmpi |
94 |
MAKE_ENV+= PATH=${MPIDIR}/bin:${PATH} |
95 |
# math/blocksolve95 does not pass regression test when compiled with OpenMPI. |
96 |
WITHOUT_BS95= yes |
97 |
WITHOUT_SPOOLES= yes |
98 |
WITHOUT_PARMETIS= yes |
99 |
CONFIGURE_ARGS+= --with-cc=${MPIDIR}/bin/mpicc --with-fc=${MPIDIR}/bin/mpif77 |
100 |
.else |
101 |
BUILD_DEPENDS+= ${LOCALBASE}/mpich2/bin/mpicc:${PORTSDIR}/net/mpich2 |
102 |
RUN_DEPENDS+= ${LOCALBASE}/mpich2/bin/mpirun:${PORTSDIR}/net/mpich2 |
84 |
PKGNAMESUFFIX+= -mpich |
103 |
PKGNAMESUFFIX+= -mpich |
85 |
BUILD_DEPENDS+= ${MPIDIR}/bin/mpicc:${PORTSDIR}/net/mpich2 |
104 |
.endif |
86 |
RUN_DEPENDS+= ${MPIDIR}/bin/mpirun:${PORTSDIR}/net/mpich2 |
105 |
|
87 |
CONFIGURE_ARGS+= --with-mpi-dir=${LOCALBASE}/mpich2 |
106 |
CONFIGURE_ARGS+= --with-mpi-dir=${MPIDIR} |
88 |
CONFLICTS= petsc-2* |
107 |
CONFLICTS= petsc-2* |
89 |
PLIST_SUB+= MPIUNI="@comment " |
108 |
PLIST_SUB+= MPIUNI="@comment " |
90 |
.else |
109 |
.else |
Lines 198-207
Link Here
|
198 |
pre-everything:: |
217 |
pre-everything:: |
199 |
@${ECHO_MSG} |
218 |
@${ECHO_MSG} |
200 |
.if !defined (WITH_MPI) |
219 |
.if !defined (WITH_MPI) |
201 |
@${ECHO_MSG} "Define WITH_MPI to use mpich." |
220 |
@${ECHO_MSG} "Define WITH_MPI to use MPI." |
202 |
@${ECHO_MSG} "Note: this is not compatible with Python bindings!" |
221 |
@${ECHO_MSG} "Note: this is not compatible with Python bindings!" |
203 |
.elif !defined (WITHOUT_MPI) |
222 |
.elif !defined (WITHOUT_MPI) |
204 |
@${ECHO_MSG} "Define WITHOUT_MPI to not use mpich." |
223 |
@${ECHO_MSG} "Define WITHOUT_MPI to not use MPI." |
205 |
.endif |
224 |
.endif |
206 |
.if !defined (WITH_SVN) |
225 |
.if !defined (WITH_SVN) |
207 |
@${ECHO_MSG} "Define WITH_SVN to use subversion." |
226 |
@${ECHO_MSG} "Define WITH_SVN to use subversion." |
Lines 261-267
Link Here
|
261 |
|
280 |
|
262 |
.if defined(MAINTAINER_MODE) |
281 |
.if defined(MAINTAINER_MODE) |
263 |
regression-test: |
282 |
regression-test: |
264 |
. if defined (WITH_MPI) |
283 |
. if defined (WITH_MPI) && !defined(WITH_OPENMPI) |
265 |
. if !exists(${HOME}/.mpd.conf) |
284 |
. if !exists(${HOME}/.mpd.conf) |
266 |
@${ECHO_CMD} "MPD_SECRETWORD=change_on_install" > ${HOME}/.mpd.conf |
285 |
@${ECHO_CMD} "MPD_SECRETWORD=change_on_install" > ${HOME}/.mpd.conf |
267 |
${CHMOD} go-r ${HOME}/.mpd.conf |
286 |
${CHMOD} go-r ${HOME}/.mpd.conf |
Lines 271-277
Link Here
|
271 |
. endif |
290 |
. endif |
272 |
@(cd ${BUILD_WRKSRC}; \ |
291 |
@(cd ${BUILD_WRKSRC}; \ |
273 |
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test) |
292 |
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test) |
274 |
. if defined (WITH_MPI) |
293 |
. if defined (WITH_MPI) && !defined(WITH_OPENMPI) |
275 |
${LOCALBASE}/mpich2/bin/mpdallexit |
294 |
${LOCALBASE}/mpich2/bin/mpdallexit |
276 |
. endif |
295 |
. endif |
277 |
.endif |
296 |
.endif |