head	1.61;
access;
symbols
	RELEASE_7_1_0:1.59
	RELEASE_6_4_0:1.59
	RELEASE_5_EOL:1.58
	RELEASE_7_0_0:1.58
	RELEASE_6_3_0:1.58
	PRE_XORG_7:1.58
	RELEASE_4_EOL:1.57
	RELEASE_6_2_0:1.57
	RELEASE_6_1_0:1.57
	RELEASE_5_5_0:1.57
	RELEASE_6_0_0:1.56
	RELEASE_5_4_0:1.50
	RELEASE_4_11_0:1.49
	RELEASE_5_3_0:1.48
	RELEASE_4_10_0:1.48
	RELEASE_5_2_1:1.45
	RELEASE_5_2_0:1.45
	RELEASE_4_9_0:1.42
	RELEASE_5_1_0:1.42
	RELEASE_4_8_0:1.38
	RELEASE_5_0_0:1.36
	RELEASE_4_7_0:1.33
	RELEASE_4_6_2:1.33
	RELEASE_4_6_1:1.33
	RELEASE_4_6_0:1.33
	RELEASE_5_0_DP1:1.33
	RELEASE_4_5_0:1.33
	RELEASE_4_4_0:1.32
	RELEASE_4_3_0:1.32
	RELEASE_4_2_0:1.31
	RELEASE_4_1_1:1.30
	RELEASE_4_1_0:1.30
	RELEASE_3_5_0:1.30
	RELEASE_4_0_0:1.27
	RELEASE_3_4_0:1.27
	RELEASE_3_3_0:1.27
	RELEASE_3_2_0:1.23
	RELEASE_3_1_0:1.21
	RELEASE_2_2_8:1.19
	RELEASE_3_0_0:1.16
	RELEASE_2_2_7:1.11
	gcc_2_8_1:1.8
	RELEASE_2_2_6:1.7
	gcc_2_8_0:1.1.1.1
	OBRIEN:1.1.1;
locks; strict;
comment	@# @;


1.61
date	2009.01.24.12.17.08;	author gerald;	state dead;
branches;
next	1.60;

1.60
date	2009.01.05.20.36.29;	author pav;	state Exp;
branches;
next	1.59;

1.59
date	2008.08.21.06.17.29;	author rafan;	state Exp;
branches;
next	1.58;

1.58
date	2007.01.30.10.25.28;	author pav;	state Exp;
branches;
next	1.57;

1.57
date	2005.11.09.19.15.44;	author pav;	state Exp;
branches;
next	1.56;

1.56
date	2005.08.19.11.45.26;	author pav;	state Exp;
branches;
next	1.55;

1.55
date	2005.08.17.12.03.59;	author pav;	state Exp;
branches;
next	1.54;

1.54
date	2005.06.06.05.42.40;	author obrien;	state Exp;
branches;
next	1.53;

1.53
date	2005.06.05.02.49.42;	author obrien;	state Exp;
branches;
next	1.52;

1.52
date	2005.04.10.18.32.06;	author netchild;	state Exp;
branches;
next	1.51;

1.51
date	2005.04.10.14.42.17;	author netchild;	state Exp;
branches;
next	1.50;

1.50
date	2005.02.12.13.19.46;	author das;	state Exp;
branches;
next	1.49;

1.49
date	2004.11.15.01.33.03;	author obrien;	state Exp;
branches;
next	1.48;

1.48
date	2004.03.14.03.21.59;	author kris;	state Exp;
branches;
next	1.47;

1.47
date	2004.02.23.05.16.05;	author kris;	state Exp;
branches;
next	1.46;

1.46
date	2004.02.04.05.21.35;	author marcus;	state Exp;
branches;
next	1.45;

1.45
date	2003.11.17.12.29.00;	author trevor;	state Exp;
branches;
next	1.44;

1.44
date	2003.09.27.00.50.07;	author edwin;	state Exp;
branches;
next	1.43;

1.43
date	2003.09.24.09.36.55;	author osa;	state Exp;
branches;
next	1.42;

1.42
date	2003.05.09.05.34.06;	author obrien;	state Exp;
branches;
next	1.41;

1.41
date	2003.05.07.22.59.19;	author gerald;	state Exp;
branches;
next	1.40;

1.40
date	2003.04.28.15.37.22;	author obrien;	state Exp;
branches;
next	1.39;

1.39
date	2003.04.27.12.59.04;	author gerald;	state Exp;
branches;
next	1.38;

1.38
date	2003.02.20.18.37.57;	author knu;	state Exp;
branches;
next	1.37;

1.37
date	2003.01.30.08.23.53;	author kris;	state Exp;
branches;
next	1.36;

1.36
date	2002.11.10.16.46.50;	author lioux;	state Exp;
branches;
next	1.35;

