1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00

lang/opencoarrays: Simplify handling of GCC versions

GCC_DEFAULT now is at least 8, so we can simplify this port and remove
special casing for GCC versions 6 and 7.

Approved by:	maintainer timeout (four months / 11 weeks)
This commit is contained in:
Gerald Pfeifer 2021-06-15 06:46:31 +00:00
parent 6e9e4f7522
commit a800fd141c

View File

@ -24,7 +24,7 @@ GH_ACCOUNT= sourceryinstitute
GH_PROJECT= OpenCoarrays
USE_LDCONFIG= yes
PLIST_SUB= GCC_VER=${_GCC_VER} PORTVERSION=${PORTVERSION}
PLIST_SUB= GCC_VER=${_GCC_VER} PORTVERSION=${PORTVERSION} SOVERSION=3
OPTIONS_SINGLE= MPI
OPTIONS_SINGLE_MPI= MPICH OPENMPI
@ -42,16 +42,6 @@ OPENMPI_CMAKE_ON= -DMPI_C_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