summaryrefslogtreecommitdiff
path: root/science/cdf/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'science/cdf/Makefile')
-rw-r--r--science/cdf/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/science/cdf/Makefile b/science/cdf/Makefile
index edc94cf929c9..f1b4b8b150c5 100644
--- a/science/cdf/Makefile
+++ b/science/cdf/Makefile
@@ -23,7 +23,6 @@ MAKE_FLAGS= INSTALLDIR=${STAGEDIR}${PREFIX} OS=freebsd ENV=gnu \
FORTRAN=yes FC_freebsd=${F77}
MAKE_JOBS_UNSAFE= yes
TEST_TARGET= test # XXX: test segfaults
-FFLAGS+= -std=legacy
WRKSRC= ${WRKDIR}/cdf${VER}-dist
SUB_FILES= pkg-message
@@ -37,6 +36,12 @@ OPTIONS_DEFINE= DOCS EXAMPLES
MAKE_ARGS+= OS=freebsd ENV=gnu all
+.include <bsd.port.pre.mk>
+
+.if ${FORTRAN_DEFAULT} != flang
+FFLAGS= -std=legacy
+.endif
+
post-patch:
.for def in ${DEFS}
@${REINPLACE_CMD} -e 's|<path>|${PREFIX}|' \
@@ -51,4 +56,4 @@ post-install:
${SED} -i '' 's,${STAGEDIR},,g' ${STAGEDIR}${PREFIX}/bin/definitions.?
${RM} -f ${STAGEDIR}${PREFIX}/CDFLeapSeconds.txt
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>