aboutsummaryrefslogtreecommitdiffstats
path: root/lang
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
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')
-rw-r--r--lang/gcc/Makefile14
-rw-r--r--lang/gcc/distinfo2
-rw-r--r--lang/gcc/pkg-plist5
-rw-r--r--lang/gcc40/Makefile14
-rw-r--r--lang/gcc40/distinfo2
-rw-r--r--lang/gcc40/pkg-plist5
-rw-r--r--lang/gcc41/Makefile14
-rw-r--r--lang/gcc41/distinfo2
-rw-r--r--lang/gcc41/pkg-plist5
-rw-r--r--lang/gcc42/Makefile14
-rw-r--r--lang/gcc42/distinfo2
-rw-r--r--lang/gcc42/pkg-plist5
-rw-r--r--lang/gcc43/Makefile14
-rw-r--r--lang/gcc43/distinfo2
-rw-r--r--lang/gcc43/pkg-plist5
-rw-r--r--lang/gcc44/Makefile14
-rw-r--r--lang/gcc44/distinfo2
-rw-r--r--lang/gcc44/pkg-plist5
-rw-r--r--lang/gcc45/Makefile14
-rw-r--r--lang/gcc45/distinfo2
-rw-r--r--lang/gcc45/pkg-plist5
-rw-r--r--lang/gcc46/Makefile14
-rw-r--r--lang/gcc46/distinfo2
-rw-r--r--lang/gcc46/pkg-plist5
-rw-r--r--lang/gcc47/Makefile14
-rw-r--r--lang/gcc47/distinfo2
-rw-r--r--lang/gcc47/pkg-plist5
-rw-r--r--lang/gcc48/Makefile14
-rw-r--r--lang/gcc48/distinfo2
-rw-r--r--lang/gcc48/pkg-plist5
30 files changed, 200 insertions, 10 deletions
diff --git a/lang/gcc/Makefile b/lang/gcc/Makefile
index b59ac0d7e416..a343e0873d58 100644
--- a/lang/gcc/Makefile
+++ b/lang/gcc/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/gcc/distinfo b/lang/gcc/distinfo
index d0f3b2ea6ae1..7346890760d5 100644
--- a/lang/gcc/distinfo
+++ b/lang/gcc/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/gcc/pkg-plist b/lang/gcc/pkg-plist
index aa0121de78ef..ffbc17b1165d 100644
--- a/lang/gcc/pkg-plist
+++ b/lang/gcc/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
diff --git a/lang/gcc40/Makefile b/lang/gcc40/Makefile
index b59ac0d7e416..a343e0873d58 100644
--- a/lang/gcc40/Makefile
+++ b/lang/gcc40/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/gcc40/distinfo b/lang/gcc40/distinfo
index d0f3b2ea6ae1..7346890760d5 100644
--- a/lang/gcc40/distinfo
+++ b/lang/gcc40/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/gcc40/pkg-plist b/lang/gcc40/pkg-plist
index aa0121de78ef..ffbc17b1165d 100644
--- a/lang/gcc40/pkg-plist
+++ b/lang/gcc40/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
diff --git a/lang/gcc41/Makefile b/lang/gcc41/Makefile
index b59ac0d7e416..a343e0873d58 100644
--- a/lang/gcc41/Makefile
+++ b/lang/gcc41/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/gcc41/distinfo b/lang/gcc41/distinfo
index d0f3b2ea6ae1..7346890760d5 100644
--- a/lang/gcc41/distinfo
+++ b/lang/gcc41/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/gcc41/pkg-plist b/lang/gcc41/pkg-plist
index aa0121de78ef..ffbc17b1165d 100644
--- a/lang/gcc41/pkg-plist
+++ b/lang/gcc41/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
diff --git a/lang/gcc42/Makefile b/lang/gcc42/Makefile
index b59ac0d7e416..a343e0873d58 100644
--- a/lang/gcc42/Makefile
+++ b/lang/gcc42/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/gcc42/distinfo b/lang/gcc42/distinfo
index d0f3b2ea6ae1..7346890760d5 100644
--- a/lang/gcc42/distinfo
+++ b/lang/gcc42/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/gcc42/pkg-plist b/lang/gcc42/pkg-plist
index aa0121de78ef..ffbc17b1165d 100644
--- a/lang/gcc42/pkg-plist
+++ b/lang/gcc42/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
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
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)
diff --git a/lang/gcc44/distinfo b/lang/gcc44/distinfo
index d0f3b2ea6ae1..7346890760d5 100644
--- a/lang/gcc44/distinfo
+++ b/lang/gcc44/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/gcc44/pkg-plist b/lang/gcc44/pkg-plist
index aa0121de78ef..ffbc17b1165d 100644
--- a/lang/gcc44/pkg-plist
+++ b/lang/gcc44/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
diff --git a/lang/gcc45/Makefile b/lang/gcc45/Makefile
index b59ac0d7e416..a343e0873d58 100644
--- a/lang/gcc45/Makefile
+++ b/lang/gcc45/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/gcc45/distinfo b/lang/gcc45/distinfo
index d0f3b2ea6ae1..7346890760d5 100644
--- a/lang/gcc45/distinfo
+++ b/lang/gcc45/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/gcc45/pkg-plist b/lang/gcc45/pkg-plist
index aa0121de78ef..ffbc17b1165d 100644
--- a/lang/gcc45/pkg-plist
+++ b/lang/gcc45/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
diff --git a/lang/gcc46/Makefile b/lang/gcc46/Makefile
index b59ac0d7e416..a343e0873d58 100644
--- a/lang/gcc46/Makefile
+++ b/lang/gcc46/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/gcc46/distinfo b/lang/gcc46/distinfo
index d0f3b2ea6ae1..7346890760d5 100644
--- a/lang/gcc46/distinfo
+++ b/lang/gcc46/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/gcc46/pkg-plist b/lang/gcc46/pkg-plist
index aa0121de78ef..ffbc17b1165d 100644
--- a/lang/gcc46/pkg-plist
+++ b/lang/gcc46/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
diff --git a/lang/gcc47/Makefile b/lang/gcc47/Makefile
index b59ac0d7e416..a343e0873d58 100644
--- a/lang/gcc47/Makefile
+++ b/lang/gcc47/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/gcc47/distinfo b/lang/gcc47/distinfo
index d0f3b2ea6ae1..7346890760d5 100644
--- a/lang/gcc47/distinfo
+++ b/lang/gcc47/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/gcc47/pkg-plist b/lang/gcc47/pkg-plist
index aa0121de78ef..ffbc17b1165d 100644
--- a/lang/gcc47/pkg-plist
+++ b/lang/gcc47/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
diff --git a/lang/gcc48/Makefile b/lang/gcc48/Makefile
index b59ac0d7e416..a343e0873d58 100644
--- a/lang/gcc48/Makefile
+++ b/lang/gcc48/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/gcc48/distinfo b/lang/gcc48/distinfo
index d0f3b2ea6ae1..7346890760d5 100644
--- a/lang/gcc48/distinfo
+++ b/lang/gcc48/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/gcc48/pkg-plist b/lang/gcc48/pkg-plist
index aa0121de78ef..ffbc17b1165d 100644
--- a/lang/gcc48/pkg-plist
+++ b/lang/gcc48/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