freebsd-ports/math/primme/Makefile
Steve Wills fb44dca45d Fix math/openblas and bump dependent ports
* Fix build on i386 [1]
* Fix science/code_saturne build with new openblas [2]
* Avoid installing private headers [3]
* Prevent build from optimizing for host by correcting build confg [4]
* Bump portrevision of dependent ports [5]

This is correcting issues from r523749 [1][2][4] and r515970 [3]

PR:		231371
Reported by:	build cluster [1]
Reported by:	Dima Pasechnik <dimpase+freebsd@gmail.com> [2]
Reported by:	many [5]
Reviewed by:	mat, bapt
Approved by:	implicit, since this is a build fix
2020-01-30 14:17:44 +00:00

59 lines
1.5 KiB
Makefile

# $FreeBSD$
PORTNAME= primme
DISTVERSIONPREFIX= v
DISTVERSION= 3.0.2
PORTREVISION= 1
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_eigs_f90.inc \
include/primme_f77.h \
include/primme_f90.inc \
include/primme_svds.h \
include/primme_svds_f77.h \
include/primme_svds_f90.inc \
lib/libprimme.so \
lib/libprimme.so.3 \
lib/libprimme.so.3.0
.include <bsd.port.mk>