freebsd-ports/math/elemental/Makefile
Muhammad Moinur Rahman bbab7f59e9 */*: Sunset 12.4-RELEASE/12-STABLE from ports tree
- Remove all references to defunct ARCH arm
- Remove all references to defunct ARCH sparc64
- Remove x11-drivers/xf86-video-sunffb which requires defunct sparc64
  ARCH
- Remove sysutils/afbinit requires defunct sparc64 ARCH
- Remove all references to bktr driver
- Remove all references to defunct FreeBSD_12
- Remove all references to OSVERSION/OSREL corresponding to 12
- Remove conditionals in Mk/Uses/cabal.mk
- Remove sparc reference from Mk/Uses/qt-dist.mk
- Remove BROKEN_sparc64/NOT_FOR_ARCH=sparc64
- Remove BROKEN_FreeBSD_12* from:
- Remove OpenSSL patches from:
- Remove conditional flags for OSVERSION >= 1300000 to fixed flags.
  Also move conditional flags for non sparc64/arm ARCH to fixed flags.

Reviewed by:	brooks, jbeich, rene, salvadore
Differential Revision: https://reviews.freebsd.org/D42068
2023-12-31 01:37:05 +01:00

47 lines
1.4 KiB
Makefile

PORTNAME= elemental
DISTVERSIONPREFIX= v
DISTVERSION= 1.5.2
PORTREVISION= 1
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
COMMENT= Dense and sparse linear algebra, conic optimization, lattice reduction
WWW= https://github.com/LLNL/Elemental
LICENSE= BSD2CLAUSE
BROKEN_i386= clang crashes: https://bugs.llvm.org/show_bug.cgi?id=46026
LIB_DEPENDS= libgmp.so:math/gmp \
libmetis.so:math/metis \
libmpc.so:math/mpc \
libmpfr.so:math/mpfr \
libmpi_cxx.so:net/openmpi \
libopenblas.so:math/openblas \
libqd.so:math/qd
TEST_DEPENDS= catch>0:devel/catch
USES= cmake compiler:c++14-lang fortran
USE_GITHUB= yes
GH_ACCOUNT= LLNL
GH_PROJECT= Elemental
USE_LDCONFIG= yes
CMAKE_ON= BUILD_SHARED_LIBS EL_DISABLE_PARMETIS
CMAKE_OFF= Hydrogen_ENABLE_TESTING
CMAKE_ARGS= -DGFORTRAN_LIB:STRING=${LOCALBASE}/lib/gcc${GCC_DEFAULT}/libgfortran.so \
-DFREEBSD_GCC_LIB:STRING=${LOCALBASE}/lib/gcc${GCC_DEFAULT}/libgcc_s.so
DOCSDIR= ${PREFIX}/share/doc/Elemental
OPTIONS_DEFINE= DOCS
PORTDOCS= *
do-test: # 4 tests fail, see https://github.com/LLNL/Elemental/issues/157
@cd ${BUILD_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DHydrogen_ENABLE_TESTING:BOOL=ON -DHydrogen_ENABLE_UNIT_TESTS:BOOL=ON ${CMAKE_SOURCE_PATH} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
.include <bsd.port.mk>