head	1.19;
access;
symbols
	RELEASE_5_4_0:1.16
	RELEASE_4_11_0:1.16
	RELEASE_5_3_0:1.15
	RELEASE_4_10_0:1.15
	RELEASE_5_2_1:1.12
	RELEASE_5_2_0:1.12
	RELEASE_4_9_0:1.10
	RELEASE_5_1_0:1.10
	RELEASE_4_8_0:1.8
	RELEASE_5_0_0:1.6
	RELEASE_4_7_0:1.3
	RELEASE_4_6_2:1.3
	RELEASE_4_6_1:1.3
	RELEASE_4_6_0:1.3
	RELEASE_5_0_DP1:1.3
	RELEASE_4_5_0:1.3
	RELEASE_4_4_0:1.2
	RELEASE_4_3_0:1.2
	RELEASE_4_2_0:1.2
	RELEASE_4_1_1:1.2
	RELEASE_4_1_0:1.2
	RELEASE_3_5_0:1.2
	gcc_2_7_2_3_port:1.1.1.1
	OBRIEN:1.1.1;
locks; strict;
comment	@# @;


1.19
date	2005.07.19.02.51.40;	author linimon;	state dead;
branches;
next	1.18;

1.18
date	2005.04.10.18.32.06;	author netchild;	state Exp;
branches;
next	1.17;

1.17
date	2005.04.10.14.40.57;	author netchild;	state Exp;
branches;
next	1.16;

1.16
date	2005.01.02.01.00.40;	author kris;	state Exp;
branches;
next	1.15;

1.15
date	2004.04.10.17.26.41;	author trevor;	state Exp;
branches;
next	1.14;

1.14
date	2004.03.14.03.18.56;	author kris;	state Exp;
branches;
next	1.13;

1.13
date	2004.02.04.05.21.34;	author marcus;	state Exp;
branches;
next	1.12;

1.12
date	2003.09.27.00.50.07;	author edwin;	state Exp;
branches;
next	1.11;

1.11
date	2003.09.24.09.36.54;	author osa;	state Exp;
branches;
next	1.10;

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

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

1.8
date	2003.02.20.18.37.57;	author knu;	state Exp;
branches;
next	1.7;

1.7
date	2003.01.30.08.23.53;	author kris;	state Exp;
branches;
next	1.6;

1.6
date	2002.11.07.03.10.53;	author adamw;	state Exp;
branches;
next	1.5;

1.5
date	2002.11.06.22.45.48;	author adamw;	state Exp;
branches;
next	1.4;

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

1.3
date	2002.01.19.19.15.10;	author knu;	state Exp;
branches;
next	1.2;

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

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

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


desc
@@


1.19
log
@As previously announced, remove gcc27.  It is no longer used by anything
in the tree.  If absolutely necessary for compatibility with old code,
use lang/gcc28 or preferably lang/gcc295.
@
text
@# ex:ts=8
# Ports collection makefile for:	gcc
# Date created:				17 Jan 1998
# Whom:					David O'Brien <obrien@@NUXI.com>
#
# $FreeBSD: ports/lang/gcc27/Makefile,v 1.18 2005/04/10 18:32:06 netchild Exp $
#

PORTNAME=	gcc
PORTVERSION=	2.7.2.3
PORTREVISION=	1
CATEGORIES=	lang
MASTER_SITES=	${MASTER_SITE_GNU}  \
		ftp://ftp.gnu.org/gnu/libg++/  \
		ftp://ftp.duke.edu/pub/gnu/libg++/  \
		ftp://ftp.net.ohio-state.edu/disk/c/gnu/gnu-0.2/src/
MASTER_SITE_SUBDIR=	gcc
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} libg++-2.7.2${EXTRACT_SUFX}

MAINTAINER=	ports@@FreeBSD.org
COMMENT=	Base C/C++ compiler from FreeBSD 2.2.x & 3.x (for your old code)

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

ONLY_FOR_ARCHS=	i386
NO_CDROM=	'old version, not worth the cost in real estate'

LATEST_LINK=	gcc27

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 500113
BROKEN=		"Does not compile"
.endif

GCC_VER=	2.7.2.3
CONFIGURE_TARGET=	${ARCH}-portbld-freebsd${OSREL}
PLIST_SUB=	GNUHOST=${CONFIGURE_TARGET} GCC_VER=${GCC_VER}
CONFIGURE_ARGS=	--with-gnu-as --with-gnu-ld --with-stabs  \
		--with-gxx-include-dir=${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_VER}/include/g++
GNU_CONFIGURE=	yes
USE_GMAKE=	yes
ALL_TARGET=	bootstrap
MAN1=		cccp27.1 g++27.1 gcc27.1

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

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

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

