diff options
Diffstat (limited to 'math')
-rw-r--r-- | math/cmlib/Makefile | 12 | ||||
-rw-r--r-- | math/coin-or-metis/Makefile | 3 | ||||
-rw-r--r-- | math/hsl/Makefile | 4 |
3 files changed, 15 insertions, 4 deletions
diff --git a/math/cmlib/Makefile b/math/cmlib/Makefile index 3599124178f7..0367be773c87 100644 --- a/math/cmlib/Makefile +++ b/math/cmlib/Makefile @@ -18,16 +18,22 @@ USE_LDCONFIG= yes SHLIB_MAJOR= 1 LDFLAGS+= ${FFLAGS} -LDADD ?= -lgfortran -lm +LDADD= -lm SRCCONF= /dev/null MAKE_ENV= LDADD="${LDADD}" SHLIB_MAJOR="${SHLIB_MAJOR}" \ SRCCONF="${SRCCONF}" -FFLAGS+= -std=legacy NO_WRKSUBDIR= yes OPTIONS_DEFINE= DOCS +.include <bsd.port.pre.mk> + +.if ${FORTRAN_DEFAULT} != flang +FFLAGS+= -std=legacy +LDADD+= -lgfortran +.endif + post-extract: ${CP} ${_DISTDIR}/[dir]1mach.f ${WRKSRC}/src/machcon ${CP} ${FILESDIR}/make.inc ${WRKSRC} @@ -49,4 +55,4 @@ do-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/math/coin-or-metis/Makefile b/math/coin-or-metis/Makefile index 427f7dfdbaaa..2233cf802593 100644 --- a/math/coin-or-metis/Makefile +++ b/math/coin-or-metis/Makefile @@ -24,6 +24,9 @@ GH_PROJECT= ThirdParty-Metis GNU_CONFIGURE= yes +# Adaption of the upstream fix for Clang/Flang +# https://github.com/coin-or-tools/ThirdParty-Metis/commit/5ace49007591f11b64f70183102549d3a9721d4b +CFLAGS= -Wno-implicit-function-declaration INSTALL_TARGET= install-strip METIS_VERSION= 4.0.3 # from the script get.Metis diff --git a/math/hsl/Makefile b/math/hsl/Makefile index c19d7dae3f87..f86dcd5285ec 100644 --- a/math/hsl/Makefile +++ b/math/hsl/Makefile @@ -10,7 +10,9 @@ WWW= https://github.com/coin-or-tools/ThirdParty-HSL LICENSE= EPL -USES= fortran gmake libtool pkgconfig +# Flang can't be used because the project bundles too old libtool and +# running autoreconf is too painful +USES= fortran:gfortran gmake libtool pkgconfig USE_LDCONFIG= yes USE_GITHUB= yes |