mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Optionize and set USES=mpi.
This commit is contained in:
parent
b23553bac8
commit
a7074ba30e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=566984
2 changed files with 28 additions and 34 deletions
|
@ -14,13 +14,15 @@ LICENSE_NAME= CeCILL-C
|
||||||
LICENSE_FILE= ${WRKSRC}/doc/CeCILL-C_V1-en.txt
|
LICENSE_FILE= ${WRKSRC}/doc/CeCILL-C_V1-en.txt
|
||||||
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
||||||
|
|
||||||
CONFLICTS= gbase-0.* gmap-2015.*
|
|
||||||
|
|
||||||
USES= bison:alias gmake localbase
|
USES= bison:alias gmake localbase
|
||||||
|
|
||||||
|
CONFLICTS= gbase-0.* gmap-2015.*
|
||||||
|
|
||||||
MAKE_JOBS_UNSAFE=yes
|
MAKE_JOBS_UNSAFE=yes
|
||||||
|
|
||||||
OPTIONS_DEFINE= DOCS EXAMPLES
|
OPTIONS_DEFINE= DOCS EXAMPLES MPICH
|
||||||
|
OPTIONS_DEFAULT=MPICH
|
||||||
|
OPTIONS_SUB= yes
|
||||||
|
|
||||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
|
||||||
BUILD_WRKSRC= ${WRKSRC}/src
|
BUILD_WRKSRC= ${WRKSRC}/src
|
||||||
|
@ -36,18 +38,10 @@ DOCVER= ${PORTVERSION:R:R}
|
||||||
PORTDOCS= ptscotch_user${DOCVER}.pdf scotch_user${DOCVER}.pdf scotch_example.f
|
PORTDOCS= ptscotch_user${DOCVER}.pdf scotch_user${DOCVER}.pdf scotch_example.f
|
||||||
LIBS= esmumps scotch scotcherr scotcherrexit scotchmetis
|
LIBS= esmumps scotch scotcherr scotcherrexit scotchmetis
|
||||||
|
|
||||||
.if !defined(WITHOUT_MPI)
|
MPICH_USES= mpi:mpich
|
||||||
LIB_DEPENDS+= libmpi.so:net/mpich
|
MPICH_ALL_TARGET= ptesmumps
|
||||||
|
MPICH_TEST_TARGET= ptcheck
|
||||||
ALL_TARGET+= ptesmumps
|
MPICH_LIBS+= ptesmumps ptscotch ptscotcherr ptscotcherrexit ptscotchparmetis
|
||||||
TEST_TARGET+= ptcheck
|
|
||||||
|
|
||||||
LIBS+= ptesmumps ptscotch ptscotcherr ptscotcherrexit ptscotchparmetis
|
|
||||||
|
|
||||||
PLIST_SUB+= MPI=""
|
|
||||||
.else
|
|
||||||
PLIST_SUB+= MPI="@comment "
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.options.mk>
|
.include <bsd.port.options.mk>
|
||||||
|
|
||||||
|
@ -58,7 +52,7 @@ MF= x86-64
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
pre-everything::
|
pre-everything::
|
||||||
.if !defined(WITHOUT_MPI)
|
.if !defined(WITHOUT_MPICH)
|
||||||
@${ECHO_MSG}
|
@${ECHO_MSG}
|
||||||
@${ECHO_MSG} "Define WITHOUT_MPI if PT-Scotch is not wanted."
|
@${ECHO_MSG} "Define WITHOUT_MPI if PT-Scotch is not wanted."
|
||||||
@${ECHO_MSG}
|
@${ECHO_MSG}
|
||||||
|
|
|
@ -6,12 +6,12 @@ bin/amk_hy
|
||||||
bin/amk_m2
|
bin/amk_m2
|
||||||
bin/amk_p2
|
bin/amk_p2
|
||||||
bin/atst
|
bin/atst
|
||||||
%%MPI%%bin/dggath
|
%%MPICH%%bin/dggath
|
||||||
%%MPI%%bin/dgmap
|
%%MPICH%%bin/dgmap
|
||||||
%%MPI%%bin/dgord
|
%%MPICH%%bin/dgord
|
||||||
%%MPI%%bin/dgpart
|
%%MPICH%%bin/dgpart
|
||||||
%%MPI%%bin/dgscat
|
%%MPICH%%bin/dgscat
|
||||||
%%MPI%%bin/dgtst
|
%%MPICH%%bin/dgtst
|
||||||
bin/gbase
|
bin/gbase
|
||||||
bin/gcv
|
bin/gcv
|
||||||
bin/gmap
|
bin/gmap
|
||||||
|
@ -32,22 +32,22 @@ bin/mmk_m2
|
||||||
bin/mmk_m3
|
bin/mmk_m3
|
||||||
bin/mord
|
bin/mord
|
||||||
bin/mtst
|
bin/mtst
|
||||||
include/ptscotch.h
|
%%MPICH%%include/ptscotch.h
|
||||||
include/ptscotchf.h
|
%%MPICH%%include/ptscotchf.h
|
||||||
include/scotch.h
|
include/scotch.h
|
||||||
include/scotchf.h
|
include/scotchf.h
|
||||||
lib/libesmumps.so
|
lib/libesmumps.so
|
||||||
lib/libesmumps.so.0
|
lib/libesmumps.so.0
|
||||||
%%MPI%%lib/libptesmumps.so
|
%%MPICH%%lib/libptesmumps.so
|
||||||
%%MPI%%lib/libptesmumps.so.0
|
%%MPICH%%lib/libptesmumps.so.0
|
||||||
%%MPI%%lib/libptscotch.so
|
%%MPICH%%lib/libptscotch.so
|
||||||
%%MPI%%lib/libptscotch.so.0
|
%%MPICH%%lib/libptscotch.so.0
|
||||||
%%MPI%%lib/libptscotcherr.so
|
%%MPICH%%lib/libptscotcherr.so
|
||||||
%%MPI%%lib/libptscotcherr.so.0
|
%%MPICH%%lib/libptscotcherr.so.0
|
||||||
%%MPI%%lib/libptscotcherrexit.so
|
%%MPICH%%lib/libptscotcherrexit.so
|
||||||
%%MPI%%lib/libptscotcherrexit.so.0
|
%%MPICH%%lib/libptscotcherrexit.so.0
|
||||||
%%MPI%%lib/libptscotchparmetis.so
|
%%MPICH%%lib/libptscotchparmetis.so
|
||||||
%%MPI%%lib/libptscotchparmetis.so.0
|
%%MPICH%%lib/libptscotchparmetis.so.0
|
||||||
lib/libscotch.so
|
lib/libscotch.so
|
||||||
lib/libscotch.so.0
|
lib/libscotch.so.0
|
||||||
lib/libscotcherr.so
|
lib/libscotcherr.so
|
||||||
|
|
Loading…
Add table
Reference in a new issue