aboutsummaryrefslogtreecommitdiffstats
path: root/lang/gcc44/Makefile
diff options
context:
space:
mode:
authormaho <maho@FreeBSD.org>2004-12-16 17:32:21 +0800
committermaho <maho@FreeBSD.org>2004-12-16 17:32:21 +0800
commitef7a288b3b9c96184e4d20ff76b06294b37b4afe (patch)
treea3937e416899d38f5faf0be6017cc1719090ba0d /lang/gcc44/Makefile
parent7b6c45c47237917d066fbfeab492a99a78e57d11 (diff)
downloadfreebsd-ports-gnome-ef7a288b3b9c96184e4d20ff76b06294b37b4afe.tar.gz
freebsd-ports-gnome-ef7a288b3b9c96184e4d20ff76b06294b37b4afe.tar.zst
freebsd-ports-gnome-ef7a288b3b9c96184e4d20ff76b06294b37b4afe.zip
Adding knob WITH_FORTRAN.
Now we have GNU Fortran 90/95 compiler with this knob. PR: 74187 Approved by: gerald (maintainer)
Diffstat (limited to 'lang/gcc44/Makefile')
-rw-r--r--lang/gcc44/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/lang/gcc44/Makefile b/lang/gcc44/Makefile
index b59ac0d7e416..a343e0873d58 100644
--- a/lang/gcc44/Makefile
+++ b/lang/gcc44/Makefile
@@ -19,7 +19,9 @@ DISTFILES= \
gcc-java-${VERSIONSTRING}${EXTRACT_SUFX} \
gcc-objc-${VERSIONSTRING}${EXTRACT_SUFX} \
gcc-testsuite-${VERSIONSTRING}${EXTRACT_SUFX}
-
+.if defined(WITH_FORTRAN)
+DISTFILES+= gcc-fortran-${VERSIONSTRING}${EXTRACT_SUFX}
+.endif
MAINTAINER?= gerald@FreeBSD.org
COMMENT?= GNU Compiler Collection 4.0
@@ -95,6 +97,16 @@ PLIST_SUB+= LIBJAVA="@comment "
PLIST_SUB+= LIBJAVA=""
.endif
+.if defined(WITH_FORTRAN)
+LIB_DEPENDS+= gmp.6:${PORTSDIR}/math/libgmp4
+CONFIGURE_ARGS+= --with-gmp=${LOCALBASE}
+MAN1+= gfortran${SUFFIX}.1
+INFO+= gfortran
+PLIST_SUB+= FORTRAN=""
+.else
+PLIST_SUB+= FORTRAN="@comment "
+.endif
+
pre-everything::
@${ECHO_MSG} "Making GCC ${DISTNAME:S/^gcc-//} for ${OPSYS} ${OSREL} target=${CONFIGURE_TARGET}"
.if defined(WITHOUT_LIBJAVA)