head	1.19;
access;
symbols
	RELEASE_4_EOL:1.18
	RELEASE_6_2_0:1.17
	RELEASE_6_1_0:1.14
	RELEASE_5_5_0:1.14
	RELEASE_6_0_0:1.13
	RELEASE_5_4_0:1.13
	RELEASE_4_11_0:1.13
	RELEASE_5_3_0:1.11
	RELEASE_4_10_0:1.10;
locks; strict;
comment	@# @;


1.19
date	2007.04.06.21.52.43;	author gerald;	state dead;
branches;
next	1.18;

1.18
date	2007.01.14.11.52.45;	author gerald;	state Exp;
branches;
next	1.17;

1.17
date	2006.09.02.19.03.08;	author gerald;	state Exp;
branches;
next	1.16;

1.16
date	2006.07.23.17.18.57;	author gerald;	state Exp;
branches;
next	1.15;

1.15
date	2006.04.08.03.56.04;	author gerald;	state Exp;
branches;
next	1.14;

1.14
date	2006.02.06.22.16.03;	author gerald;	state Exp;
branches;
next	1.13;

1.13
date	2004.12.17.06.40.54;	author maho;	state Exp;
branches;
next	1.12;

1.12
date	2004.12.16.10.25.06;	author maho;	state Exp;
branches;
next	1.11;

1.11
date	2004.05.06.19.49.40;	author maho;	state Exp;
branches;
next	1.10;

1.10
date	2004.04.04.01.44.52;	author kris;	state Exp;
branches;
next	1.9;

1.9
date	2004.03.18.14.39.08;	author maho;	state Exp;
branches;
next	1.8;

1.8
date	2004.03.05.23.24.21;	author maho;	state Exp;
branches;
next	1.7;

1.7
date	2004.02.09.02.07.48;	author maho;	state Exp;
branches;
next	1.6;

1.6
date	2004.02.07.03.02.57;	author kris;	state Exp;
branches;
next	1.5;

1.5
date	2004.02.04.05.21.34;	author marcus;	state Exp;
branches;
next	1.4;

1.4
date	2004.02.02.23.57.41;	author maho;	state Exp;
branches;
next	1.3;

1.3
date	2004.02.02.13.41.30;	author maho;	state Exp;
branches;
next	1.2;

1.2
date	2004.02.01.23.23.31;	author maho;	state Exp;
branches;
next	1.1;

1.1
date	2004.02.01.23.20.22;	author maho;	state Exp;
branches;
next	;


desc
@@


1.19
log
@lang/gfortran is now just an alias for lang/gcc42.  Remove it.
@
text
@# ex:ts=8
# Ports collection makefile for:	egcs
# Date created:				9 Jan 1998
# Whom:					John Polstra <jdp@@polstra.com>
#
# $FreeBSD: ports/lang/gfortran/Makefile,v 1.18 2007/01/14 11:52:45 gerald Exp $
#

MASTERDIR=	${.CURDIR}/../gcc42
WITH_FORTRAN=	yes
PKGNAMESUFFIX=	-withfortran

MAINTAINER=	gerald@@FreeBSD.org

DESCR=	${.CURDIR}/pkg-descr
PKGMESSAGE=	${.CURDIR}/pkg-message

CONFLICTS=	gcc-4.2.*

.include "${MASTERDIR}/Makefile"
@


1.18
log
@Move lang/gfortran from using lang/gcc41 to lang/gcc42 as its master port.
The next step will be to abandon this port in favor of lang/gcc42.
@
text
@d6 1
a6 1
# $FreeBSD$
@


1.17
log
@lang/gfortran conflicts with lang/gcc41.
@
text
@d9 1
a9 1
MASTERDIR=	${.CURDIR}/../gcc41
d18 1
a18 1
CONFLICTS=	gcc-4.1.*
@


1.16
log
@Remove extraneous trailing slash from MASTERDIR.

Submitted by:	Matthew Seaman <m.seaman@@infracaninophile.co.uk>
@
text
@d10 1
d12 2
a13 1
WITH_FORTRAN=	yes
d18 2
@


1.15
log
@Fix some whitespace issues.

Suggested by:	portlint
@
text
@d9 1
a9 1
MASTERDIR=	${.CURDIR}/../gcc41/
@


1.14
log
@Base this port on lang/gcc41 instead of lang/gcc40.  The former has not
formally been released yet, but it's very close and Fortran support is so
much better than in the latter, that this seems appropriate.

This is also based on concrete recommendations by a GFortran developer and
a user based on their experiences.
@
text
@d9 2
a10 2
MASTERDIR=      ${.CURDIR}/../gcc41/
PKGNAMESUFFIX=          -withfortran
@


1.13
log
@Fix index build[1] and remove
unreferred files and clean up[2]

Submitted by:	kris[1] and sf[1,2]
@
text
@d9 1
a9 1
MASTERDIR=      ${.CURDIR}/../gcc40/
@


1.12
log
@Make this port a slave port of lang/gcc40.
@
text
@d10 1
d12 4
@


