head	1.12;
access;
symbols
	RELEASE_4_7_0:1.11
	RELEASE_4_6_2:1.11
	RELEASE_4_6_1:1.11
	RELEASE_4_6_0:1.11
	RELEASE_5_0_DP1:1.11
	RELEASE_4_5_0:1.11
	RELEASE_4_4_0:1.10
	RELEASE_4_3_0:1.10
	RELEASE_4_2_0:1.10
	RELEASE_4_1_1:1.10
	RELEASE_4_1_0:1.10
	RELEASE_3_5_0:1.10
	RELEASE_4_0_0:1.6
	RELEASE_3_4_0:1.5
	RELEASE_3_3_0:1.5
	RELEASE_3_2_0:1.3
	RELEASE_3_1_0:1.3
	RELEASE_2_2_8:1.2
	RELEASE_3_0_0:1.1.1.1
	bc_gcc_2_7_2_bc_1_0_2:1.1.1.1
	OBRIEN:1.1.1;
locks; strict;
comment	@# @;


1.12
date	2002.10.13.04.28.47;	author kris;	state dead;
branches;
next	1.11;

1.11
date	2001.12.15.21.39.46;	author steve;	state Exp;
branches;
next	1.10;

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

1.9
date	2000.04.12.06.17.51;	author obrien;	state Exp;
branches;
next	1.8;

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

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

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

1.5
date	99.08.28.02.41.53;	author mharo;	state Exp;
branches;
next	1.4;

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

1.3
date	99.01.27.07.41.19;	author fenner;	state Exp;
branches;
next	1.2;

1.2
date	98.11.11.05.37.23;	author asami;	state Exp;
branches;
next	1.1;

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

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


desc
@@


1.12
log
@This port has been broken for ELF systems since rev 1.1 (4 years, 2 months
ago).  Remove it.
@
text
@# ex:ts=8
# Ports collection makefile for:  gcc-2.7.2 - Bounds checking gcc
# Date created:			  Sun June 08, 1997
# Whom:				  David O'Brien (obrien@@FreeBSD.org)
#
# $FreeBSD: ports/lang/bc-gcc/Makefile,v 1.11 2001/12/15 21:39:46 steve Exp $
#

PORTNAME=	bc-gcc
PORTVERSION=	2.7.2p1.0.2
CATEGORIES=	lang
MASTER_SITES=	${MASTER_SITE_GNU}  \
		ftp://dse.doc.ic.ac.uk/pub/misc/bcc/  \
		ftp://ftp.cs.yale.edu/WWW/pub/bradley/bcc/  \
		ftp://ftp.cs.columbia.edu/archives/gnu/bcc/
MASTER_SITE_SUBDIR=	gcc
DISTNAME=	gcc-2.7.2
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} documentation-as-8x11-ps.tgz

PATCH_SITES=	ftp://dse.doc.ic.ac.uk/pub/misc/bcc/  \
		ftp://ftp.cs.yale.edu/WWW/pub/bradley/bcc/  \
		ftp://ftp.cs.columbia.edu/archives/gnu/bcc/
PATCHFILES=	bounds-checking-2.7.2-1.02.tgz
PATCH_DIST_STRIP=	-p1 -N -E

MAINTAINER=	obrien@@FreeBSD.org

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 300000
BROKEN=		"can't find /usr/lib/aout/crt0.o"
.endif

EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX} ${PATCHFILES}
USE_BISON=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-gnu-as --with-gnu-ld
ALL_TARGET=	bootstrap LANGUAGES=c
INSTALL_TARGET=	install LANGUAGES=c
GNUHOST=	i386-unknown-freebsd${OSREL}
PLIST_SUB=	GNUHOST=${GNUHOST}
MAN1=		bc-gcc.1 bc-cccp.1

pre-patch:
	cd ${WRKSRC} ; ${PATCH} -p1 < bounds-checking.diff

pre-configure:
	@@( cd ${WRKSRC}/config/i386/ ; \
	MAJ=`sysctl -n kern.osreldate | ${SED} -e '/.....$$/s///'` ; \
	${MV} freebsd.h freebsd.h.in ; \
	${SED} -e "s:__FreeBSD__=[0-9]*:__FreeBSD__=$${MAJ}:" freebsd.h.in \
		>freebsd.h )
	cd ${WRKSRC} ; ./configure ; make distclean