XGCC=	"${WRKSRC}/stage2/xgcc -B${WRKSRC}/stage2/"
post-build:
	cd ${WRKDIR}/libg++-2.7.2 ; env CC=${XGCC} CXX=${XGCC} ./configure ${CONFIGURE_ARGS}
	cd ${WRKDIR}/libg++-2.7.2 ; ${SETENV} ${MAKE_ENV} ${GMAKE} CC=${XGCC} CXX=${XGCC}

post-install:
	cd ${WRKDIR}/libg++-2.7.2 ; ${SETENV} ${MAKE_ENV} ${GMAKE} CC=${XGCC} CXX=${XGCC} install
	@@${RM} -f ${PREFIX}/bin/c++ \
		${PREFIX}/bin/genclass ${PREFIX}/bin/gperf  \
		${PREFIX}/bin/protoize ${PREFIX}/bin/unprotoize  \
		${PREFIX}/man/man1/gperf.1 ${PREFIX}/man/man1/configure.1
	@@${RM} -rf ${PREFIX}/bin/c++ ${PREFIX}/${CONFIGURE_TARGET}
	@@(for prog in ${PREFIX}/bin/gcc ${PREFIX}/bin/g++ \
		${PREFIX}/bin/${CONFIGURE_TARGET}-gcc \
		${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_VER}/cc1 \
		${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_VER}/cc1obj \
		${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_VER}/cc1plus \
		${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_VER}/cpp ; \
	    do ${STRIP_CMD} $$prog ; \
	done)
	@@${MV} -f ${PREFIX}/bin/gcc ${PREFIX}/bin/gcc27
	@@${MV} -f ${PREFIX}/bin/g++ ${PREFIX}/bin/g++27
	@@${MV} ${PREFIX}/man/man1/cccp.1 ${PREFIX}/man/man1/cccp27.1
	@@${MV} ${PREFIX}/man/man1/g++.1 ${PREFIX}/man/man1/g++27.1
	@@${MV} ${PREFIX}/man/man1/gcc.1 ${PREFIX}/man/man1/gcc27.1
	@@${RM} -rf ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_VER}/g++-include
	@@${MV}  ${PREFIX}/lib/libg++.a ${PREFIX}/lib/libiberty.a  \
		${PREFIX}/lib/libstdc++.a ${PREFIX}/lib/g++-include  \
			${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_VER}

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


1.18
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
@d6 1
a6 1
# $FreeBSD$
@


1.17
log
@Set expiration date to 20050610.

Requested by:	portmgr (krion)
@
text
@d24 1
a24 1
EXPIRATION_DATE=	20050610
@


1.16
log
@Does not compile on alpha.  Since it's unlikely anyone is going to fix
these old compilers, drop alpha from the supported arch list.  Flip over
from NOT_FOR_ARCHS to ONLY_FOR_ARCHS where used, since these ports will
not support any future architectures FreeBSD runs on.

Approved by:	portmgr (self)
@
text
@d24 1
@


1.15
log
@Tidy up whitespace.
@
text
@d25 1
a25 1
NOT_FOR_ARCHS=	amd64 sparc64 ia64
@


1.14
log
@DEPRECATE the unused, outdated gcc27 port for removal at a future date.
@
text
@d33 1
a33 1
BROKEN=         "Does not compile"
@


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

(Part 2)
@
text
@d23 2
@


1.12
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
@d11 1
@


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

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


1.10
log
@BROKEN on 5.1: does not compile
@
text
@d72 1
a72 1
	    do strip $$prog ; \
@


1.9
log
@These older compilers don't support amd64, sparc64, and ia64.
@
text
@d29 4
@


1.8
log
@De-pkg-comment.
@
text
@d22 1
@


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

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


1.6
log
@Fix PORTCOMMENTs that were killing INDEX builds.

105 pointy hats to:	me
Approved by:		pat
@
text
@d44 1
a44 1
	@@(MAJ=`sysctl -n kern.osreldate | ${SED} -e '/.....$$/s///'` ; \
@


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

Approved by:	pat
@
text
@a20 2
PORTCOMMENT=	Base C/C++ compiler from FreeBSD 2.2.x & 3.x (for your old code)

@


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


1.3
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
@d19 1
a19 1
MAINTAINER=	obrien@@FreeBSD.org
@


1.2
log
@Convert to the PORTNAME - PORTVERSION syntax.
@
text
@d6 1
a6 1
# $FreeBSD: ports/lang/gcc27/Makefile,v 1.1.1.1 2000/03/22 19:10:40 obrien Exp $
d22 2
@


1.1
log
@Initial revision
@
text
@a2 1
# Version required:			2.8.1
d6 1
a6 1
# $FreeBSD$
d9 2
a10 1
DISTNAME=	gcc-2.7.2.3
@


1.1.1.1
log
@Port of the GCC 2.7.2.3 that was the base compiler in FreeBSD 2.2.x thru 3.x.
@
text
@@