1.35
date	2002.11.06.22.45.48;	author adamw;	state Exp;
branches;
next	1.34;

1.34
date	2002.11.05.03.10.07;	author obrien;	state Exp;
branches;
next	1.33;

1.33
date	2002.01.19.19.15.10;	author knu;	state Exp;
branches;
next	1.32;

1.32
date	2001.03.11.02.35.39;	author obrien;	state Exp;
branches;
next	1.31;

1.31
date	2000.11.10.17.37.13;	author obrien;	state Exp;
branches;
next	1.30;

1.30
date	2000.04.12.06.18.35;	author obrien;	state Exp;
branches;
next	1.29;

1.29
date	2000.03.22.00.26.55;	author obrien;	state Exp;
branches;
next	1.28;

1.28
date	2000.03.20.02.36.27;	author obrien;	state Exp;
branches;
next	1.27;

1.27
date	99.09.04.20.32.36;	author obrien;	state Exp;
branches;
next	1.26;

1.26
date	99.08.28.01.57.29;	author mharo;	state Exp;
branches;
next	1.25;

1.25
date	99.08.25.06.34.36;	author obrien;	state Exp;
branches;
next	1.24;

1.24
date	99.07.15.11.14.11;	author obrien;	state Exp;
branches;
next	1.23;

1.23
date	99.03.31.10.42.20;	author obrien;	state Exp;
branches;
next	1.22;

1.22
date	99.03.08.07.28.29;	author asami;	state Exp;
branches;
next	1.21;

1.21
date	99.02.09.18.25.42;	author obrien;	state Exp;
branches;
next	1.20;

1.20
date	99.01.27.07.41.20;	author fenner;	state Exp;
branches;
next	1.19;

1.19
date	98.11.13.07.32.21;	author obrien;	state Exp;
branches;
next	1.18;

1.18
date	98.11.11.05.37.24;	author asami;	state Exp;
branches;
next	1.17;

1.17
date	98.11.10.07.33.33;	author obrien;	state Exp;
branches;
next	1.16;

1.16
date	98.10.08.01.19.19;	author asami;	state Exp;
branches;
next	1.15;

1.15
date	98.09.27.04.25.56;	author obrien;	state Exp;
branches;
next	1.14;

1.14
date	98.08.18.03.45.02;	author obrien;	state Exp;
branches;
next	1.13;

1.13
date	98.08.13.17.55.39;	author obrien;	state Exp;
branches;
next	1.12;

1.12
date	98.08.07.22.49.30;	author asami;	state Exp;
branches;
next	1.11;

1.11
date	98.06.30.21.10.21;	author jdp;	state Exp;
branches;
next	1.10;

1.10
date	98.06.10.20.16.08;	author asami;	state Exp;
branches;
next	1.9;

1.9
date	98.06.06.04.42.31;	author asami;	state Exp;
branches;
next	1.8;

1.8
date	98.04.12.13.16.25;	author obrien;	state Exp;
branches;
next	1.7;

1.7
date	98.03.11.11.49.09;	author obrien;	state Exp;
branches;
next	1.6;

1.6
date	98.03.10.06.23.31;	author obrien;	state Exp;
branches;
next	1.5;

1.5
date	98.03.09.03.46.16;	author jfieber;	state Exp;
branches;
next	1.4;

1.4
date	98.03.06.05.54.19;	author obrien;	state Exp;
branches;
next	1.3;

1.3
date	98.03.05.03.29.58;	author obrien;	state Exp;
branches;
next	1.2;

1.2
date	98.03.04.09.19.21;	author obrien;	state Exp;
branches;
next	1.1;

1.1
date	98.01.16.10.15.13;	author obrien;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	98.01.16.10.15.13;	author obrien;	state Exp;
branches;
next	;


desc
@@


1.61
log
@Remove lang/gcc28 (GCC 2.8) which has been DEPRECATED for more than
3 years and does not build anywhere.

No objections:	mjl@@luckie.org.nz (maintainer), pav
@
text
@# ex:ts=8
# Ports collection makefile for:	gcc
# Date created:				17 Jan 1998
# Whom:					David O'Brien <obrien@@NUXI.com>
#
# $FreeBSD: ports/lang/gcc28/Makefile,v 1.60 2009/01/05 20:36:29 pav Exp $
#

