ports/74187: support gfortran in ports/lang/gcc40
NAKATA Maho
maho at FreeBSD.org
Sun Nov 21 05:20:28 UTC 2004
>Number: 74187
>Category: ports
>Synopsis: support gfortran in ports/lang/gcc40
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Nov 21 05:20:27 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: NAKATA Maho
>Release: FreeBSD 5.3-RELEASE i386
>Organization:
private
>Environment:
System: FreeBSD debussy.private.org 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Sun Nov 21 11:34:35 JST 2004 maho at debussy.private.org:/usr/src/sys/i386/compile/MAHO i386
>Description:
Add support for the GNU Fortran 90/95 Compiler (gfortran).
Currently, lang/gcc40 doesn't make gfortran, the gnu fortran
90/95 compiler. This will be a highlight of gcc 4.0 release
because many people who are interested in high performance computing
or scientific computing are longing for it.
Unfortunately, there's no free Fortran 90/95 compiler at the moment,
so we are using lang/ifc as an alternative, employing many tricks,
and currently it is only for i386.
We also have a lang/gfortran, which is obsolated long long ago
because it has already been merged into gcc-4 development (I'll
remove it soon later, I'm a maintainer of this port).
>How-To-Repeat:
N/A
>Fix:
diff file is attached below:
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/lang/gcc40/Makefile,v
retrieving revision 1.184
diff -u -r1.184 Makefile
--- Makefile 14 Nov 2004 21:42:10 -0000 1.184
+++ Makefile 21 Nov 2004 05:07:12 -0000
@@ -17,6 +17,7 @@
DISTFILES= \
gcc-core-${VERSIONSTRING}${EXTRACT_SUFX} \
gcc-g++-${VERSIONSTRING}${EXTRACT_SUFX} \
+ gcc-fortran-${VERSIONSTRING}${EXTRACT_SUFX} \
gcc-java-${VERSIONSTRING}${EXTRACT_SUFX} \
gcc-objc-${VERSIONSTRING}${EXTRACT_SUFX} \
gcc-testsuite-${VERSIONSTRING}${EXTRACT_SUFX}
@@ -31,6 +32,7 @@
USE_GMAKE= yes
USE_PERL5_BUILD=yes
USE_REINPLACE= yes
+LIB_DEPENDS+= gmp.6:${PORTSDIR}/math/libgmp4
PATCH_WRKSRC= ${SRCDIR}
CONFIGURE_SCRIPT= ../${SRCDIR:C/${WRKDIR}//}/configure
@@ -59,7 +61,8 @@
--with-system-zlib \
--with-libiconv-prefix=${LOCALBASE} \
--program-suffix=${SUFFIX} \
- --with-gxx-include-dir=${TARGLIB}/include/c++/
+ --with-gxx-include-dir=${TARGLIB}/include/c++/ \
+ --with-gmp=${LOCALBASE}
MAKE_ARGS+= MAKEINFOFLAGS="--no-split"
.if defined(WANT_SHAREDLIBS)
CONFIGURE_ARGS+= --enable-shared
@@ -79,6 +82,7 @@
gcj${SUFFIX}.1 \
gcjh${SUFFIX}.1 \
gij${SUFFIX}.1 \
+ gfortran${SUFFIX}.1 \
grmic${SUFFIX}.1 \
grmiregistry${SUFFIX}.1 \
grepjar${SUFFIX}.1 \
@@ -87,7 +91,7 @@
jv-scan${SUFFIX}.1 jv-convert${SUFFIX}.1 \
rmic${SUFFIX}.1 rmiregistry${SUFFIX}.1
MAN7= fsf-funding.7 gfdl.7 gpl.7
-INFO= cpp cppinternals gcc gccinstall gccint gcj fastjar
+INFO= cpp cppinternals gcc gccinstall gccint gcj gfortran fastjar
.if defined(WITHOUT_LIBJAVA)
CONFIGURE_ARGS+= --disable-libgcj
Index: distinfo
===================================================================
RCS file: /home/pcvs/ports/lang/gcc40/distinfo,v
retrieving revision 1.93
diff -u -r1.93 distinfo
--- distinfo 14 Nov 2004 21:42:10 -0000 1.93
+++ distinfo 21 Nov 2004 05:07:12 -0000
@@ -2,6 +2,8 @@
SIZE (gcc-core-4.0-20041114.tar.bz2) = 12279255
MD5 (gcc-g++-4.0-20041114.tar.bz2) = ff8b28a418cb19e967d79d2d9f2b06ba
SIZE (gcc-g++-4.0-20041114.tar.bz2) = 2533124
+MD5 (gcc-fortran-4.0-20041114.tar.bz2) = 35180c8522b77e5332a8525ac7eba75f
+SIZE (gcc-fortran-4.0-20041114.tar.bz2) = 542438
MD5 (gcc-java-4.0-20041114.tar.bz2) = 0f8d8aa7b1f4d31a2b63c7e454b797a8
SIZE (gcc-java-4.0-20041114.tar.bz2) = 5258878
MD5 (gcc-objc-4.0-20041114.tar.bz2) = c80f22da306c608ed5cc1d829ac4cd3f
Index: pkg-plist
===================================================================
RCS file: /home/pcvs/ports/lang/gcc40/pkg-plist,v
retrieving revision 1.60
diff -u -r1.60 pkg-plist
--- pkg-plist 5 Nov 2004 19:48:46 -0000 1.60
+++ pkg-plist 21 Nov 2004 05:07:12 -0000
@@ -5,6 +5,7 @@
bin/g++40
bin/gcc40
bin/gcov40
+bin/gfortran40
bin/%%GNU_HOST%%-c++40
bin/%%GNU_HOST%%-gcc-%%GCC_VER%%
bin/%%GNU_HOST%%-gcc40
@@ -18,6 +19,10 @@
%%LIBJAVA%%bin/gij40
bin/jv-scan40
bin/jcf-dump40
+lib/libgfortran.a
+lib/libgfortranbegin.a
+lib/libgfortran.la
+lib/libgfortranbegin.la
%%LIBJAVA%%bin/jv-convert40
%%LIBJAVA%%bin/rmic40
%%LIBJAVA%%bin/rmiregistry40
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list