aboutsummaryrefslogtreecommitdiffstats
path: root/lang/gcc43
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/gcc43
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/gcc43')
-rw-r--r--lang/gcc43/Makefile14
-rw-r--r--lang/gcc43/distinfo2
-rw-r--r--lang/gcc43/pkg-plist5
3 files changed, 20 insertions, 1 deletions
diff --git a/lang/gcc43/Makefile b/lang/gcc43/Makefile
index b59ac0d7e416..a343e0873d58 100644
--- a/lang/gcc43/Makefile
+++ b/lang/gcc43/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)
diff --git a/lang/gcc43/distinfo b/lang/gcc43/distinfo
index d0f3b2ea6ae1..7346890760d5 100644
--- a/lang/gcc43/distinfo
+++ b/lang/gcc43/distinfo
@@ -1,5 +1,7 @@
MD5 (gcc-core-4.0-20041205.tar.bz2) = 436e5895296f777e6b59671b2c8d1f97
SIZE (gcc-core-4.0-20041205.tar.bz2) = 12827743
+MD5 (gcc-fortran-4.0-20041205.tar.bz2) = 3bea4e983c34ac7b7deaed3ce01e25fa
+SIZE (gcc-fortran-4.0-20041205.tar.bz2) = 549290
MD5 (gcc-g++-4.0-20041205.tar.bz2) = e7d5409d6f041b6ba26a3d52bc6bf293
SIZE (gcc-g++-4.0-20041205.tar.bz2) = 2567216
MD5 (gcc-java-4.0-20041205.tar.bz2) = abf489ad81b789f70863a6a57a95a945
diff --git a/lang/gcc43/pkg-plist b/lang/gcc43/pkg-plist
index aa0121de78ef..ffbc17b1165d 100644
--- a/lang/gcc43/pkg-plist
+++ b/lang/gcc43/pkg-plist
@@ -5,6 +5,11 @@ bin/fastjar40
bin/g++40
bin/gcc40
bin/gcov40
+%%FORTRAN%%bin/gfortran40
+%%FORTRAN%%lib/libgfortran.a
+%%FORTRAN%%lib/libgfortranbegin.a
+%%FORTRAN%%lib/libgfortran.la
+%%FORTRAN%%lib/libgfortranbegin.la
bin/%%GNU_HOST%%-c++40
bin/%%GNU_HOST%%-gcc-%%GCC_VER%%
bin/%%GNU_HOST%%-gcc40