PORTNAME=	gcc
PORTVERSION=	2.8.1
PORTREVISION=	3
CATEGORIES=	lang
MASTER_SITES=	${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR=	gcc

MAINTAINER=	mjl@@luckie.org.nz
COMMENT=	GNU Compiler Collection 2.8

NOT_FOR_ARCHS=	amd64 sparc64 ia64
NO_CDROM=	"old version, not worth the cost in real estate"

LATEST_LINK=	gcc28

DEPRECATED=	This port is no longer in use by anything in the ports collection.  Use a later release instead

.include <bsd.port.pre.mk>

.if ${ARCH} == "alpha"
BROKEN=		Does not compile on alpha
.endif

CONFIGURE_ENV+=		OSVERSION=${OSVERSION}
PLIST_SUB=	GNUHOST=${CONFIGURE_TARGET}
CONFIGURE_ARGS=	--with-gxx-include-dir=${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/2.8.1/include/g++ \
		--program-suffix=28
GNU_CONFIGURE=	yes
USE_GMAKE=	yes
ALL_TARGET=	bootstrap
MAN1=		cccp28.1 g++28.1 gcc28.1
INFO=		cpp gcc

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

pre-patch:
	@@${MV} ${WRKSRC}/config/i386/freebsd.h ${WRKSRC}/config/i386/freebsd-aout.h
	@@${MV} ${WRKSRC}/config/i386/freebsd-elf.h ${WRKSRC}/config/i386/freebsd.h

pre-configure:
	@@# Keep from running `autoconf' and `autoheader' since we modified
	@@# configure.in by patching it.
	@@${TOUCH} ${TOUCH_FLAGS} ${WRKSRC}/configure
	@@${TOUCH} ${TOUCH_FLAGS} ${WRKSRC}/cstamp-h.in
	@@(cd ${WRKSRC}/config/${ARCH}/ ; \
	MAJ=`/sbin/sysctl -n kern.osreldate | ${SED} -e '/.....$$/s///'` ; \
	${MV} freebsd-aout.h freebsd-aout.h.in ; \
	${SED} -e "s:__FreeBSD__=[0-9]*:__FreeBSD__=$${MAJ}:" \
		freebsd-aout.h.in >freebsd-aout.h ; \
	${MV} freebsd.h freebsd.h.in ; \
	${SED} -e "s:__FreeBSD__=[0-9]*:__FreeBSD__=$${MAJ}:" freebsd.h.in \
		>freebsd.h)

post-install:
	@@${RM} -f ${PREFIX}/bin/c++
	(for prog in ${PREFIX}/bin/gcc ${PREFIX}/bin/g++ ${PREFIX}/bin/gcov \
	${PREFIX}/bin/protoize ${PREFIX}/bin/unprotoize \
	${PREFIX}/bin/${CONFIGURE_TARGET}-gcc \
	${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/2.8.1/cc1 \
	${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/2.8.1/cc1obj \
	${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/2.8.1/cc1plus \
	${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/2.8.1/cpp ; \
		do ${STRIP_CMD} $$prog ; \
		done)
	@@${MV} ${PREFIX}/bin/gcc ${PREFIX}/bin/gcc28
	@@${MV} ${PREFIX}/bin/g++ ${PREFIX}/bin/g++28
	@@${MV} ${PREFIX}/bin/gcov ${PREFIX}/bin/gcov28
	@@${MV} ${PREFIX}/man/man1/cccp.1 ${PREFIX}/man/man1/cccp28.1
	@@${MV} ${PREFIX}/man/man1/g++.1 ${PREFIX}/man/man1/g++28.1
	@@${MV} ${PREFIX}/man/man1/gcc.1 ${PREFIX}/man/man1/gcc28.1

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


1.60
log
@- Remove conditional checks for FreeBSD 5.x and older
@
text
@d6 1
a6 1
# $FreeBSD$
@


1.59
log
@Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.
Specifically, newer autoconf (> 2.13) has different semantic of the
configure target. In short, one should use --build=CONFIGURE_TARGET
instead of CONFIGURE_TARGET directly. Otherwise, you will get a warning
and the old semantic may be removed in later autoconf releases.

To workaround this issue, many ports hack the CONFIGURE_TARGET variable
so that it contains the ``--build='' prefix.

To solve this issue, under the fact that some ports still have
configure script generated by the old autoconf, we use runtime detection
in the do-configure target so that the proper argument can be used.

Changes to Mk/*:
 - Add runtime detection magic in bsd.port.mk
 - Remove CONFIGURE_TARGET hack in various bsd.*.mk
 - USE_GNOME=gnometarget is now an no-op

Changes to individual ports, other than removing the CONFIGURE_TARGET hack:

= pkg-plist changed (due to the ugly CONFIGURE_TARGET prefix in * executables)
  - comms/gnuradio
  - science/abinit
  - science/elmer-fem
  - science/elmer-matc
  - science/elmer-meshgen2d
  - science/elmerfront
  - science/elmerpost

= use x86_64 as ARCH
  - devel/g-wrap

= other changes
  - print/magicfilter
    GNU_CONFIGURE -> HAS_CONFIGURE since it's not generated by autoconf

Total # of ports modified:  1,027
Total # of ports affected: ~7,000 (set GNU_CONFIGURE to yes)

PR:		126524 (obsoletes 52917)
Submitted by:	rafan
Tested on:	two pointyhat 7-amd64 exp runs (by pav)
Approved by:	portmgr (pav)
@
text
@a33 3
.if ${OSVERSION} < 600011
PLIST_FILES+=	lib/gcc-lib/${CONFIGURE_TARGET}/2.8.1/include/math.h
.endif
@


1.58
log
@- Remove support for a.out format and PORTOBJFORMAT variable from individual
  ports

With hat:	portmgr
@
text
@a31 1
CONFIGURE_TARGET=	${ARCH}-portbld-freebsd${OSREL}
@


1.57
log
@- Portlint

PR:		ports/88544 (part of)
Submitted by:	Matthew Luckie <mjl@@luckie.org.nz> (maintainer)
@
text
@d29 1
a29 1
BROKEN=		"Does not compile on alpha"
a31 1
.if ${PORTOBJFORMAT} == "elf"
a32 3
.else
CONFIGURE_TARGET=	${ARCH}-portbld-freebsdaout${OSREL}
.endif
d47 1
a47 1
	@@${ECHO_MSG} "GCC ${DISTNAME:S/^gcc-//} for ${OPSYS} ${OSREL} ${PORTOBJFORMAT}"
@


1.56
log
@- Fix INFO handling, fixing plist on 6.0 (different makeinfo there)

Reported by:	krionmail
Approved by:	portmgr (krion)
Approved by:	maintainer
@
text
@d20 1
a20 1
NO_CDROM=	'old version, not worth the cost in real estate'
d24 1
a24 1
DEPRECATED=	"This port is no longer in use by anything in the ports collection.  Use a later release instead"
d42 2
a43 2
CONFIGURE_ARGS=	--with-gxx-include-dir=${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/2.8.1/include/g++
CONFIGURE_ARGS+= --program-suffix=28
@


1.55
log
@- Unbreak on 6.0
- Take maintainership

PR:		ports/85036
Submitted by:	Matthew Luckie <mjl@@luckie.org.nz>
Approved by:	portmgr (clement)
@
text
@d11 1
a11 1
PORTREVISION=	2
d48 1
a87 3
.for info in cpp gcc
	install-info ${PREFIX}/info/${info}.info ${PREFIX}/info/dir
.endfor
@


1.54
log
@Remove the Expiration as this builds on -CURRENT again.

Approved by:	krion
@
text
@d11 1
a11 1
PORTREVISION=	1
d16 1
a16 1
MAINTAINER=	ports@@FreeBSD.org
@


1.53
log
@Fix the build on 6-CURRENT.
@
text
@d24 1
a24 2
DEPRECATED=	"This port is no longer in use by anything in the ports collection and will be removed in the future.  Use a later release instead"
EXPIRATION_DATE=	2005-06-10
@


1.52
log
@Correct the syntax of the expiration date. This is what you get by just
reading the implementation, but not the docs...

Pointyhat kindly provided by:	krion
@
text
@a32 4
.if ${OSVERSION} >= 600000
IGNORE=		Does not compile
.endif

@


1.51
log
@Set expiration date to 20050610 and mark IGNORE on -current (it peeks into
private headers)

Requested by:	portmgr (krion)
@
text
@d25 1
a25 1
EXPIRATION_DATE=	20050610
@


1.50
log
@Fix build.  Ports that formerly attempted to work around problems
created by matherr() no longer need to do so.
@
text
@d25 1
d33 4
@


1.49
log
@Don't install compiler binaries without a version in the file name.
@
text
@d37 1
a37 1

d39 3
@


1.48
log
@DEPRECATE the unused, outdated gcc28 and gcc31 ports for removal at a future date.
@
text
@d40 1
d78 3
a80 2
	${LN} -f ${PREFIX}/bin/gcc ${PREFIX}/bin/gcc28
	${LN} -f ${PREFIX}/bin/g++ ${PREFIX}/bin/g++28
@


1.47
log
@BROKEN on alpha: does not compile
@
text
@d24 2
@


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

(Part 2)
@
text
@d26 4
@


1.45
log
@USE_REINPLACE need be defined only when REINPLACE_CMD is used.
@
text
@d11 1
@


1.44
log
@- ECHO -> ECHO_MSG

for some ports:
- ECHO -> ECHO_CMD
- pre-fetch -> pre-everything

PR:		ports/56800-56819
Submitted by:	KATO Tsuguru <tkato@@prontomail.com>
@
text
@a34 1
USE_REINPLACE=	yes
@


1.43
log
@Make portlint(1) happy by changing strip to ${STRIP_CMD}

Submitted by:	Oleg Karachevtsev <ok@@etrust.ru>
PR:		56998
@
text
@d39 2
a40 2
pre-fetch:
	@@${ECHO} "GCC ${DISTNAME:S/^gcc-//} for ${OPSYS} ${OSREL} ${PORTOBJFORMAT}"
@


1.42
log
@These older compilers don't support amd64, sparc64, and ia64.
@
text
@d69 1
a69 1
		do strip $$prog ; \
@


1.41
log
@Remove support for bounds checking (which used to be enabled by setting
WANT_BOUNDS_CHECKING), as Herman ten Brugge <hermantenbrugge@@home.nl>, the
author of these patches, removed them from their web-site, saying that they
contain bugs fixed in later versions and strongly suggested to use current
versions of GCC.

PR:		51738
@
text
@d18 1
@


1.40
log
@Simpler version of the "make this work on 5-CURRENT again" fix.
In this version we simply use the default emulation rather than explicitly
setting it [wrong].
@
text
@a14 5
.if defined(WANT_BOUNDS_CHECKING)
PATCH_SITES=	http://web.inter.nl.net/hcc/Haj.Ten.Brugge/
PATCHFILES=	bounds-checking-2.8.1-1.01.tar.gz
.endif

@


1.39
log
@Fix build on -CURRENT.

PR:		46899
Submitted by:	David Holm <david@@realityrift.com>
@
text
@a49 5
post-patch:
.if ${OSVERSION} >= 500000
	@@${REINPLACE_CMD} -e 's|elf_i386|elf_i386_fbsd|' ${WRKSRC}/config/i386/freebsd.h
.endif

@


1.38
log
@De-pkg-comment.
@
text
@d39 1
d49 5
@


1.37
log
@Use the full path to /sbin/sysctl

Noticed by:	'make index' in crontab
@
text
@d21 1
@


1.36
log
@o Rollback PORTCOMMENT modifications while this feature's implementation
  is better studied
o Turn PORTCOMMENT variable in Makefile back into pkg-comment files

Approved by:	kris (portmgr hat),
		portmgr, re (silence)
@
text
@d54 1
a54 1
	MAJ=`sysctl -n kern.osreldate | ${SED} -e '/.....$$/s///'` ; \
@


1.35
log
@Use PORTCOMMENT in the Makefile, and whack the pkg-comment.

Approved by:	pat
@
text
@a21 2
PORTCOMMENT=	GNU Compiler Collection 2.8

@


1.34
log
@The effort to maintain these for FreeBSD just isn't worth it with the lack
of reward.
@
text
@d22 2
@


1.33
log
@Set these ports' LATEST_LINK to gcc{27,28,295,30} to avoid conflict
with each other's package link name.

(Maintainer timeout; I think it's too trivial to bother him with.)
@
text
@d20 1
a20 1
MAINTAINER=	obrien@@FreeBSD.org
@


1.32
log
@Adjust(fix) the info processing.

Submitted by:	YAZAKI Hiroyuki <yazaki@@nn.iij4u.or.jp>
@
text
@d6 1
a6 1
# $FreeBSD: ports/lang/gcc28/Makefile,v 1.31 2000/11/10 17:37:13 obrien Exp $
d23 2
@


1.31
log
@Add in the bounds checking patch from XXX Haj Ten Brugge if
"WANT_BOUNDS_CHECKING" is defined.
@
text
@d6 1
a6 1
# $FreeBSD: ports/lang/gcc28/Makefile,v 1.30 2000/04/12 06:18:35 obrien Exp $
d76 3
@


1.30
log
@Convert to the PORTNAME - PORTVERSION syntax.
@
text
@d6 1
a6 1
# $FreeBSD: ports/lang/gcc28/Makefile,v 1.29 2000/03/22 00:26:55 obrien Exp $
d14 5
@


1.29
log
@Restore useless version required comments.
@
text
@a2 1
# Version required: 0.0
d6 1
a6 1
# $FreeBSD: ports/lang/gcc28/Makefile,v 1.28 2000/03/20 02:36:27 obrien Exp $
d9 2
a10 1
DISTNAME=	gcc-2.8.1
@


1.28
log
@Remove the "version required" line.
@
text
@d3 1
d7 1
a7 1
# $FreeBSD: ports/lang/gcc28/Makefile,v 1.27 1999/09/04 20:32:36 obrien Exp $
@


1.27
log
@portlint
@
text
@a2 1
# Version required:			2.8.1
d6 1
a6 1
# $FreeBSD: ports/lang/gcc28/Makefile,v 1.26 1999/08/28 01:57:29 mharo Exp $
@


1.26
log
@ln -> ${LN}
@
text
@d7 1
a7 1
# $FreeBSD: ports/lang/gcc28/Makefile,v 1.25 1999/08/25 06:34:36 obrien Exp $
d28 1
a28 1
CONFIGURE_ARGS=	--with-gxx-include-dir=${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/2.8.1/include/g++ 
@


1.25
log
@Change Id->FreeBSD.
@
text
@d7 1
a7 1
# $FreeBSD$
d66 2
a67 2
	ln -f ${PREFIX}/bin/gcc ${PREFIX}/bin/gcc28
	ln -f ${PREFIX}/bin/g++ ${PREFIX}/bin/g++28
@


1.24
log
@Don't waste CDROM real estate on a soon to be OBE version.
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.23 1999/03/31 10:42:20 obrien Exp $
@


1.23
log
@Switch over fully to "CONFIGURE_TARGET" and specify a unique one so I can
tell if people built Gcc28 from the ports collection in a normal manner when
I get bug reports.
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.22 1999/03/08 07:28:29 asami Exp $
d16 2
@


1.22
log
@Fix to make ports work with bsd.port.mk rev. 1.306.
${MACHINE_ARCH}--freebsd${OSREL} is now passed to CONFIGURE_ARGS if
GNU_CONFIGURE is defined.  Take the target out of CONFIGURE_ARGS of
some ports that added it explicitly; define it as
${MACHINE_ARCH}--freebsd if the port doesn't like the ${OSREL} part;
define it as something else (such as ${MACHINE_ARCH}--freebsdelf if
the port requires that; define it as an empty string if the port
doesn't like it at all.

The last might be a sign that a GNU_CONFIGURE port actually doesn't
use GNU's version of configure at all; but I don't have time to go
look at them all, we'll fix them as time goes on.

At least we've got much fewer "-unknown-"s in the tree as the result. :)
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.21 1999/02/09 18:25:42 obrien Exp $
d20 1
a20 1
GNUHOST=	${ARCH}-unknown-freebsd${OSREL}
d22 1
a22 1
GNUHOST=	${ARCH}-unknown-freebsdaout${OSREL}
d25 2
a26 5
PLIST_SUB=	GNUHOST=${GNUHOST}
CONFIGURE_ARGS=	--with-gxx-include-dir=${PREFIX}/lib/gcc-lib/${GNUHOST}/2.8.1/include/g++ 
.if ${PORTOBJFORMAT} == "elf"
CONFIGURE_ARGS+=	--host=${GNUHOST}
.endif
a27 1
CONFIGURE_TARGET=	# empty
d57 5
a61 5
	${PREFIX}/bin/${GNUHOST}-gcc \
	${PREFIX}/lib/gcc-lib/${GNUHOST}/2.8.1/cc1 \
	${PREFIX}/lib/gcc-lib/${GNUHOST}/2.8.1/cc1obj \
	${PREFIX}/lib/gcc-lib/${GNUHOST}/2.8.1/cc1plus \
	${PREFIX}/lib/gcc-lib/${GNUHOST}/2.8.1/cpp ; \
@


1.21
log
@GNUHOST is now "i386-unknown-freebsd3" for ELF machines and
"i386-unknown-freebsdaout3" for a.out machines.
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.20 1999/01/27 07:41:20 fenner Exp $
d31 1
@


1.20
log
@${MASTER_SITE_GNU} got rearranged in December; let's catch up.
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.19 1998/11/13 07:32:21 obrien Exp $
d20 1
a20 1
GNUHOST=	${ARCH}-unknown-freebsdelf${OSREL}
d22 1
a22 1
GNUHOST=	${ARCH}-unknown-freebsd${OSREL}
d38 4
d43 4
d49 3
d54 1
a54 4
		>freebsd.h ; \
	${MV} freebsd-elf.h freebsd-elf.h.in ; \
	${SED} -e "s:__FreeBSD__=[0-9]*:__FreeBSD__=$${MAJ}:" freebsd-elf.h.in \
		>freebsd-elf.h)
@


1.19
log
@i386 => ${ARCH}

Requested by:   imp
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.18 1998/11/11 05:37:24 asami Exp $
d13 1
@


1.18
log
@Use bsd.port.{pre,post}.mk.  Either use them to avoid having to define
something already there (PORTOBJFORMAT, OSVERSION) or move stuff from after
.include <bsd.port.mk> to before.

(This is not by any means the complete list but just the ones I've noticed
recently.)
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.17 1998/11/10 07:33:33 obrien Exp $
d19 1
a19 1
GNUHOST=	i386-unknown-freebsdelf${OSREL}
d21 1
a21 1
GNUHOST=	i386-unknown-freebsd${OSREL}
d38 1
a38 1
	@@(cd ${WRKSRC}/config/i386/ ; \
@


1.17
log
@Pass the GNUARCH value to `configure' to force the detection of an ELF system.
(I still intend to fix the bug in the script that misses an ELF system for
an a.out one)

Current fix submitted by:	"Alec Wolman" <wolman@@cs.washington.edu>
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.16 1998/10/08 01:19:19 asami Exp $
d16 3
a18 2
ARE_WE_ELF!=	test -x /usr/bin/objformat && /usr/bin/objformat || echo aout
.if ${ARE_WE_ELF} == "elf"
d26 1
a26 1
.if ${ARE_WE_ELF} == "elf"
d35 1
a35 1
	@@${ECHO} "GCC ${DISTNAME:S/^gcc-//} for ${OPSYS} ${OSREL} ${ARE_WE_ELF}"
d64 1
a64 1
.include <bsd.port.mk>
@


1.16
log
@GNUHOST was defined twice.  Also, take out the ELF cruft, a simple
BROKEN_ELF will do. :)
@
text
@d3 1
a3 1
# Version required:			2.8.0
d7 1
a7 1
# $Id: Makefile,v 1.15 1998/09/27 04:25:56 obrien Exp $
d16 7
a22 1
BROKEN_ELF=	"/usr/lib/aout/crt0.o: file not recognized: File format not recognized"
d24 4
a27 2
GNUHOST=	i386-unknown-freebsd${OSREL}
CONFIGURE_ARGS=	--with-gxx-include-dir=${PREFIX}/lib/gcc-lib/${GNUHOST}/2.8.1/include/g++
d34 1
a34 1
	@@${ECHO} "GCC ${DISTNAME:S/^gcc-//} for ${OPSYS} ${OSREL}"
@


1.15
log
@Broken on ELF boxes.
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.14 1998/08/18 03:45:02 obrien Exp $
d16 1
a55 7

.if ${PORTOBJFORMAT} == "elf"
BROKEN=		"/usr/lib/aout/crt0.o: file not recognized: File format not recognized"
GNUHOST=	i386-unknown-freebsdelf
.else
GNUHOST=	i386-unknown-freebsd
.endif
@


1.14
log
@Update to use PLIST_SUB
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.13 1998/08/13 17:55:39 obrien Exp $
d55 7
@


1.13
log
@* Minor bug fixes from OpenBSD (and some stuff to ease diff'ing in the future)
* Some initial support for FreeBSD-alpha
* Add some optimizations required by g77, which still might be of some use
  to adventuring C/C++ programmers.

Obtained from:	OpenBSD (parts)
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.12 1998/08/07 22:49:30 asami Exp $
d16 1
a16 1
PLIST=          ${WRKDIR}/PLIST.fixedup
a35 4

pre-install:
	@@${SED} -e 's:%GNUHOST%:${GNUHOST}:' ${PKGDIR}/PLIST \
		> ${PLIST}
@


1.12
log
@Make these ports (TenDRA, egcs, gcc28, glibstdc++28 and guavac, all
under lang) use ${OSREL} as defined in bsd.port.mk rev 1.281 and
1.227.2.43.

Note gcc28 is hopelessly broken, it uses an undefined variable
${GNUOSREL} and thus has an empty string wherever ${OSREL} should
be.  However, it's consistent with its own PLIST at the current state
so I haven't "fixed" it yet.
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.11 1998/06/30 21:10:21 jdp Exp $
d27 1
a27 1
post-patch:
@


1.11
log
@Fix this port so that it can find crt0.o in /usr/lib/aout on recent
-current systems.

Fix the definition of the preprocessor symbol __FreeBSD__.  It had
been defined as "2=3".

Implement support for weak symbols.  This solves the "___error"
undefined problem on -current systems.

Default to -fsjlj-exceptions even for C programs.  This is needed
because a few modules in libgcc are built with -fexceptions turned
on, and the default style of exception support causes croakage.

I tried a make buildworld on a recent -current system by adding the
following to /etc/make.conf:

CC=/usr/local/bin/gcc28 -B/usr/local/lib/gcc-lib/i386-unknown-freebsd3.0/2.8.1/
CXX=/usr/local/bin/g++28 -B/usr/local/lib/gcc-lib/i386-unknown-freebsd3.0/2.8.1/

It got pretty far along before dying.  The death occurred when building
our old native libstdc++, almost certainly because of header file
incompatibilities.

Another obstacle for make world is that this port doesn't currently
build a PIC version of libgcc (libgcc_pic.a).
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.10 1998/06/10 20:16:08 asami Exp $
a15 2
GNUOSREL!=	uname -r | sed -e 's/[-(].*//'

d17 1
a17 1
GNUHOST=	i386-unknown-freebsd${GNUOSREL}
d25 1
a25 1
	@@${ECHO} "GCC ${DISTNAME:S/^gcc-//} for ${OSNAME} ${GNUOSREL}"
@


1.10
log
@Unmark it broken, it worked when I emptied /usr/local.
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.9 1998/06/06 04:42:31 asami Exp $
d33 1
a33 1
	${SED} -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd.h.in \
d36 1
a36 1
	${SED} -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd-elf.h.in \
@


1.9
log
@for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf _floatdisf _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi _fixtfdi _fixunstfdi _floatditf __gcc_bcmp _varargs __dummy _eprintf _op_new _op_vnew _new_handler _op_delete _op_vdel _bb _shtab _clear_cache _trampoline __main _exit _ctors _eh _eh_compat _pure; \
do \
  echo ${name}; \
  ./xgcc -B./ -O2   -DIN_GCC    -g -I./include   -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -fexceptions -I. -I. -I./config -c -DL${name} \
      ./libgcc2.c -o ${name}.o; \
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  ar rc tmplibgcc2.a ${name}.o; \
  rm -f ${name}.o; \
done
_muldi3
 :
_fixunsdfsi
In file included from include/limits.h:116,
                 from include/syslimits.h:7,
                 from include/limits.h:11,
                 from ./libgcc2.c:1085:
/usr/local/lib/gcc-lib/i386-unknown-freebsd2.2.6/2.8.1/include/limits.h:212: unbalanced `#endif'
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.8 1998/04/12 13:16:25 obrien Exp $
a14 2

BROKEN=		build
@


1.8
log
@Bump comment from 2.8 to 2.8.1.
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.7 1998/03/11 11:49:09 obrien Exp $
d15 2
@


1.7
log
@Define __FreeBSD__ to be the major version (rather than empty).

Add -fsjlj-exceptions as the default.
Requested by:	John Fiber
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.6 1998/03/10 06:23:31 obrien Exp $
d27 1
a27 1
	@@${ECHO} "GCC 2.8 for ${OSNAME} ${GNUOSREL}"
@


1.6
log
@Upgrade to 2.8.1
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.4 1998/03/06 05:54:19 obrien Exp $
d28 10
@


1.5
log
@Fix missing brace in the pre-install target.
@
text
@d10 1
a10 1
DISTNAME=	gcc-2.8.0
d20 1
a20 1
CONFIGURE_ARGS=	--with-gxx-include-dir=${PREFIX}/lib/gcc-lib/${GNUHOST}/2.8.0/include/g++
d38 4
a41 4
	${PREFIX}/lib/gcc-lib/${GNUHOST}/2.8.0/cc1 \
	${PREFIX}/lib/gcc-lib/${GNUHOST}/2.8.0/cc1obj \
	${PREFIX}/lib/gcc-lib/${GNUHOST}/2.8.0/cc1plus \
	${PREFIX}/lib/gcc-lib/${GNUHOST}/2.8.0/cpp ; \
@


1.4
log
@Abstract this more to make building on non-x86 easiler.
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.3 1998/03/05 03:29:58 obrien Exp $
d31 1
a31 1
		> ${PLIST
@


1.3
log
@Latest install hacks for GCC 2.8.
The changes were done to closely match the upcoming libstdc++ port I will
commit shortly.
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.2 1998/03/04 09:19:21 obrien Exp $
d30 1
a30 1
	@@${SED} -e 's:%GNUOSREL%:${GNUOSREL}:' ${PKGDIR}/PLIST \
@


1.2
log
@Build the gcc28 we install with itself rather than /usr/bin/cc.
Renamed manpages to <binanary>28.1.gz to reduce namespace conflicts.
Added bin/gcc28 and bin/g++28.
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.1.1.1 1998/01/16 10:15:13 obrien Exp $
d16 5
a22 1
CONFIGURE_ARGS=	i386-unknown-freebsd
d26 7
d37 5
a41 5
	${PREFIX}/bin/i386-unknown-freebsd-gcc \
	${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/2.8.0/cc1 \
	${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/2.8.0/cc1obj \
	${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/2.8.0/cc1plus \
	${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/2.8.0/cpp ; \
d46 3
a48 3
	${MV} ${PREFIX}/man/man1/cccp.1 ${PREFIX}/man/man1/cccp28.1
	${MV} ${PREFIX}/man/man1/g++.1 ${PREFIX}/man/man1/g++28.1
	${MV} ${PREFIX}/man/man1/gcc.1 ${PREFIX}/man/man1/gcc28.1
@


1.1
log
@Initial revision
@
text
@d7 1
a7 1
# $Id$
d19 2
a20 1
MAN1=		cccp.1 g++.1 gcc.1
d33 5
@


1.1.1.1
log
@Gcc/G++ version 2.8.0.  Includes greatly improved C++ compiler and latest
SGI reference STL.
@
text
@@