1.11
log
@Make portlint happy by replacing space to tab

PR:		65409
Submitted by:	trevor
@
text
@d9 3
a11 130
PORTNAME=	gfortran
PORTVERSION=	3.5.${SNAPDATE}
CATEGORIES=	lang
MASTER_SITES=	${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	maho/tree-ssa
#		http://people.redhat.com/dnovillo/pub/tree-ssa/snapshot/
DISTNAME=	tree-ssa-${SNAPDATE}

MAINTAINER?=	maho@@FreeBSD.org
COMMENT=	GNU Fortran Compiler 90/95 from tree-ssa branch

LIB_DEPENDS=	gmp.6:${PORTSDIR}/math/libgmp4

USE_BZIP2=	yes
USE_REINPLACE=	yes
USE_PERL5_BUILD=yes

PATCH_WRKSRC=	${SRCDIR}
CONFIGURE_SCRIPT=	../${SRCDIR:C/${WRKDIR}//}/configure
NOMANCOMPRESS=	yes	# too hard to deal with differences on 5-cur and releng4

SNAPDATE=	20040317

.include <bsd.port.pre.mk>

.if ${ARCH} != "amd64" && ${ARCH} != "i386"
BROKEN=		"Does not compile on !i386 and !amd64"
.endif

.if ${ARCH} == "amd64"
CONFIGURE_TARGET=	x86_64-portbld-freebsd${OSREL}
.else
CONFIGURE_TARGET=	${ARCH}-portbld-freebsd${OSREL}
.endif

SRCDIR=		${WRKDIR}/gcc
WRKSRC=		${WRKDIR}/build
TARGLIB=	${PREFIX}/lib/gcc/${CONFIGURE_TARGET}/3.5-tree-ssa/
TARGLIBEXEC=	${PREFIX}/libexec/gcc/${CONFIGURE_TARGET}/3.5-tree-ssa/
PLIST_SUB=	GCC_VER=${PORTVERSION} GNU_HOST=${CONFIGURE_TARGET}
GNU_CONFIGURE=	yes
USE_GMAKE=	yes
USE_BISON=	yes
CONFIGURE_ARGS=	--disable-nls \
		--with-gmp=${LOCALBASE} \
		--with-system-zlib \
		--with-libiconv-prefix=${LOCALBASE} \
		--program-suffix=tree-ssa \
		--disable-libmudflap \
		--enable-languages=c,f95
MAKE_ARGS+=	MAKEINFOFLAGS="--no-split"
.if defined(WANT_SHAREDLIBS)
CONFIGURE_ARGS+=	--enable-shared
INSTALLS_SHLIB=	yes
LDCONFIG_DIRS=	%%PREFIX%%/lib ${TARGLIB}
EXTRA_SHLIB=	libgcc_s
.else
CONFIGURE_ARGS+=	--disable-shared
.endif
.if defined(WANT_THREADS_SUPPORT)
CONFIGURE_ARGS+=	--enable-threads
#	?is this an ObjC only thing?
CONFIGURE_ARGS+=	--enable-threads=posix
.endif
ALL_TARGET=	bootstrap-lean
MAN1=		cpptree-ssa.1   gcctree-ssa.1   gcovtree-ssa.1
MAN7=		fsf-funding.7 gfdl.7 gpl.7

pre-everything::
	@@${ECHO_MSG} "Making GCC ${DISTNAME:S/^gcc-//} for ${OPSYS} ${OSREL} ${PORTOBJFORMAT}	target ${CONFIGURE_TARGET}"

post-patch:
	@@${REINPLACE_CMD} -e 's|\(const char version_string.*\)";|\1 [FreeBSD]";|' \
	    ${SRCDIR}/gcc/version.c

pre-configure:
	cd ${SRCDIR} ; contrib/gcc_update --touch
	@@${RM} -f ${SRCDIR}/gcc/*/*.info*
	@@${MKDIR} ${CONFIGURE_WRKSRC}

post-build:
	@@${ECHO_MSG} "Consider running 'make check' before 'make install',"
	@@${ECHO_MSG} "especially if you have not built port on -STABLE or -CURRENT."
	@@${ECHO_MSG} "This assumes that you have the dejagnu port installed."

check: build
	cd ${WRKSRC}; export RUNTESTFLAGS='--target_board ''unix{-pthread}'''; ${GMAKE} -sk check

post-install:
	${LN} ${PREFIX}/bin/gfortrantree-ssa ${PREFIX}/bin/gfortran

.for f in gcc cpp gcov ${CONFIGURE_TARGET}-gcc ${CONFIGURE_TARGET}-g++ gcj gcjh gij jv-scan jcf-dump jv-convert jar grepjar rmic rmiregistry
	if [ -e ${PREFIX}/bin/${f}tree-ssa ]; then \
	  ${STRIP_CMD} ${PREFIX}/bin/${f}tree-ssa; \
	  ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
		|| ${MV} -f ${PREFIX}/man/man1/${f}.1 \
		${PREFIX}/man/man1/${f}tree-ssa.1 ); \
	fi
.endfor

.for f in libgfortran libgfortranbegin libiberty ${EXTRA_SHLIB}
	${MV} -f ${PREFIX}/lib/${f}.* ${TARGLIB}
.endfor
	${RM} -f ${PREFIX}/lib/libiberty.a
	${RM} -f ${TARGLIB}/*.la
# I am sick and tired of the anonyance that man pages can only be generated if
# perl 5.6 is installed.  This is becoming a royal PITA on non-5-CURRENT systems
.for mp in ${_MANPAGES}
	( ${TEST} -e ${mp} || ${TOUCH} ${TOUCH_FLAGS} ${mp} )
.endfor
	# Handle target libraries and GCJ include files.
	${RM} -f ${WRKDIR}/PLIST.lib
.for d in ${TARGLIB:S/^${PREFIX}\///} ${TARGLIBEXEC:S/^${PREFIX}\///} include/gcj include/gnu include/java include/javax
	cd ${PREFIX} ; if [ -d $d ]; then \
	    ${FIND} $d -type f -o -type l >>${WRKDIR}/PLIST.lib ;\
	    ${FIND} $d -type d | ${SORT} -r \
	        | ${SED} -e 's/^/@@dirrm /g' >>${WRKDIR}/PLIST.lib ;\
	fi
.endfor
	(${ECHO_CMD} "@@unexec ${RMDIR} %D/lib/gcc/${CONFIGURE_TARGET} 2>&1 || true" ; ${ECHO_CMD} "@@unexec ${RMDIR} %D/lib/gcc 2>&1 || true") >> ${WRKDIR}/PLIST.lib
	(${ECHO_CMD} "@@unexec ${RMDIR} %D/libexec/gcc/${CONFIGURE_TARGET} 2>&1 || true" ; ${ECHO_CMD} "@@unexec ${RMDIR} %D/libexec/gcc 2>&1 || true") >> ${WRKDIR}/PLIST.lib
	${ECHO_CMD} "r ${TMPPLIST}"		> ${WRKDIR}/ex.script
	${ECHO_CMD} "/Insert PLIST.lib"		>> ${WRKDIR}/ex.script
	${ECHO_CMD} "d"				>> ${WRKDIR}/ex.script
	${ECHO_CMD} "r ${WRKDIR}/PLIST.lib"	>> ${WRKDIR}/ex.script
	${ECHO_CMD} "x!"			>> ${WRKDIR}/ex.script
	${CP} -p ${TMPPLIST} ${TMPPLIST}.pre
	cd ${WRKDIR} ; ex < ex.script

.include <bsd.port.post.mk>
@


1.10
log
@BROKEN on !i386 and !amd64: Does not compile
@
text
@d35 1
a35 1
BROKEN=         "Does not compile on !i386 and !amd64"
@


1.9
log
@1) update to 20040317 daily snapshot
   Please see the status report:
   http://gcc.gnu.org/ml/gcc/2004-03/msg00596.html
2) SIZEify
@
text
@d34 4
@


1.8
log
@fix build on amd64

PR:		63110
Submitted by:	Hendrik Scholz <hendrik@@scholz.net>
@
text
@a10 1
PORTREVISION=	1
d30 1
a30 1
SNAPDATE=	20040130
@


1.7
log
@a) Unbreak for i386 arch
b) cleanup (info files are inappropreately registered)

PR:		kris via bento
@
text
@d35 3
d39 1
@


1.6
log
@BROKEN on 5.x: broken pkg-plist
@
text
@a34 4
.if ${OSVERSION} >= 502000
BROKEN=		"Broken pkg-plist"
.endif

a68 1
INFO=		cpp gcc gccint cppinternals gccinstall
@


1.5
log
@Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.

(Part 2)
@
text
@d35 4
@


1.4
log
@a) add --disable-libmudflap since this port doesn't use libmudflap
b) remove g95 as far as possible this confuses too much.
   I've already fill the PR #62287

Submitted by:   Steve Kargl <sgk@@troutmask.apl.washington.edu>
@
text
@d11 1
@


1.3
log
@Use ${MASTER_SITE_LOCAL}

Submitted by:	sf
@
text
@d9 1
a9 1
PORTNAME=	g95
a91 1
	${LN} ${PREFIX}/bin/gfortrantree-ssa ${PREFIX}/bin/g95
d102 1
a102 1
.for f in libgfortran libgfortranbegin libmudflap libmudflapth libiberty ${EXTRA_SHLIB}
a129 2

cklatest:
@


1.2
log
@(Forced commit)
Many useful suggestions were given by: sf
Thank you very much and sorry forgetting about it.
@
text
@d12 2
a13 1
MASTER_SITES=	http://people.freebsd.org/~maho/tree-ssa/
d49 1
@


1.1
log
@Add New port lang/g95 GNU Fortran 90/95 Compiler
from GCC's tree-ssa-20020619-branch and still this
is alpha stage.
you can invoke Fortran by typing gfortran or g95,

Note: gcc-3.5 will include this effort.
@
text
@@