post-install:
	@@${MV} ${PREFIX}/bin/gcc ${PREFIX}/bin/bc-gcc
	@@${MV} ${PREFIX}/bin/${GNUHOST}-gcc ${PREFIX}/bin/${GNUHOST}-bc-gcc
	@@${MV} ${PREFIX}/man/man1/gcc.1 ${PREFIX}/man/man1/bc-gcc.1
	@@${MV} ${PREFIX}/man/man1/cccp.1 ${PREFIX}/man/man1/bc-cccp.1
	@@( for prog in ${PREFIX}/bin/bc-gcc ${PREFIX}/bin/${GNUHOST}-bc-gcc ; \
		do strip $$prog ; \
		done )

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


1.11
log
@Add USE_BISON=yes because this port requires bison to build.

Approved by:	maintainer
@
text
@d6 1
a6 1
# $FreeBSD$
@


1.10
log
@Put back DISTNAME.
@
text
@d6 1
a6 1
# $FreeBSD: ports/lang/bc-gcc/Makefile,v 1.9 2000/04/12 06:17:51 obrien Exp $
d35 1
@


1.9
log
@Convert to the PORTNAME - PORTVERSION syntax.
@
text
@d6 1
a6 1
# $FreeBSD: ports/lang/bc-gcc/Makefile,v 1.8 2000/03/22 00:26:37 obrien Exp $
d17 1
@


1.8
log
@Restore useless version required comments.
@
text
@a2 1
# Version required: 0.0
d6 1
a6 1
# $FreeBSD: ports/lang/bc-gcc/Makefile,v 1.7 2000/03/20 02:36:04 obrien Exp $
d9 2
a10 2
DISTNAME=	gcc-2.7.2
PKGNAME=	bc-gcc-2.7.2p1.0.2
@


1.7
log
@Remove the "version required" line.
@
text
@d3 1
d7 1
a7 1
# $FreeBSD: ports/lang/bc-gcc/Makefile,v 1.6 2000/02/13 03:23:03 obrien Exp $
@


1.6
log
@Style nits in the ports I maintain.
@
text
@a2 1
# Version required:		  gcc-2.7.2 + Bounds checking patches
d6 1
a6 1
# $FreeBSD: ports/lang/bc-gcc/Makefile,v 1.5 1999/08/28 02:41:53 mharo Exp $
@


1.5
log
@expr -> ${EXPR}
mv   -> ${MV}
rm   -> ${RM}
tr   -> ${TR}
@
text
@d3 3
a5 3
# Version required:	gcc-2.7.2 + Bounds checking patches
# Date created:		Sun June 08, 1997
# Whom:			David O'Brien (obrien@@FreeBSD.org)
d7 1
a7 1
# $FreeBSD: ports/lang/bc-gcc/Makefile,v 1.4 1999/08/25 06:34:16 obrien Exp $
@


1.4
log
@Change Id->FreeBSD.
@
text
@d7 1
a7 1
# $FreeBSD$
d55 4
a58 4
	@@mv ${PREFIX}/bin/gcc ${PREFIX}/bin/bc-gcc
	@@mv ${PREFIX}/bin/${GNUHOST}-gcc ${PREFIX}/bin/${GNUHOST}-bc-gcc
	@@mv ${PREFIX}/man/man1/gcc.1 ${PREFIX}/man/man1/bc-gcc.1
	@@mv ${PREFIX}/man/man1/cccp.1 ${PREFIX}/man/man1/bc-cccp.1
@


1.3
log
@${MASTER_SITE_GNU} got rearranged in December; let's catch up.
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.2 1998/11/11 05:37:23 asami Exp $
@


1.2
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.1.1.1 1998/08/26 09:41:56 obrien Exp $
d17 1
@


1.1
log
@Initial revision
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.3 1997/06/08 12:58:59 andreas Exp $
d27 2
a28 1
OSVERSION!=	sysctl -n kern.osreldate
d62 1
a62 1
.include <bsd.port.mk>
@


1.1.1.1
log
@gcc with bounds checking support for pointers and memory
@
text
@@
