blob: 9c05300ae23d380c0bd38a6a56236a39e21c64e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
PORTNAME= ga
DISTVERSIONPREFIX= v
DISTVERSION= 5.8
CATEGORIES= devel
MAINTAINER= yuri@FreeBSD.org
COMMENT= Partitioned Global Address Space (PGAS) library for distributed arrays
LICENSE= BMIL
LICENSE_NAME= Battelle Memorial Institute License
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
LIB_DEPENDS= libblas.so:math/blas \
liblapack.so:math/lapack \
libscalapack.so:math/scalapack
USES= autoreconf fortran gmake libtool localbase
USE_GITHUB= yes
GH_ACCOUNT= GlobalArrays
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-peigs --enable-shared --disable-static --with-blas4 --with-scalapack
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
LDFLAGS+= -lscalapack
OPTIONS_RADIO= MPI
OPTIONS_RADIO_MPI= MPICH OPENMPI
OPTIONS_DEFAULT= MPICH # the default should be the same as for the MPI option in math/scalapack
MPICH_LIB_DEPENDS= libmpich.so:net/mpich
OPENMPI_BUILD_DEPENDS= openmpi>0:net/openmpi
OPENMPI_RUN_DEPENDS= openmpi>0:net/openmpi
OPENMPI_CONFIGURE_ENV= CC=${LOCALBASE}/mpi/openmpi/bin/mpicc MPICC=${LOCALBASE}/mpi/openmpi/bin/mpicc \
CXX=${LOCALBASE}/mpi/openmpi/bin/mpic++ MPICXX=${LOCALBASE}/mpi/openmpi/bin/mpic++ \
F77=${LOCALBASE}/mpi/openmpi/bin/mpif77 MPIF77=${LOCALBASE}/mpi/openmpi/bin/mpif77 \
FC=${LOCALBASE}/mpi/openmpi/bin/mpif90 MPIFC=${LOCALBASE}/mpi/openmpi/bin/mpif90 \
LDFLAGS="-L${LOCALBASE}/mpi/openmpi/lib -Wl,-rpath,${LOCALBASE}/mpi/openmpi/lib"
OPENMPI_MAKE_ARGS= FREEBSD_LINK_FLAGS="-L${LOCALBASE}/mpi/openmpi/lib -Wl,-rpath,${LOCALBASE}/mpi/openmpi/lib -lmpi"
.include <bsd.port.mk>
|