From a2c438edf9538db44d13724bad63a71f3a6da108 Mon Sep 17 00:00:00 2001 From: espie Date: Sun, 23 May 2010 08:59:36 +0000 Subject: [PATCH] prepare the move --- infrastructure/mk/fortran.port.mk | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 infrastructure/mk/fortran.port.mk diff --git a/infrastructure/mk/fortran.port.mk b/infrastructure/mk/fortran.port.mk new file mode 100644 index 00000000000..4cc97d01be2 --- /dev/null +++ b/infrastructure/mk/fortran.port.mk @@ -0,0 +1,15 @@ +# $OpenBSD: fortran.port.mk,v 1.1 2010/05/23 08:59:36 espie Exp $ + +.if ${COMPILER_VERSION:L:Mgcc4*} +MODFORTRAN_LIB_DEPENDS77 += g2c::devel/libf2c +MODFORTRAN_WANTLIB77 += g2c::devel/libf2c +MODFORTRAN_BUILD_DEPENDS77 += ::lang/g77 +.else +MODFORTRAN_WANTLIB += g2c +.endif + +.if ${MODFORTRAN_WANTG77:L} == "yes" +MODFORTRAN_LIB_DEPENDS += ${MODFORTRAN_LIB_DEPENDS77} +MODFORTRAN_WANTLIB += ${MODFORTRAN_WANTLIB77} +MODFORTRAN_BUILD_DEPENDS += ${MODFORTRAN_BUILD_DEPENDS77} +.endif