Files
2026-10-04 04:07:15 +00:00

49 lines
1.1 KiB
Makefile

PORTNAME= costa
DISTVERSIONPREFIX= v
DISTVERSION= 2.3.3
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
COMMENT= Distributed Communication-Optimal Shuffle and Transpose Algorithm
WWW= https://github.com/eth-cscs/COSTA
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libopenblas.so:math/openblas \
libscalapack.so:math/scalapack
USES= cmake:testing localbase:ldflags pkgconfig
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= eth-cscs
GH_PROJECT= COSTA
CMAKE_ON= BUILD_SHARED_LIBS
CMAKE_ARGS= -DCOSTA_SCALAPACK=CUSTOM
CMAKE_OFF= COSTA_WITH_TESTS
CMAKE_TESTING_ON= COSTA_WITH_TESTS
.if !exists(/usr/include/omp.h)
BROKEN= requires OpenMP support that is missing on this architecture
.endif
OPTIONS_SINGLE= MPI
OPTIONS_SINGLE_MPI= MPICH OPENMPI
OPTIONS_DEFAULT= MPICH
MPICH_USES= mpi:mpich
OPENMPI_USES= mpi:openmpi
# tests as of 2.3.3: 100% tests passed, 0 tests failed out of 1
post-install: # workaround for https://github.com/eth-cscs/COSTA/issues/9
@cd ${STAGEDIR}${PREFIX} && ${RMDIR} \
include/costa/pxtran \
include/costa/pxtranc \
include/costa/pxtranu
.include <bsd.port.mk>