aboutsummaryrefslogtreecommitdiff
path: root/math/octave-forge-optiminterp
diff options
context:
space:
mode:
authorMark Linimon <linimon@FreeBSD.org>2021-01-13 23:03:31 +0000
committerMark Linimon <linimon@FreeBSD.org>2021-01-13 23:03:31 +0000
commitf86c964117b6a3ebf2cbf7bb69821dfb8a74f1c2 (patch)
treedee6818341bc298df429631dc617ddfaf949f1e5 /math/octave-forge-optiminterp
parent671839de5f6867f1f9e48aa527390d7495cbb750 (diff)
Notes
Diffstat (limited to 'math/octave-forge-optiminterp')
-rw-r--r--math/octave-forge-optiminterp/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/math/octave-forge-optiminterp/Makefile b/math/octave-forge-optiminterp/Makefile
index c8d7e23abdac..b99e212edbc2 100644
--- a/math/octave-forge-optiminterp/Makefile
+++ b/math/octave-forge-optiminterp/Makefile
@@ -24,8 +24,16 @@ GNU_CONFIGURE= yes
MAKE_ENV+= MKOCTFILE_FORTRAN_90=yes MKOCTFILE=mkoctfile
+.include <bsd.port.pre.mk>
+
+.if ${GCC_DEFAULT} >= 10
+# workaround for Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-2)
+# in theory, this should set FCFLAGS, but the port does not conform
+FFLAGS+= -fallow-argument-mismatch
+.endif
+
post-build:
${RM} ${WRKSRC}/Makefile ${WRKSRC}/configure
cd ${WRKDIR} && ${TAR} cfz ${DISTNAME}.tar.gz ${OCTSRC}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>