openbsd-ports/infrastructure/mk/fortran.port.mk
2010-05-25 10:10:43 +00:00

18 lines
579 B
Makefile

# $OpenBSD: fortran.port.mk,v 1.5 2010/05/25 10:10:43 espie Exp $
.if ${COMPILER_VERSION:L:Mgcc[34]*}
MODFORTRAN_LIB_DEPENDS77 = g2c::devel/libf2c
MODFORTRAN_WANTLIB77 =
MODFORTRAN_BUILD_DEPENDS77 = ::lang/g77 ::devel/libf2c
.else
MODFORTRAN_LIB_DEPENDS77 = g2c::devel/libf2c-old
MODFORTRAN_WANTLIB77 +=
MODFORTRAN_BUILD_DEPENDS77 = ::lang/g77-old ::devel/libf2c-old
.endif
.if ${MODFORTRAN_WANTG77:L} == "yes"
MODFORTRAN_LIB_DEPENDS += ${MODFORTRAN_LIB_DEPENDS77}
MODFORTRAN_WANTLIB += ${MODFORTRAN_WANTLIB77}
MODFORTRAN_BUILD_DEPENDS += ${MODFORTRAN_BUILD_DEPENDS77}
.endif