blob: 073b166b415c42df05be4feeab7785d24b1ebe7b (
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
45
46
47
48
49
50
51
52
53
54
55
56
|
# $FreeBSD$
PORTNAME= primme
DISTVERSIONPREFIX= v
DISTVERSION= 2.2
PORTREVISION= 2
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
COMMENT= Iterative eigensolver for symmetric and hermitian matrices
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING.txt
TEST_DEPENDS= gfortran${GCC_DEFAULT}:lang/gcc${GCC_DEFAULT}
USES= gmake localbase:ldflags
USE_GITHUB= yes
MAKEFILE= makefile
ALL_TARGET= solib
USE_LDCONFIG= yes
BINARY_ALIAS= make=${GMAKE}
CFLAGS+= -fPIC
LDFLAGS+= ${LAPACKLIB} -lm
OPTIONS_RADIO= LINALG
OPTIONS_RADIO_LINALG= ATLAS GOTOBLAS NETLIB OPENBLAS
OPTIONS_DEFAULT= OPENBLAS
LINALG_DESC= Choose which linear algebra interface (LAPACK) implementation to use:
GOTOBLAS_DESC= Goto blas implementation
ATLAS_USES= blaslapack:atlas
GOTOBLAS_USES= blaslapack:gotoblas
NETLIB_USES= blaslapack:netlib
NETLIB_LDFLAGS= -lblas # XXX why this isn't covered by blaslapack:netlib?
OPENBLAS_USES= blaslapack:openblas
TEST_ENV= ${MAKE_ENV} F77=gfortran${GCC_DEFAULT} FLDR=gfortran${GCC_DEFAULT} \
LDFLAGS="-lm -Wl,-rpath=${LOCALBASE}/lib/gcc${GCC_DEFAULT} ${LOCALBASE}/lib/gcc${GCC_DEFAULT}/libgcc_s.so" \
USE_MPI=no USE_PETSC=no PETSC_DIR=${LOCALBASE}
TEST_TARGET= all_tests test
PLIST_FILES= include/primme.h \
include/primme_eigs.h \
include/primme_eigs_f77.h \
include/primme_f77.h \
include/primme_svds.h \
include/primme_svds_f77.h \
lib/libprimme.so \
lib/libprimme.so.2 \
lib/libprimme.so.2.2
.include <bsd.port.mk>
|