mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-25 09:34:11 +00:00
f9c410bc06
The core reason is lack of IEEE754 support in gcc.
63 lines
1.6 KiB
Makefile
63 lines
1.6 KiB
Makefile
# Created by: Anton Shterenlikht
|
|
|
|
PORTNAME= opencoarrays
|
|
DISTVERSION= 2.9.0
|
|
CATEGORIES= lang parallel
|
|
|
|
MAINTAINER= miguel@gocobachi.dev
|
|
COMMENT= Transport layer for coarray Fortran compilers
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
.for arch in aarch64 powerpc powerpc64 powerpc64le
|
|
BROKEN_${arch}= Lack of IEEE754 support in gcc causes "Cannot find an intrinsic module named 'ieee_arithmetic'", see bug#255890
|
|
.endfor
|
|
|
|
BUILD_DEPENDS= bash:shells/bash
|
|
RUN_DEPENDS= bash:shells/bash
|
|
|
|
USES= cmake fortran
|
|
USE_CSTD= gnu99
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= sourceryinstitute
|
|
GH_PROJECT= OpenCoarrays
|
|
USE_LDCONFIG= yes
|
|
|
|
PLIST_SUB= GCC_VER=${_GCC_VER} PORTVERSION=${PORTVERSION}
|
|
|
|
OPTIONS_SINGLE= MPI
|
|
OPTIONS_SINGLE_MPI= MPICH OPENMPI
|
|
OPTIONS_DEFAULT= MPICH
|
|
|
|
MPICH_BUILD_DEPENDS= mpif90:net/mpich
|
|
MPICH_RUN_DEPENDS= mpif90:net/mpich
|
|
MPICH_CONFIGURE_ENV= MPI_HOME=${LOCALBASE}
|
|
|
|
OPENMPI_BUILD_DEPENDS= ${LOCALBASE}/mpi/openmpi/bin/mpif90:net/openmpi
|
|
OPENMPI_RUN_DEPENDS= ${LOCALBASE}/mpi/openmpi/bin/mpif90:net/openmpi
|
|
OPENMPI_CONFIGURE_ENV= MPI_HOME=${LOCALBASE}/mpi/openmpi
|
|
OPENMPI_CMAKE_ON= -DMPI_C_COMPILE_OPTIONS="-lpthread" \
|
|
-DMPI_Fortran_COMPILE_OPTIONS="-lpthread"
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${GCC_DEFAULT} >= 8
|
|
PLIST_SUB+= SOVERSION=3
|
|
.elif ${GCC_DEFAULT} == 7
|
|
PLIST_SUB+= SOVERSION=2
|
|
.elif ${GCC_DEFAULT} == 6
|
|
PLIST_SUB+= SOVERSION=1
|
|
.else
|
|
IGNORE= requires GCC 6 or higher
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} '/mod_dir_tail/s/$${CMAKE_Fortran_COMPILER_VERSION}/${_GCC_VER}/' \
|
|
${WRKSRC}/CMakeLists.txt
|
|
|
|
do-test:
|
|
(cd ${TEST_WRKSRC} && ctest)
|
|
|
|
.include <bsd.port.mk>
|