head	1.99;
access;
symbols
	pkgsrc-2015Q1:1.98.0.6
	pkgsrc-2015Q1-base:1.98
	pkgsrc-2014Q4:1.98.0.4
	pkgsrc-2014Q4-base:1.98
	pkgsrc-2014Q3:1.98.0.2
	pkgsrc-2014Q3-base:1.98
	pkgsrc-2014Q2:1.97.0.10
	pkgsrc-2014Q2-base:1.97
	pkgsrc-2014Q1:1.97.0.8
	pkgsrc-2014Q1-base:1.97
	pkgsrc-2013Q4:1.97.0.6
	pkgsrc-2013Q4-base:1.97
	pkgsrc-2013Q3:1.97.0.4
	pkgsrc-2013Q3-base:1.97
	pkgsrc-2013Q2:1.97.0.2
	pkgsrc-2013Q2-base:1.97
	pkgsrc-2013Q1:1.96.0.4
	pkgsrc-2013Q1-base:1.96
	pkgsrc-2012Q4:1.96.0.2
	pkgsrc-2012Q4-base:1.96
	pkgsrc-2012Q3:1.95.0.10
	pkgsrc-2012Q3-base:1.95
	pkgsrc-2012Q2:1.95.0.8
	pkgsrc-2012Q2-base:1.95
	pkgsrc-2012Q1:1.95.0.6
	pkgsrc-2012Q1-base:1.95
	pkgsrc-2011Q4:1.95.0.4
	pkgsrc-2011Q4-base:1.95
	pkgsrc-2011Q3:1.95.0.2
	pkgsrc-2011Q3-base:1.95
	pkgsrc-2011Q2:1.94.0.8
	pkgsrc-2011Q2-base:1.94
	pkgsrc-2011Q1:1.94.0.6
	pkgsrc-2011Q1-base:1.94
	pkgsrc-2010Q4:1.94.0.4
	pkgsrc-2010Q4-base:1.94
	pkgsrc-2010Q3:1.94.0.2
	pkgsrc-2010Q3-base:1.94
	pkgsrc-2010Q2:1.93.0.8
	pkgsrc-2010Q2-base:1.93
	pkgsrc-2010Q1:1.93.0.6
	pkgsrc-2010Q1-base:1.93
	pkgsrc-2009Q4:1.93.0.4
	pkgsrc-2009Q4-base:1.93
	pkgsrc-2009Q3:1.93.0.2
	pkgsrc-2009Q3-base:1.93
	pkgsrc-2009Q2:1.92.0.2
	pkgsrc-2009Q2-base:1.92
	pkgsrc-2009Q1:1.91.0.14
	pkgsrc-2009Q1-base:1.91
	pkgsrc-2008Q4:1.91.0.12
	pkgsrc-2008Q4-base:1.91
	pkgsrc-2008Q3:1.91.0.10
	pkgsrc-2008Q3-base:1.91
	cube-native-xorg:1.91.0.8
	cube-native-xorg-base:1.91
	pkgsrc-2008Q2:1.91.0.6
	pkgsrc-2008Q2-base:1.91
	cwrapper:1.91.0.4
	pkgsrc-2008Q1:1.91.0.2
	pkgsrc-2008Q1-base:1.91
	pkgsrc-2007Q4:1.90.0.6
	pkgsrc-2007Q4-base:1.90
	pkgsrc-2007Q3:1.90.0.4
	pkgsrc-2007Q3-base:1.90
	pkgsrc-2007Q2:1.90.0.2
	pkgsrc-2007Q2-base:1.90
	pkgsrc-2007Q1:1.89.0.6
	pkgsrc-2007Q1-base:1.89
	pkgsrc-2006Q4:1.89.0.4
	pkgsrc-2006Q4-base:1.89
	pkgsrc-2006Q3:1.89.0.2
	pkgsrc-2006Q3-base:1.89
	pkgsrc-2006Q2:1.88.0.4
	pkgsrc-2006Q2-base:1.88
	pkgsrc-2006Q1:1.88.0.2
	pkgsrc-2006Q1-base:1.88
	pkgsrc-2005Q4:1.84.0.2
	pkgsrc-2005Q4-base:1.84
	pkgsrc-2005Q3:1.81.0.2
	pkgsrc-2005Q3-base:1.81
	pkgsrc-2005Q2:1.80.0.2
	pkgsrc-2005Q2-base:1.80
	pkgsrc-2005Q1:1.78.0.4
	pkgsrc-2005Q1-base:1.78
	pkgsrc-2004Q4:1.78.0.2
	pkgsrc-2004Q4-base:1.78
	pkgsrc-2004Q3:1.77.0.4
	pkgsrc-2004Q3-base:1.77
	pkgsrc-2004Q2:1.77.0.2
	pkgsrc-2004Q2-base:1.77
	pkgsrc-2004Q1:1.76.0.2
	pkgsrc-2004Q1-base:1.76
	pkgsrc-2003Q4:1.72.0.2
	pkgsrc-2003Q4-base:1.72
	netbsd-1-6-1:1.53.0.2
	netbsd-1-6-1-base:1.53
	netbsd-1-6:1.44.0.4
	netbsd-1-6-RELEASE-base:1.44
	pkgviews:1.42.0.2
	pkgviews-base:1.42
	buildlink2:1.41.0.2
	buildlink2-base:1.42
	netbsd-1-5-PATCH003:1.41
	netbsd-1-5-PATCH001:1.23
	netbsd-1-5-RELEASE:1.8
	netbsd-1-4-PATCH003:1.8
	pkgsrc-base:1.1.1.1
	TNF:1.1.1;
locks; strict;
comment	@# @;


1.99
date	2015.04.25.10.33.29;	author wiz;	state dead;
branches;
next	1.98;
commitid	CG2XaBpeRQKMwXiy;

1.98
date	2014.07.27.04.04.44;	author dholland;	state Exp;
branches;
next	1.97;
commitid	4Mc3GN0sqED17YJx;

1.97
date	2013.04.06.20.27.22;	author rodent;	state Exp;
branches;
next	1.96;

1.96
date	2012.10.02.20.11.40;	author asau;	state Exp;
branches;
next	1.95;

1.95
date	2011.07.15.08.47.22;	author asau;	state Exp;
branches;
next	1.94;

1.94
date	2010.10.12.22.57.55;	author joerg;	state Exp;
branches;
next	1.93;

1.93
date	2009.09.20.14.41.52;	author schwarz;	state Exp;
branches;
next	1.92;

1.92
date	2009.06.14.22.58.01;	author joerg;	state Exp;
branches;
next	1.91;

1.91
date	2008.02.01.07.50.01;	author tnn;	state Exp;
branches;
next	1.90;

1.90
date	2007.06.12.20.10.17;	author joerg;	state Exp;
branches;
next	1.89;

1.89
date	2006.09.27.15.46.11;	author abs;	state Exp;
branches;
next	1.88;

1.88
date	2006.03.20.18.15.38;	author jlam;	state Exp;
branches;
next	1.87;

1.87
date	2006.03.04.21.29.54;	author jlam;	state Exp;
branches;
next	1.86;

1.86
date	2006.02.05.23.09.44;	author joerg;	state Exp;
branches;
next	1.85;

1.85
date	2005.12.29.06.21.45;	author jlam;	state Exp;
branches;
next	1.84;

1.84
date	2005.12.05.23.55.09;	author rillig;	state Exp;
branches;
next	1.83;

1.83
date	2005.12.05.20.50.25;	author rillig;	state Exp;
branches;
next	1.82;

1.82
date	2005.11.09.21.25.39;	author tv;	state Exp;
branches;
next	1.81;

1.81
date	2005.06.24.17.04.00;	author kristerw;	state Exp;
branches;
next	1.80;

1.80
date	2005.05.22.20.08.09;	author jlam;	state Exp;
branches;
next	1.79;

1.79
date	2005.04.11.21.46.13;	author tv;	state Exp;
branches;
next	1.78;

1.78
date	2004.12.03.15.15.00;	author wiz;	state Exp;
branches;
next	1.77;

1.77
date	2004.05.02.04.59.23;	author snj;	state Exp;
branches;
next	1.76;

1.76
date	2004.03.25.23.34.01;	author jlam;	state Exp;
branches;
next	1.75;

1.75
date	2004.02.19.17.51.17;	author kristerw;	state Exp;
branches;
next	1.74;

1.74
date	2004.01.24.13.51.14;	author grant;	state Exp;
branches;
next	1.73;

1.73
date	2003.12.18.15.44.24;	author ben;	state Exp;
branches;
next	1.72;

1.72
date	2003.08.09.10.59.08;	author seb;	state Exp;
branches;
next	1.71;

1.71
date	2003.08.08.09.31.00;	author grant;	state Exp;
branches;
next	1.70;

1.70
date	2003.07.23.22.30.12;	author grant;	state Exp;
branches;
next	1.69;

1.69
date	2003.07.17.21.44.23;	author grant;	state Exp;
branches;
next	1.68;

1.68
date	2003.07.13.13.16.03;	author grant;	state Exp;
branches;
next	1.67;

1.67
date	2003.07.13.13.04.09;	author grant;	state Exp;
branches;
next	1.66;

1.66
date	2003.07.12.08.53.40;	author jtb;	state Exp;
branches;
next	1.65;

1.65
date	2003.07.06.14.28.08;	author seb;	state Exp;
branches;
next	1.64;

1.64
date	2003.07.06.14.23.31;	author seb;	state Exp;
branches;
next	1.63;

1.63
date	2003.07.06.12.31.57;	author grant;	state Exp;
branches;
next	1.62;

1.62
date	2003.07.04.16.27.24;	author seb;	state Exp;
branches;
next	1.61;

1.61
date	2003.07.04.16.11.55;	author seb;	state Exp;
branches;
next	1.60;

1.60
date	2003.06.02.01.19.04;	author jschauma;	state Exp;
branches;
next	1.59;

1.59
date	2003.05.28.08.59.19;	author grant;	state Exp;
branches;
next	1.58;

1.58
date	2003.05.27.08.40.19;	author grant;	state Exp;
branches;
next	1.57;

1.57
date	2003.05.26.20.50.36;	author jschauma;	state Exp;
branches;
next	1.56;

1.56
date	2003.05.02.08.22.12;	author jmmv;	state Exp;
branches;
next	1.55;

1.55
date	2003.04.14.00.28.17;	author grant;	state Exp;
branches;
next	1.54;

1.54
date	2003.04.14.00.20.50;	author grant;	state Exp;
branches;
next	1.53;

1.53
date	2003.01.28.22.03.27;	author jlam;	state Exp;
branches;
next	1.52;

1.52
date	2003.01.11.10.44.27;	author grant;	state Exp;
branches;
next	1.51;

1.51
date	2002.12.12.02.01.06;	author salo;	state Exp;
branches;
next	1.50;

1.50
date	2002.12.05.05.52.53;	author grant;	state Exp;
branches;
next	1.49;

1.49
date	2002.10.26.14.32.49;	author seb;	state Exp;
branches;
next	1.48;

1.48
date	2002.10.20.20.40.11;	author jlam;	state Exp;
branches;
next	1.47;

1.47
date	2002.09.27.12.28.15;	author jlam;	state Exp;
branches;
next	1.46;

1.46
date	2002.09.27.09.41.40;	author jlam;	state Exp;
branches;
next	1.45;

1.45
date	2002.09.09.03.23.06;	author dmcmahill;	state Exp;
branches;
next	1.44;

1.44
date	2002.08.12.01.53.34;	author dmcmahill;	state Exp;
branches;
next	1.43;

1.43
date	2002.08.06.23.44.36;	author kristerw;	state Exp;
branches;
next	1.42;

1.42
date	2002.05.14.14.01.33;	author yyamano;	state Exp;
branches;
next	1.41;

1.41
date	2002.04.08.12.11.43;	author dmcmahill;	state Exp;
branches
	1.41.2.1;
next	1.40;

1.40
date	2002.03.28.17.17.41;	author jmc;	state Exp;
branches;
next	1.39;

1.39
date	2002.03.28.10.11.50;	author jmc;	state Exp;
branches;
next	1.38;

1.38
date	2002.03.25.14.43.00;	author cjep;	state Exp;
branches;
next	1.37;

1.37
date	2002.03.14.20.44.21;	author tron;	state Exp;
branches;
next	1.36;

1.36
date	2002.03.14.16.21.57;	author wiz;	state Exp;
branches;
next	1.35;

1.35
date	2002.02.18.15.14.25;	author seb;	state Exp;
branches;
next	1.34;

1.34
date	2002.02.16.14.46.20;	author kent;	state Exp;
branches;
next	1.33;

1.33
date	2002.01.09.16.33.32;	author seb;	state Exp;
branches;
next	1.32;

1.32
date	2002.01.03.21.39.54;	author tron;	state Exp;
branches;
next	1.31;

1.31
date	2002.01.03.20.40.39;	author tron;	state Exp;
branches;
next	1.30;

1.30
date	2001.12.29.18.33.39;	author fredb;	state Exp;
branches;
next	1.29;

1.29
date	2001.12.29.17.41.45;	author fredb;	state Exp;
branches;
next	1.28;

1.28
date	2001.09.27.23.18.17;	author jlam;	state Exp;
branches;
next	1.27;

1.27
date	2001.06.11.17.21.56;	author tron;	state Exp;
branches;
next	1.26;

1.26
date	2001.06.11.16.12.41;	author jlam;	state Exp;
branches;
next	1.25;

1.25
date	2001.06.11.15.10.38;	author tron;	state Exp;
branches;
next	1.24;

1.24
date	2001.06.07.11.57.52;	author tron;	state Exp;
branches;
next	1.23;

1.23
date	2001.05.04.10.15.44;	author skrll;	state Exp;
branches;
next	1.22;

1.22
date	2001.04.30.19.02.27;	author jlam;	state Exp;
branches;
next	1.21;

1.21
date	2001.04.21.14.07.30;	author wiz;	state Exp;
branches;
next	1.20;

1.20
date	2001.03.27.03.20.03;	author hubertf;	state Exp;
branches;
next	1.19;

1.19
date	2001.03.01.02.10.22;	author hubertf;	state Exp;
branches;
next	1.18;

1.18
date	2001.02.28.23.51.12;	author jlam;	state Exp;
branches;
next	1.17;

1.17
date	2001.02.28.23.49.18;	author jlam;	state Exp;
branches;
next	1.16;

1.16
date	2001.02.28.23.28.08;	author hubertf;	state Exp;
branches;
next	1.15;

1.15
date	2001.02.21.18.12.20;	author jlam;	state Exp;
branches;
next	1.14;

1.14
date	2001.02.17.09.07.08;	author agc;	state Exp;
branches;
next	1.13;

1.13
date	2001.02.08.17.27.01;	author jlam;	state Exp;
branches;
next	1.12;

1.12
date	2001.01.29.11.34.29;	author wiz;	state Exp;
branches;
next	1.11;

1.11
date	2001.01.13.00.34.55;	author tron;	state Exp;
branches;
next	1.10;

1.10
date	2001.01.13.00.21.11;	author tron;	state Exp;
branches;
next	1.9;

1.9
date	2001.01.11.06.53.10;	author tron;	state Exp;
branches;
next	1.8;

1.8
date	2000.09.25.22.19.19;	author fredb;	state Exp;
branches;
next	1.7;

1.7
date	2000.09.22.21.15.36;	author tron;	state Exp;
branches;
next	1.6;

1.6
date	2000.09.22.01.51.56;	author fredb;	state Exp;
branches;
next	1.5;

1.5
date	2000.09.16.00.19.45;	author tron;	state Exp;
branches;
next	1.4;

1.4
date	2000.09.15.23.58.47;	author tron;	state Exp;
branches;
next	1.3;

1.3
date	2000.05.23.22.09.58;	author tron;	state Exp;
branches;
next	1.2;

1.2
date	2000.03.27.08.54.58;	author tron;	state Exp;
branches;
next	1.1;

1.1
date	2000.03.24.23.41.20;	author tron;	state Exp;
branches
	1.1.1.1;
next	;

1.41.2.1
date	2002.06.23.18.50.18;	author jlam;	state Exp;
branches;
next	;

1.1.1.1
date	2000.03.24.23.41.20;	author tron;	state Exp;
branches;
next	;


desc
@@


1.99
log
@Finish move of lang/gcc to lang/gcc2.
Let me know if I broke something.
@
text
@# $NetBSD: Makefile,v 1.98 2014/07/27 04:04:44 dholland Exp $

DISTNAME=		gcc-2.95.3
PKGREVISION=		7
CATEGORIES=		lang
MASTER_SITES=		${MASTER_SITE_GNU:=gcc/}

PATCH_SITES=		${MASTER_SITE_LOCAL}
PATCHFILES=		gcc-2.95.3-diff-2002-08-29.gz

#
# Synced from patches against main source tree as of 2002-03-28
#
MAINTAINER=		pkgsrc-users@@NetBSD.org
HOMEPAGE=		http://gcc.gnu.org/
COMMENT=		GNU Compiler Collection, version 2

NOT_FOR_PLATFORM=	Darwin-*-* Interix-*-* *-*-x86_64 DragonFly-*-*
NOT_FOR_PLATFORM+=	NetBSD-[6789]*-*

USE_TOOLS+=		gmake bison
MAKEFLAGS+=		GMAKE_LOCALE=no

HAS_CONFIGURE=		YES
CONFIGURE_SCRIPT=	${WRKSRC}/configure
CONFIGURE_ARGS+=	--host=${MACHINE_GNU_PLATFORM:Q}
CONFIGURE_ARGS+=	--prefix=${GCC_PREFIX:Q}
CONFIGURE_ARGS+=	--enable-shared

USE_TOOLS+=		chmod
MAKE_ENV+=		ac_cv_prog_chmod=${TOOLS_CHMOD:Q}
MAKE_ENV+=		SHELL=${CONFIG_SHELL}

CONFIGURE_DIRS=		${WRKDIR}/objdir
BUILD_DIRS=		${CONFIGURE_DIRS}

FILES_SUBST+=		DISTNAME=${DISTNAME:Q}				\
			GCC_PREFIX=${GCC_PREFIX:Q}
MESSAGE_SUBST+=		DISTNAME=${DISTNAME}
PLIST_SUBST+=		DISTNAME=${DISTNAME:Q}				\
			GCC_PREFIX=${GCC_PREFIX:S|^${PREFIX}/||:Q}

INFO_FILES=	yes

.include "../../mk/bsd.prefs.mk"

.if !empty(MACHINE_PLATFORM:MNetBSD-4*)
GCC_REQD+=		3.0
USE_PKGSRC_GCC=		yes
.endif

.if ${OPSYS} == "SunOS"
CONFLICTS+=		gcc-[0-9]* pgcc-[0-9]*
.  if ${CC:M*gcc*} == ""
BUILD_TARGET=		bootstrap
.  endif
# we know it's a GNU toolchain on Linux and the BSDs.
.elif ${OPSYS:M*BSD} != "" || ${OPSYS} == "Linux"
CONFIGURE_ARGS+=	--with-gnu-as
CONFIGURE_ARGS+=	--with-gnu-ld
.else
# play it safe, force a bootstrap build if we don't know for sure it
# is gcc.
.  if ${CC:M*gcc*} == ""
BUILD_TARGET=		bootstrap
.  endif
.endif

GCC_PREFIX=	${PREFIX}/${DISTNAME}
GCC_VERSION=	${PKGVERSION:C|nb.*||}
GCC_ARCHDIR=	${GCC_PREFIX}/lib/gcc-lib/${MACHINE_GNU_PLATFORM}/${GCC_VERSION}

post-extract:
	${MKDIR} ${WRKSRC}
	${CP} ${FILESDIR}/xm-netbsd.h ${WRKSRC}/gcc/config
	${CP} ${FILESDIR}/xm-target64.h ${WRKSRC}/gcc/config
	for file in ${FILESDIR}/*_* ; do \
		arch=`${BASENAME} $${file} | ${SED} -e "s/_.*//"`;	\
		dest=`${BASENAME} $${file} | ${SED} -e "s/$${arch}_//"`; \
		${MKDIR} ${WRKSRC}/gcc/config/$${arch};			\
		${CP} $${file} ${WRKSRC}/gcc/config/$${arch}/$${dest};	\
	done
	${RM} ${WRKSRC}/gcc/config/alpha/netbsd-elf.h
	${RM} ${WRKSRC}/gcc/config/arm/t-netbsd
	${RM} ${WRKSRC}/gcc/config/mips/x-netbsd
	${RM} ${WRKSRC}/libf2c/libF77/dtime_.c
	${RM} ${WRKSRC}/libf2c/libF77/etime_.c

pre-configure:
	${MKDIR} ${BUILD_DIRS}
	cd ${WRKSRC} && contrib/egcs_update --touch

post-build:
	@@${SED} ${FILES_SUBST_SED} ${FILESDIR}/gcc.mk > ${WRKDIR}/gcc.mk

.if ${OPSYS} == "SunOS"
#
# remove empty file and directories that show up when one does:
#	make install; make deinstall; make install
#
post-install:
	-cd ${DESTDIR}${GCC_ARCHDIR}/include && ${RM} -f fixed && ${RMDIR} v7 v9
.else
post-install:
.  if exists(/usr/include/g++/FlexLexer.h)
	${LN} -fs /usr/include/g++/FlexLexer.h				\
		${DESTDIR}${GCC_PREFIX}/include/g++-3/FlexLexer.h
.  endif
	${RM} -f ${DESTDIR}${GCC_ARCHDIR}/include/curses.h ${DESTDIR}${GCC_PREFIX}/bin/cc
.endif
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/${DISTNAME}
	${INSTALL_DATA} ${WRKDIR}/gcc.mk ${DESTDIR}${PREFIX}/share/examples/${DISTNAME}/mk.conf
	${LN} -s gcc ${DESTDIR}${GCC_PREFIX}/bin/cc

.include "../../mk/bsd.pkg.mk"

# Make bootstrap with compiler != gcc possible.
LDFLAGS=		${_STRIPFLAG_CC}
@


1.98
log
@This package (gcc 2.95) doesn't build on NetBSD-6 and up, because the
support for non-compiler-builtin (pre-gcc3) stdarg.h was removed. Mark
the package accordingly instead of having it fail in every build.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.97 2013/04/06 20:27:22 rodent Exp $
@


1.97
log
@Resolves:
"INFO_FILES should be set to YES or yes."
"Packages that install info files should set INFO_FILES."
Makefile and PLIST warning, respectively.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.96 2012/10/02 20:11:40 asau Exp $
d19 1
@


1.96
log
@Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.95 2011/07/15 08:47:22 asau Exp $
d42 1
a42 1
INFO_FILES=		# PLIST
@


1.95
log
@Staged installation support. (Also converts to static packaging list.)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.94 2010/10/12 22:57:55 joerg Exp $
a19 2
PKG_DESTDIR_SUPPORT=	user-destdir

@


1.94
log
@At least try to compile with newer GCC.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.93 2009/09/20 14:41:52 schwarz Exp $
d20 2
a72 1
PLIST_SRC=	${WRKDIR}/PLIST_DYNAMIC
d103 1
a103 1
	-cd ${GCC_ARCHDIR}/include && ${RM} -f fixed && ${RMDIR} v7 v9
d108 1
a108 1
		${GCC_PREFIX}/include/g++-3/FlexLexer.h
d110 1
a110 1
	${RM} -f ${GCC_ARCHDIR}/include/curses.h ${GCC_PREFIX}/bin/cc
d112 3
a114 7
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/${DISTNAME}
	${INSTALL_DATA} ${WRKDIR}/gcc.mk ${PREFIX}/share/examples/${DISTNAME}/mk.conf
	${LN} -s gcc ${GCC_PREFIX}/bin/cc
	${CP} -f ${PKGDIR}/PLIST ${PLIST_SRC}
	${FIND} ${GCC_PREFIX} \( -type f -o -type l \) -print		\
		| ${SORT} | ${SED} -e "s,${PREFIX}/,,g"			\
		>> ${PLIST_SRC}
@


1.93
log
@corrected HOMEPAGE URL (old URL no longer exists)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.92 2009/06/14 22:58:01 joerg Exp $
d20 1
a20 1
USE_TOOLS+=		gmake
@


1.92
log
@Remove @@dirrm related logic.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.91 2008/02/01 07:50:01 tnn Exp $
d15 1
a15 1
HOMEPAGE=		http://www.gnu.org/software/gcc/gcc.html
@


1.91
log
@gcc-2 needs to be built with gcc3 on netbsd-4. From Aleksej Saushev.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.90 2007/06/12 20:10:17 joerg Exp $
a117 3
	${FIND} ${GCC_PREFIX} -type d -print				\
		| ${SORT} -r | ${SED} -e "s,${PREFIX}/,@@dirrm ,g"	\
		>> ${PLIST_SRC}
@


1.90
log
@Can't work on DragonFly due to missing TLS support.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.89 2006/09/27 15:46:11 abs Exp $
d46 5
@


1.89
log
@Set MAKE_ENV+=SHELL=${CONFIG_SHELL} for all gcc packages. Fixes SHELL set
to non sh compatible shell in environment. Thanks to Georg Schwarz.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.88 2006/03/20 18:15:38 jlam Exp $
d18 1
a18 1
NOT_FOR_PLATFORM=	Darwin-*-* Interix-*-* *-*-x86_64
@


1.88
log
@* Nuke all references to and definitions of INFO_DIR in package Makefiles
  and replace with appropriate references to PKGINFODIR instead.

* Properly account for split info files during installation.

* Move info file listings directly into the package PLISTs.

This fixes info-file-related PLIST problems.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.87 2006/03/04 21:29:54 jlam Exp $
d31 1
@


1.87
log
@Point MAINTAINER to pkgsrc-users@@NetBSD.org in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.86 2006/02/05 23:09:44 joerg Exp $
d35 2
a36 1
FILES_SUBST+=		DISTNAME=${DISTNAME:Q} GCC_PREFIX=${GCC_PREFIX:Q}
d38 2
a39 1
PLIST_SUBST+=		DISTNAME=${DISTNAME:Q}
d41 1
a41 2
INFO_DIR=		${GCC_PREFIX:S|^${PREFIX}/||}/info
INFO_FILES=		chill.info cpp.info g77.info gcc.info
@


1.86
log
@Recursive revision bump / recommended bump for gettext ABI change.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.85 2005/12/29 06:21:45 jlam Exp $
d14 1
a14 1
MAINTAINER=		tech-pkg@@NetBSD.org
@


1.85
log
@Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.84 2005/12/05 23:55:09 rillig Exp $
d4 1
a4 1
PKGREVISION=		6
@


1.84
log
@Ran "pkglint --autofix", which corrected some of the quoting issues in
CONFIGURE_ARGS.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.83 2005/12/05 20:50:25 rillig Exp $
a19 1
USE_PKGINSTALL=		YES
@


1.83
log
@Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.82 2005/11/09 21:25:39 tv Exp $
d26 2
a27 2
CONFIGURE_ARGS+=	--host=${MACHINE_GNU_PLATFORM}
CONFIGURE_ARGS+=	--prefix=${GCC_PREFIX}
@


1.82
log
@NOT_FOR_PLATFORM Interix.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.81 2005/06/24 17:04:00 kristerw Exp $
d26 1
a26 1
CONFIGURE_ARGS=		--host=${MACHINE_GNU_PLATFORM}
d31 1
a31 1
MAKE_ENV+=		ac_cv_prog_chmod="${TOOLS_CHMOD}"
d36 1
a36 1
FILES_SUBST+=		DISTNAME=${DISTNAME} GCC_PREFIX=${GCC_PREFIX}
d38 1
a38 1
PLIST_SUBST+=		DISTNAME=${DISTNAME}
@


1.81
log
@Prevent paths to the build directories from being included in the package.
Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.80 2005/05/22 20:08:09 jlam Exp $
d18 1
a18 1
NOT_FOR_PLATFORM=	Darwin-*-* *-*-x86_64
@


1.80
log
@Remove USE_GNU_TOOLS and replace with the correct USE_TOOLS definitions:

	USE_GNU_TOOLS	-> USE_TOOLS
	awk		-> gawk
	m4		-> gm4
	make		-> gmake
	sed		-> gsed
	yacc		-> bison
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.79 2005/04/11 21:46:13 tv Exp $
d4 1
a4 1
PKGREVISION=		5
d30 3
@


1.79
log
@Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.78 2004/12/03 15:15:00 wiz Exp $
d21 1
a21 1
USE_GNU_TOOLS+=		make
@


1.78
log
@Rename ALL_TARGET to BUILD_TARGET for consistency with other *_TARGETs.
Suggested by Roland Illig, ok'd by various.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.77 2004/05/02 04:59:23 snj Exp $
a19 1
USE_BUILDLINK3=		YES
@


1.77
log
@Convert to buildlink3.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.76 2004/03/25 23:34:01 jlam Exp $
d46 1
a46 1
ALL_TARGET=		bootstrap
d56 1
a56 1
ALL_TARGET=		bootstrap
@


1.76
log
@When building devel/gmake as a build dependency, build it without locale
support.  This makes it easier to "bootstrap" the installation of a
pkgsrc compiler without a lot of additional indirect build dependencies on
gettext, libiconv, libtool, etc.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.75 2004/02/19 17:51:17 kristerw Exp $
d20 1
a20 1
USE_BUILDLINK2=		YES
@


1.75
log
@gcc 2.95 does not support the x86_64 architecture.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.74 2004/01/24 13:51:14 grant Exp $
d23 1
@


1.74
log
@replace deprecated USE_GMAKE with USE_GNU_TOOLS+=make.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.73 2003/12/18 15:44:24 ben Exp $
d18 1
a18 1
NOT_FOR_PLATFORM=	Darwin-*-*
@


1.73
log
@Apply patch from Harry Waddell in PR 23289 to chill in gcc 2.95.3, to
fix a build error when using gcc 3.  Also bumps PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.72 2003/08/09 10:59:08 seb Exp $
d22 1
a22 1
USE_GMAKE=		YES
@


1.72
log
@USE_NEW_TEXINFO is unnecessary now.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.71 2003/08/08 09:31:00 grant Exp $
d4 1
a4 1
PKGREVISION=		4
@


1.71
log
@include major version number in COMMENT for distinction, some minor
COMMENT tweaks.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.70 2003/07/23 22:30:12 grant Exp $
a36 1
USE_NEW_TEXINFO=	YES
@


1.70
log
@fix GCC_VERSION so GCC_ARCHDIR is correctly set.

re-arrange gcc/Makefile a bit to more closely resemble gcc3/Makefile.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.69 2003/07/17 21:44:23 grant Exp $
d16 1
a16 1
COMMENT=		GNU Compiler Collection
@


1.69
log
@s/netbsd.org/NetBSD.org/
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.68 2003/07/13 13:16:03 grant Exp $
d33 4
a42 3
GCC_PREFIX=		${PREFIX}/${PKGNAME_NOREV}
PLIST_SRC=		${WRKDIR}/PLIST_DYNAMIC

d60 2
a61 1
GCC_VERSION=	${PKGVERSION:C|nb*||}
d63 1
a63 4
FILES_SUBST+=	GCC_PREFIX=${GCC_PREFIX}
FILES_SUBST+=	DISTNAME=${DISTNAME}
MESSAGE_SUBST+=	DISTNAME=${DISTNAME}
PLIST_SUBST+=	DISTNAME=${DISTNAME}
@


1.68
log
@oops, we still want the mk files for non-pkgsrc purposes. unbump
PKGREVISIONs.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.66 2003/07/12 08:53:40 jtb Exp $
d14 1
a14 1
MAINTAINER=		tech-pkg@@netbsd.org
@


1.67
log
@greatly simplify the handling of pkgsrc gcc, and eliminate a bug which
has allowed these packages to work :)

set CC, CXX, CPP and F77 in gcc{,3}/buildlink2.mk.

you now only need to define USE_GCC2 or USE_GCC3 to use the pkgsrc
gcc of your choice.

the share/examples/gcc/mk.conf and gcc3/mk.conf files are no longer
installed.

bump PKGREVISIONs.
@
text
@d4 1
a4 1
PKGREVISION=		5
@


1.66
log
@Add some patches against basesrc gcc implementing the "if-exists"
function in the specs file.  Enables the linker to pick
up crti.o and crtn.o if they exist.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.65 2003/07/06 14:28:08 seb Exp $
d4 1
a4 1
PKGREVISION=		4
@


1.65
log
@Reorder a bit so pkglint is happier.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.64 2003/07/06 14:23:31 seb Exp $
d4 1
a4 1
PKGREVISION=		3
@


1.64
log
@No need anymore to specify --infodir=... to configure.
Factorize some install commands.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.63 2003/07/06 12:31:57 grant Exp $
d7 4
a18 3

PATCH_SITES=		${MASTER_SITE_LOCAL}
PATCHFILES=		gcc-2.95.3-diff-2002-08-29.gz
@


1.63
log
@set GCC_VERSION for use in GCC_ARCHDIR. remove a superfluous comment
about GCC_PREFIX.

XXX why is GCC_PREFIX ${PREFIX}/gcc3 ?
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.62 2003/07/04 16:27:24 seb Exp $
a39 1
CONFIGURE_ARGS+=	--infodir=${GCC_PREFIX}/info
a93 2
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/${DISTNAME}
	${INSTALL_DATA} ${WRKDIR}/gcc.mk ${PREFIX}/share/examples/${DISTNAME}/mk.conf
a96 2
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/${DISTNAME}
	${INSTALL_DATA} ${WRKDIR}/gcc.mk ${PREFIX}/share/examples/${DISTNAME}/mk.conf
d103 2
@


1.62
log
@Convert to USE_NEW_TEXINFO.
Remove or trim "info related" patch files.
Install info files in package specific directory.
Hence the PLIST files are now nearly empty...

This should finish making these two packages really non-conflicting.

Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.60 2003/06/02 01:19:04 jschauma Exp $
d59 2
a60 1
GCC_ARCHDIR=	${GCC_PREFIX}/lib/gcc-lib/${MACHINE_GNU_PLATFORM}/${PKGVERSION}
@


1.61
log
@Install example mk.conf in package specific directory.
Adjust and make uniform various substitution variables and MESSAGE files.

No PKGREVISION bump right now.
@
text
@d4 1
a4 1
PKGREVISION=		2
d32 2
d40 1
a40 1
CONFIGURE_ARGS+=	--infodir=${PREFIX}/info
a115 1
.include "../../mk/texinfo.mk"
@


1.60
log
@Use tech-pkg@@ in favor of packages@@ as MAINTAINER for orphaned packages.
Should anybody feel like they could be the maintainer for any of thewe packages,
please adjust.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.59 2003/05/28 08:59:19 grant Exp $
a28 1
PLIST_SUBST+=		GCC_VERSION=${PKGVERSION}
d59 3
d92 2
a93 2
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gcc
	${INSTALL_DATA} ${WRKDIR}/gcc.mk ${PREFIX}/share/examples/gcc/mk.conf
d97 2
a98 2
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gcc
	${INSTALL_DATA} ${WRKDIR}/gcc.mk ${PREFIX}/share/examples/gcc/mk.conf
@


1.59
log
@remove redundant comment
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.58 2003/05/27 08:40:19 grant Exp $
d10 1
a10 1
MAINTAINER=		packages@@netbsd.org
@


1.58
log
@on Solaris, install into ${PREFIX}/${PKGNAME_NOREV} as per other
platforms, and remove the related Solaris MESSAGE and PLIST.

prevents gcc from always searching ${PREFIX}/{include,lib} for
include files and libraries which breaks buildlink2, preventing
some packages from being built, depending on what is already
installed.

noted by Mark Davies and others, and address my PR pkg/21122.

bump PKGREVISION.

note: if you update to this version, be sure to rebuild libtool-base
since the path to crti.o, crtbegin.o, etc is hardcoded in libtool at
compile-time.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.57 2003/05/26 20:50:36 jschauma Exp $
a2 1
# Make sure that the version number in "Makefile.gcc" matches this.
@


1.57
log
@Remove build-dependency on bison by applying patch from Todd Vierling
provided in PR pkg/21227, which applies for lang/gcc as well as lang/gcc3.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.56 2003/05/02 08:22:12 jmmv Exp $
d5 1
a5 1
PKGREVISION=		1
d38 4
a43 2
GCC_PREFIX=		${PREFIX}
PLIST_SRC=		${PKGDIR}/PLIST.SunOS
a50 3
CONFIGURE_ARGS+=	--infodir=${PREFIX}/info
GCC_PREFIX=		${PREFIX}/${PKGNAME_NOREV}
PLIST_SRC=		${WRKDIR}/PLIST_DYNAMIC
a51 4
# try to use some sane defaults if we have no idea about the platform.
CONFIGURE_ARGS+=	--infodir=${PREFIX}/info
GCC_PREFIX=		${PREFIX}/${PKGNAME_NOREV}
PLIST_SRC=		${WRKDIR}/PLIST_DYNAMIC
d103 1
a111 1
.endif
@


1.56
log
@Move the sample mk.conf file to share/examples/gcc/mk.conf, instead of
installing in in etc/ (and not honouring PKG_SYSCONFDIR). Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.55 2003/04/14 00:28:17 grant Exp $
a19 2
BUILD_DEPENDS+=		bison-[0-9]*:../../devel/bison

d85 1
a85 2
	${TOUCH} ${TOUCH_FLAGS}	${WRKSRC}/gcc/c-gperf.h
	${ECHO} "bogus" > ${WRKSRC}/gcc/cstamp-h.in
@


1.55
log
@only assume GNU toolchain on Linux and BSD and use try to use sane
defaults for "unknown" platforms.

drop unneeded parens, whitespace police.

(the last update was broken, oops)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.53 2003/01/28 22:03:27 jlam Exp $
d5 1
d52 1
a52 1
GCC_PREFIX=		${PREFIX}/${PKGNAME}
d57 1
a57 1
GCC_PREFIX=		${PREFIX}/${PKGNAME}
d99 2
a100 1
	${INSTALL_DATA} ${WRKDIR}/gcc.mk ${PREFIX}/etc/${PKGNAME}.mk
d104 2
a105 1
	${INSTALL_DATA} ${WRKDIR}/gcc.mk ${PREFIX}/etc/${PKGNAME}.mk
@


1.54
log
@use the bootstrap target unless we know we are using gcc (either by
platform or by name).

use
@
text
@d47 1
a47 5
.elif
      ${OPSYS} == "FreeBSD" || \
      ${OPSYS} == "Linux" || \
      ${OPSYS} == "NetBSD" || \
      ${OPSYS} == "OpenBSD"
d60 1
a60 1
.  if (${OPSYS} != "FreeBSD" && ${OPSYS} != "OpenBSD") && ${CC:M*gcc*} == ""
@


1.53
log
@Instead of including bsd.pkg.install.mk directly in a package Makefile,
have it be automatically included by bsd.pkg.mk if USE_PKGINSTALL is set
to "YES".  This enforces the requirement that bsd.pkg.install.mk be
included at the end of a package Makefile.  Idea suggested by Julio M.
Merino Vidal <jmmv at menta.net>.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.52 2003/01/11 10:44:27 grant Exp $
d41 3
a43 1
.  if defined(CC) && (${CC} != "gcc")
d46 6
a51 4
GCC_PREFIX=		${PREFIX}
PLIST_SRC=		${PKGDIR}/PLIST.SunOS
.else
GCC_PREFIX=		${PREFIX}/${PKGNAME}
d55 12
a66 1
PLIST_SRC=              ${WRKDIR}/PLIST_DYNAMIC
d96 1
a96 1
.if (${OPSYS} == SunOS)
@


1.52
log
@Mark this NOT_FOR_PLATFORM Darwin.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.51 2002/12/12 02:01:06 salo Exp $
d22 1
a107 1
.include "../../mk/bsd.pkg.install.mk"
@


1.51
log
@Check if $CC is defined first, next comparison breaks otherwise.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.50 2002/12/05 05:52:53 grant Exp $
d13 2
@


1.50
log
@use automatic MESSAGE handling.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.49 2002/10/26 14:32:49 seb Exp $
d38 1
a38 1
.  if ${CC} != "gcc"
@


1.49
log
@GNU make with its support of micro- and nano-second timestamp and stat(2)
related information keeps pestering me while building this package on Solaris.
So...
- Replace WRKDIR and SRCDIR hack with CONFIGURE_DIRS and BUILD_DIRS tuning:
automake-*-override can now properly do their job.
- Prevent gperf invocation with the right touch command in pre-configure
target.
- Create BUILD_DIRS in pre-configure target.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.48 2002/10/20 20:40:11 jlam Exp $
a42 1
MESSAGE_SRC=		${PKGDIR}/MESSAGE.SunOS
@


1.48
log
@Install ${PREFIX}/etc/${PKGNAME}.mk on SunOS, too.  From pkg/18627 by
Lubomir Sedlacik.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.47 2002/09/27 12:28:15 jlam Exp $
d23 1
a23 1
CONFIGURE_SCRIPT=	${SRCDIR}/configure
d29 2
a30 2
SRCDIR=			${WRKDIR}/${DISTNAME}
WRKSRC=			${WRKDIR}/objdir
d57 2
a58 2
	${CP} ${FILESDIR}/xm-netbsd.h ${SRCDIR}/gcc/config
	${CP} ${FILESDIR}/xm-target64.h ${SRCDIR}/gcc/config
d62 2
a63 2
		${MKDIR} ${SRCDIR}/gcc/config/$${arch};			\
		${CP} $${file} ${SRCDIR}/gcc/config/$${arch}/$${dest};	\
d65 5
a69 5
	${RM} ${SRCDIR}/gcc/config/alpha/netbsd-elf.h
	${RM} ${SRCDIR}/gcc/config/arm/t-netbsd
	${RM} ${SRCDIR}/gcc/config/mips/x-netbsd
	${RM} ${SRCDIR}/libf2c/libF77/dtime_.c
	${RM} ${SRCDIR}/libf2c/libF77/etime_.c
d72 3
a74 1
	${ECHO} "bogus" > ${SRCDIR}/gcc/cstamp-h.in
@


1.47
log
@Use bsd.pkg.install.mk, correct the PLISTs to refer to ${PKGNAME}.mk
(instead of hardcoding the version number), and general cleanups to the
Makefile to make this package easier to maintain.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.46 2002/09/27 09:41:40 jlam Exp $
d83 1
@


1.46
log
@Use ${BASENAME} instead of "basename", and fix a typo.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.45 2002/09/09 03:23:06 dmcmahill Exp $
a6 1

d8 1
a8 1
# Synced from patches against main source tree as of:
a9 1
# 03/28/02
d19 1
d21 1
a22 3
CONFIGURE_ARGS=		--host=${MACHINE_GNU_PLATFORM} \
			--prefix=${GCC_PREFIX} \
			--enable-shared
d24 3
a26 1
INFO_FILES=		chill.info cpp.info g77.info gcc.info
d32 2
d36 3
a38 6
.if (${OPSYS} != SunOS)
CONFIGURE_ARGS+=	--with-gnu-as --with-gnu-ld --infodir=${PREFIX}/info
GCC_PREFIX=		${LOCALBASE}/${PKGNAME}
PLIST_SRC=              ${WRKDIR}/PLIST_DYNAMIC
.else
.if (${CC} != gcc)
d40 2
a41 2
.endif
GCC_PREFIX=		${LOCALBASE}
d43 7
a49 2
MESSAGE=		${PKGDIR}/MESSAGE.SunOS
CONFLICTS+=		gcc-[0-9]* pgcc-[0-9]*
d52 3
d57 7
a63 12
	cd ${WRKSRC}/../${DISTNAME}/gcc/config; \
	${CP} ${FILESDIR}/xm-netbsd.h .; \
	${CP} ${FILESDIR}/xm-target64.h .; \
	for FILE in ${FILESDIR}/*_* ; do \
	  ARCH=`${BASENAME} $${FILE} | cut -d_ -f1`; \
	  DEST=`${BASENAME} $${FILE} | sed -e "s/$${ARCH}_//"`; \
	  ${MKDIR} $${ARCH}; \
	  ${CP} $${FILE} $${ARCH}/$${DEST}; \
	done; \
	cd ${WRKSRC}/../${DISTNAME}; \
	for i in gcc/config/alpha/netbsd-elf.h gcc/config/arm/t-netbsd gcc/config/mips/x-netbsd libf2c/libF77/dtime_.c libf2c/libF77/etime_.c; do \
	  ${RM} $${i};\
d65 5
d71 2
a72 2
post-patch:
	${ECHO} "bogus" >${WRKSRC}/../${DISTNAME}/gcc/cstamp-h.in
a73 1
.if (${OPSYS} != SunOS)
d75 1
a75 7
	for FILE in ${FILESDIR}/gcc.mk; do \
	  ${SED} -e 's#@@@@MAKE@@@@#${MAKE}#g' \
		 -e 's#@@@@PKGNAME@@@@#${PKGNAME}#g' \
		 -e 's#@@@@PREFIX@@@@#${PREFIX}#g' \
	   <$$FILE >${WRKDIR}/`${BASENAME} $$FILE`; \
	done
.endif
d77 8
a84 4
pre-install:
	${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${INSTALL_FILE} any PRE-INSTALL

.if (${OPSYS} != SunOS)
a85 6
.	if exists(/usr/include/g++/FlexLexer.h)
		${LN} -s /usr/include/g++/FlexLexer.h \
			 ${PREFIX}/${PKGNAME}/include/g++-3/FlexLexer.h
.	endif
	${RM} -f ${GCC_PREFIX}/lib/gcc-lib/${MACHINE_GNU_PLATFORM}/${PKGVERSION}/include/curses.h ${PREFIX}/${PKGNAME}/bin/cc
	${LN} -s gcc ${PREFIX}/${PKGNAME}/bin/cc
d87 6
d94 6
a99 10
	${FIND} ${PREFIX}/${PKGNAME} -type f -print | ${SORT} -r | ${SED} 's;${PREFIX}/;;g' >> ${PLIST_SRC}
	${FIND} ${PREFIX}/${PKGNAME} -type l -print | ${SORT} -r | ${SED} 's;${PREFIX}/;;g' >> ${PLIST_SRC}
	${FIND} ${PREFIX}/${PKGNAME} -type d -print | ${SORT} -r | ${SED} 's;${PREFIX}/;@@dirrm ;g' >> ${PLIST_SRC}
.else
# remove empty file and directories that show up when one
# does make install; make deinstall; make install
post-install:
	-cd ${GCC_PREFIX}/lib/gcc-lib/${MACHINE_GNU_PLATFORM}/${PKGVERSION}/include && \
	${RM} -f fixed && \
	${RMDIR} v7 v9
d103 1
@


1.45
log
@- pull in the last bit of changes to sync this up with the netbsd-1-6-RELEASE
  gcc.

- enable building shared libstdc++

- add a -R to LDFLAGS in Makefile.gcc to point to the shared libs this pkg
  installs
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.44 2002/08/12 01:53:34 dmcmahill Exp $
d55 2
a56 2
	  ARCH=`basename $${FILE} | cut -d_ -f1`; \
	  DEST=`basename $${FILE} | sed -e "s/$${ARCH}_//"`; \
d74 1
a74 1
	   <$$FILE >${WRKDIR}/`basename $$FILE`; \
d95 1
a95 1
# remove empy file and directories that show up when one
@


1.44
log
@pull in most recent patches to gcc-2.95.3 from the netbsd-1-6
branch.  Includes fixes for sparc, alpha, and others.
Should help in keeping pkgsrc running on 1.5.* systems.
The patches which mirror those in the main netbsd source tree have
been all put into a single distribution patch file.  This makes
it much easier to maintain and easier to easily see which patches
are specific to pkgsrc.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.43 2002/08/06 23:44:36 kristerw Exp $
d17 1
a17 1
PATCHFILES=		gcc-2.95.3-diff-2002-08-11.gz
@


1.43
log
@Make sure that the compiler finds the non-standard includefiles normally
found on NetBSD (i.e. FlexLexer.h)

This corrects the issue in the remark to my closing of pkg/17638.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.42 2002/05/14 14:01:33 yyamano Exp $
d15 3
@


1.42
log
@Replace STRIPFLAG with _STRIPFLAG_CC to fix pkg/15467.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.41 2002/04/08 12:11:43 dmcmahill Exp $
d80 4
@


1.41
log
@generate most of the packing list dynamically for non-SunOS systems.  This
is done because different sets of libraries end up being installed based
on MACHINE_ARCH.  Tested on NetBSD/alpha.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.40 2002/03/28 17:17:41 jmc Exp $
d100 1
a100 1
LDFLAGS=		${STRIPFLAG}
@


1.41.2.1
log
@Merge from pkgsrc-current to buildlink2 branch.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.42 2002/05/14 14:01:33 yyamano Exp $
d100 1
a100 1
LDFLAGS=		${_STRIPFLAG_CC}
@


1.40
log
@Remove PKGREVISION. It causes too many issues with installing/tracking
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.39 2002/03/28 10:11:50 jmc Exp $
a33 1

d35 1
d83 4
@


1.39
log
@Update patch set against a sync of source from gnusrc/dist/toolchain.

Not very many overall changes. Main ones include

1. Support for powerpc, arm32 and vax
2. Makefile.gcc can now be included by anything which depends on gcc versions.
   If the version installed isn't 2.95.3 it'll add itself as a BUILD_DEPENDS.
   (XXX: any of the makefile's in pkgsrc should be checked and change to use
    this)

3. Remove special PLIST.NetBSD-sparc as it's no longer needed
4. Change post-extract loop to pick up any arch files from FILESDIR without
   having to hardcode all the archs
5. Remove arch restrictions as this should work on any arch supported by the
   main source tree as of 03/28/02
6. Add PKGREVISION as this clearly isn't stock 2.95.3 (it doesn't change
   gcc --version so version checks won't care).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.38 2002/03/25 14:43:00 cjep Exp $
a6 1
PKGREVISION=		1
@


1.38
log
@Build for arm32 as well (after discussion with abs).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.37 2002/03/14 20:44:21 tron Exp $
d7 1
d9 4
a18 4
# The platforms listed below are the only tested platforms so far.
# If you get gcc working on other platforms, then please add them.
ONLY_FOR_PLATFORM=	NetBSD-*-i386 NetBSD-*-arm32 SunOS-*-*

a36 4
.if ${MACHINE_PLATFORM:MNetBSD-*-sparc}
PLIST_SRC=		${PKGDIR}/PLIST.NetBSD-sparc
PLIST_SRC+=		${PKGDIR}/PLIST
.endif
d51 4
a54 1
	for ARCH in arm arm i386 m68k sh sparc vax; do \
d56 1
a56 1
	  ${CP} ${FILESDIR}/$${ARCH}_netbsd-elf.h $${ARCH}/netbsd-elf.h; \
d58 4
a61 1
	${CP} ${FILESDIR}/sparc_netbsd-elf-common.h sparc/netbsd-elf-common.h
@


1.37
log
@Remove empty directory "v9" after installation to avoid deinstallation
problems.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.36 2002/03/14 16:21:57 wiz Exp $
d16 1
a16 1
ONLY_FOR_PLATFORM=	NetBSD-*-i386 SunOS-*-*
@


1.36
log
@Some cleanup.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.35 2002/02/18 15:14:25 seb Exp $
d82 1
a82 1
# remove empy file and directory that show up when one
d85 3
a87 2
	${RM} -f ${GCC_PREFIX}/lib/gcc-lib/${MACHINE_GNU_PLATFORM}/${PKGVERSION}/include/fixed
	-${RMDIR} ${GCC_PREFIX}/lib/gcc-lib/${MACHINE_GNU_PLATFORM}/${PKGVERSION}/include/v7
@


1.35
log
@Introduce new framework for handling info files generation and installation.

Summary of changes:
- removal of USE_GTEXINFO
- addition of mk/texinfo.mk
- inclusion of this file in package Makefiles requiring it
- `install-info' substituted by `${INSTALL_INFO}' in PLISTs
- tuning of mk/bsd.pkg.mk:
    removal of USE_GTEXINFO
    INSTALL_INFO added to PLIST_SUBST
    `${INSTALL_INFO}' replace `install-info' in target rules
    print-PLIST target now generate `${INSTALL_INFO}' instead of `install-info'
- a couple of new patch files added for a handful of packages
- setting of the TEXINFO_OVERRIDE "switch" in packages Makefiles requiring it
- devel/cssc marked requiring texinfo 4.0
- a couple of packages Makefiles were tuned with respect of INFO_FILES and
  makeinfo command usage

See -newly added by this commit- section 10.24 of Packages.txt for
further information.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.34 2002/02/16 14:46:20 kent Exp $
a17 8
.include "../../mk/bsd.prefs.mk"

.if (${OPSYS} == "NetBSD") && (${OBJECT_FMT} == "ELF")
MACHINE_GCC_PLATFORM=	${MACHINE_GNU_PLATFORM}elf
.else
MACHINE_GCC_PLATFORM=	${MACHINE_GNU_PLATFORM}
.endif

d20 1
a20 1
CONFIGURE_ARGS=		--host=${MACHINE_GCC_PLATFORM} \
a25 2
MESSAGE_SUBST+=		MAKE=${MAKE}
PLIST_SUBST+=		MACHINE_GCC_PLATFORM=${MACHINE_GCC_PLATFORM}
d78 1
a78 1
	${RM} -f ${GCC_PREFIX}/lib/gcc-lib/${MACHINE_GCC_PLATFORM}/${PKGVERSION}/include/curses.h ${PREFIX}/${PKGNAME}/bin/cc
a79 1
	${RM} -f ${GCC_PREFIX}/lib/gcc-lib/${MACHINE_GCC_PLATFORM}/${PKGVERSION}/include/curses.h
d85 2
a86 2
	${RM} -f ${GCC_PREFIX}/lib/gcc-lib/${MACHINE_GCC_PLATFORM}/${PKGVERSION}/include/fixed
	-${RMDIR} ${GCC_PREFIX}/lib/gcc-lib/${MACHINE_GCC_PLATFORM}/${PKGVERSION}/include/v7
@


1.34
log
@Add missing sparc/netbsd-elf-common.h.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.33 2002/01/09 16:33:32 seb Exp $
d100 1
@


1.33
log
@Fix and enable for Solaris platform.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.32 2002/01/03 21:39:54 tron Exp $
d67 2
a68 1
	done
@


1.32
log
@Provide a "Makefile.gcc" which can be used by other packages which need
this "gcc" version for building.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.31 2002/01/03 20:40:39 tron Exp $
d16 1
a16 1
ONLY_FOR_PLATFORM=	NetBSD-*-i386
d36 1
d91 6
@


1.31
log
@Update "gcc" package to version 2.95.3. This is a bug fix release of
version 2.95.2. This package includes all changes to "gcc" from the
new toolchain in NetBSD-current. The only tested (and enabled) platform
is "NetBSD-*-i386" so far.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.30 2001/12/29 18:33:39 fredb Exp $
d3 1
@


1.30
log
@Let's keep this simple, and not let the "nb" bump affect the name of the
installation directory.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.29 2001/12/29 17:41:45 fredb Exp $
d3 1
a3 2
DISTNAME=		gcc-2.95.2
PKGREVISION=		1
d15 1
a15 2
ONLY_FOR_PLATFORM=	NetBSD-*-arm32 NetBSD-*-i386 NetBSD-*-m68k \
			NetBSD-*-sparc SunOS-*-*
a32 1
GCC_VERSION=		${PKGNAME:C/.*-//:C/nb[1-9]*//}
d34 1
a34 2
PLIST_SUBST+=		GCC_VERSION=${GCC_VERSION} \
			MACHINE_GCC_PLATFORM=${MACHINE_GCC_PLATFORM}
d60 6
a65 1
	${CP} ${FILESDIR}/netbsd*.ml ${WRKSRC}/../${DISTNAME}/libstdc++/config
d85 1
a85 1
	${RM} -f ${GCC_PREFIX}/lib/gcc-lib/${MACHINE_GCC_PLATFORM}/${GCC_VERSION}/include/curses.h ${PREFIX}/${PKGNAME}/bin/cc
d87 1
a87 1
	${RM} -f ${GCC_PREFIX}/lib/gcc-lib/${MACHINE_GCC_PLATFORM}/${GCC_VERSION}/include/curses.h
@


1.29
log
@Fix up a corrupt infodir entry in "chill.info" that install-info could not
delete cleanly, which foiled subsequent installations, and add an INSTALL
script (keyword PRE-INSTALL) to ensure that the corrupt entry is removed.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.28 2001/09/27 23:18:17 jlam Exp $
d35 1
a35 1
GCC_VERSION=		${PKGNAME:C/.*-//}
@


1.28
log
@Mechanical changes to 375 files to change dependency patterns of the form
foo-* to foo-[0-9]*.  This is to cause the dependencies to match only the
packages whose base package name is "foo", and not those named "foo-bar".
A concrete example is p5-Net-* matching p5-Net-DNS as well as p5-Net.  Also
change dependency examples in Packages.txt to reflect this.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.27 2001/06/11 17:21:56 tron Exp $
d4 1
d78 3
@


1.27
log
@Install info file into "${PREFIX}/info" so that they get found.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.26 2001/06/11 16:12:41 jlam Exp $
d11 1
a11 1
BUILD_DEPENDS+=		bison-*:../../devel/bison
@


1.26
log
@Remove installed curses.h file, as is done by pgcc/Makefile.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2001/06/11 15:10:38 tron Exp $
d32 1
a32 1
INFO_FILES=		chill cpp g77 gcc
d44 2
a45 1
CONFIGURE_ARGS+=	--with-gnu-as --with-gnu-ld
@


1.25
log
@Remove link "${PREFIX}/${PKGNAME}/bin/cc" before trying to create it to
avoid install failures in case of an incomplete install before.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2001/06/07 11:57:52 tron Exp $
d81 1
@


1.24
log
@Add missing "INFO_FILES" assignment.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2001/05/04 10:15:44 skrll Exp $
d79 1
a80 1
	${RM} -f ${GCC_PREFIX}/lib/gcc-lib/${MACHINE_GCC_PLATFORM}/${GCC_VERSION}/include/curses.h
@


1.23
log
@Add --enable-shared to the configuration phase so that a shared libstdc++
gets built.

Add makefile fragments to do the right thing for elf and a.out. Make sure
they are used.

Add @@exec/@@unexec install-info to the PLIST.

Fixes pkg/12154 from Olaf Seibert <rhialto@@polderland.nl>
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2001/04/30 19:02:27 jlam Exp $
d32 1
@


1.22
log
@Make gcc/Makefile and pgcc/Makefile look more similar.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2001/04/21 14:07:30 wiz Exp $
d29 2
a30 1
			--prefix=${GCC_PREFIX}
d61 1
@


1.21
log
@echo -> ${ECHO}
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2001/03/27 03:20:03 hubertf Exp $
d44 4
a47 1
PLIST_SRC=		${WRKDIR}/_PLIST_SRC
a59 7
.if ${MACHINE_PLATFORM:MNetBSD-*-sparc}
	${ECHO} '$${PKGNAME}/lib/gcc-lib/$${MACHINE_GCC_PLATFORM}/$${GCC_VERSION}/crtbegin.o' >>${PLIST_SRC}
	${ECHO} '$${PKGNAME}/lib/gcc-lib/$${MACHINE_GCC_PLATFORM}/$${GCC_VERSION}/crtbeginS.o' >>${PLIST_SRC}
	${ECHO} '$${PKGNAME}/lib/gcc-lib/$${MACHINE_GCC_PLATFORM}/$${GCC_VERSION}/crtend.o' >>${PLIST_SRC}
	${ECHO} '$${PKGNAME}/lib/gcc-lib/$${MACHINE_GCC_PLATFORM}/$${GCC_VERSION}/crtendS.o' >>${PLIST_SRC}
.endif
	${CAT} ${PKGDIR}/PLIST >>${PLIST_SRC}
@


1.20
log
@Change BUILD_DEPENDS semantics:
first component is now a package name+version/pattern, no more
executable/patchname/whatnot.

While there, introduce BUILD_USES_MSGFMT as shorthand to pull in
devel/gettext unless /usr/bin/msgfmt exists (i.e. on post-1.5 -current).

Patch by Alistair Crooks <agc@@netbsd.org>
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2001/03/01 02:10:22 hubertf Exp $
d58 4
a61 4
	echo '$${PKGNAME}/lib/gcc-lib/$${MACHINE_GCC_PLATFORM}/$${GCC_VERSION}/crtbegin.o' >>${PLIST_SRC}
	echo '$${PKGNAME}/lib/gcc-lib/$${MACHINE_GCC_PLATFORM}/$${GCC_VERSION}/crtbeginS.o' >>${PLIST_SRC}
	echo '$${PKGNAME}/lib/gcc-lib/$${MACHINE_GCC_PLATFORM}/$${GCC_VERSION}/crtend.o' >>${PLIST_SRC}
	echo '$${PKGNAME}/lib/gcc-lib/$${MACHINE_GCC_PLATFORM}/$${GCC_VERSION}/crtendS.o' >>${PLIST_SRC}
@


1.19
log
@gcc installs a few extra files on sparc:
/usr/pkg/gcc-2.95.2//lib/gcc-lib/sparc--netbsdelf/2.95.2/crtbegin.o
/usr/pkg/gcc-2.95.2//lib/gcc-lib/sparc--netbsdelf/2.95.2/crtbeginS.o
/usr/pkg/gcc-2.95.2//lib/gcc-lib/sparc--netbsdelf/2.95.2/crtend.o
/usr/pkg/gcc-2.95.2//lib/gcc-lib/sparc--netbsdelf/2.95.2/crtendS.o

Make sure they find their way into PLIST
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2001/02/28 23:51:12 jlam Exp $
d11 1
a11 1
BUILD_DEPENDS+=		${LOCALBASE}/bin/bison:../../devel/bison
@


1.18
log
@Minimize differences between gcc/Makefile and pgcc/Makefile.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2001/02/28 23:49:18 jlam Exp $
d44 1
d57 7
@


1.17
log
@Make comment for ONLY_FOR_PLATFORM a bit more generic and reorder the
platforms so that NetBSD comes first (just because ;)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2001/02/28 23:28:08 hubertf Exp $
d36 1
a36 1
SRCDIR=			${WRKDIR}/${PKGNAME}
@


1.16
log
@Make this pkg work on NetBSD/sparc.
Patches contributes by Michael Rauch <mrauch@@fs.tum.de> in PR 12299
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2001/02/21 18:12:20 jlam Exp $
d13 2
a14 2
# NetBSD-arm32, NetBSD-i386 and NetBSD-m68k are the only tested platforms
# so far. If you got it working on other platforms please add them.
d16 1
a16 1
			SunOS-*-* NetBSD-*-sparc
@


1.15
log
@Make lang/gcc and lang/pgcc conflict under Solaris as both install directly
under ${LOCALBASE}.  This doesn't affect NetBSD as, there, both install
under ${LOCALBASE}/${PKGNAME}.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2001/02/17 09:07:08 agc Exp $
d16 1
a16 1
			SunOS-*-*
@


1.14
log
@Move the COMMENT from being in its own file to a definition in the
package Makefile.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2001/02/08 17:27:01 jlam Exp $
d51 1
@


1.13
log
@Add missing semicolon.
Fixes PR#12153 by Olaf Seibert <rhialto@@polderland.nl>.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2001/01/29 11:34:29 wiz Exp $
d9 1
@


1.12
log
@Add automatic ${VARIABLE} handling for MESSAGE files.
Convert most MESSAGE files to new syntax (${VARIABLE} gets replaced,
not @@VARIABLE@@, nor @@@@VARIABLE@@@@).
By default, substitutions are done for LOCALBASE, PKGNAME, PREFIX,
X11BASE, X11PREFIX; additional patterns can be added via MESSAGE_SUBST.
Clean up some packages while I'm there; add RCS tags to most MESSAGEs.
Remove some uninteresting MESSAGEs.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2001/01/13 00:34:55 tron Exp $
d60 1
a60 1
	for FILE in ${FILESDIR}/gcc.mk do \
@


1.11
log
@Fix thinko in last commit.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2001/01/13 00:21:11 tron Exp $
d32 1
a42 1
MESSAGE_FILE=		${WRKDIR}/MESSAGE
d49 1
a49 1
MESSAGE_FILE=		${PKGDIR}/MESSAGE.SunOS
d60 1
a60 1
	for FILE in ${FILESDIR}/gcc.mk ${PKGDIR}/MESSAGE; do \
@


1.10
log
@It doesn't make sense to remove "bin/cc" and recreate it later in
"post-install" target.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2001/01/11 06:53:10 tron Exp $
d68 1
d70 1
a70 3
.if (${OPSYS} == SunOS)
	${RM} -f ${GCC_PREFIX}/bin/cc
.else
@


1.9
log
@Make this package work with Solaris:
- It can be bootstraped with Sun Workshop.
- It goes to "${LOCALBASE}" directly because there is no possible conflict
  with the system's GNU C compiler.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2000/09/25 22:19:19 fredb Exp $
d69 4
a72 3
	${RM} -f ${PREFIX}/${PKGNAME}/lib/gcc-lib/${MACHINE_GCC_PLATFORM}/${GCC_VERSION}/include/curses.h ${PREFIX}/${PKGNAME}/bin/cc
.if (${OPSYS} != SunOS)
	${LN} -s gcc ${PREFIX}/${PKGNAME}/bin/cc
@


1.8
log
@Avoid running "autoheader" -- it can't help you, but it can hurt you!
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2000/09/22 21:15:36 tron Exp $
d14 2
a15 1
ONLY_FOR_PLATFORM=	NetBSD-*-arm32 NetBSD-*-i386 NetBSD-*-m68k
d28 1
a28 2
			--prefix=${LOCALBASE}/${PKGNAME} \
			--with-gnu-as --with-gnu-ld
a31 1
MESSAGE_FILE=		${WRKDIR}/MESSAGE
d37 15
d58 1
d64 1
a64 1
	   <$$FILE >${WRKDIR}/$${FILE##*/}; \
d66 1
d70 1
d73 1
d76 3
@


1.7
log
@Mention support of "NetBSD-m68k" in comment and correct a typo.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2000/09/22 01:51:56 fredb Exp $
d40 3
@


1.6
log
@What do you know... this builds on m68k/1.4.3.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2000/09/16 00:19:45 tron Exp $
d12 2
a13 2
# NetBSD-arm32 and NetBSD-i386 are the only tested platform so far.
# If you got it working on other platforms please add them.
@


1.5
log
@Add a message which explains how to use "gcc-2.95.2" via "MAKECONF".
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2000/09/15 23:58:47 tron Exp $
d14 1
a14 1
ONLY_FOR_PLATFORM=	NetBSD-*-arm32 NetBSD-*-i386
@


1.4
log
@- Add patches from NetBSD-current to fix build on i386 ELF systems.
- Install into "${LOCALBASE}/gcc-2.95.2" to avoid that e.g. "bsd.pkg.mk"
  picks up the new compiler by accident.
- Add a file "${LOCALBASE}/etc/gcc-2.95.2.mk" which makes it possible to
  use the new "gcc" like this:
  make MAKECONF=/usr/pkg/etc/gcc-2.95.2.mk
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2000/05/23 22:09:58 tron Exp $
d32 1
d42 6
a47 2
	${SED} -e 's#@@@@PKGNAME@@@@#${PKGNAME}#g' -e 's#@@@@PREFIX@@@@#${PREFIX}#g' \
	  <${FILESDIR}/gcc.mk >${WRKDIR}/gcc.mk
@


1.3
log
@- Remove broken NetBSD i386 ELF support for the moment. Something in
  NetBSD's "egcs" configuration files breaks the build of "libiberty"
  obviously.
- Make this package work on NetBSD arm32.
- Actually add entries to package list.

Still to do:
- rename binaries to avoid conflicts with base distribution
- improve directory structure
- support more platforms
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2000/03/27 08:54:58 tron Exp $
d12 17
a28 11
# TODO:
# - rename binaries to avoid conflicts with base distribution
# - improve directory structure
# - support more platforms

# NetBSD-arm32 is the only tested platform so far. If you got it
# working on other platforms please add them.
ONLY_FOR_PLATFORM=	NetBSD-*-arm32

USE_GMAKE=		yes
GNU_CONFIGURE=		yes
a29 1
CONFIGURE_ARGS+=	--with-gnu-as --with-gnu-ld
d31 4
a34 1
SRCDIR=			${WRKDIR}/${DISTNAME}
d39 9
@


1.2
log
@Adapt to new handling of "${CONFIGURE}".
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1.1.1 2000/03/24 23:41:20 tron Exp $
a11 1
BROKEN=			package needs more work, see "Makefile".
d13 2
a14 2
# - get "libiberty" to build
# - add files and directores to package list
d17 1
a17 1
# NetBSD-i386-elf is the only tested platform so far. If you got it
d19 1
a19 1
ONLY_FOR_PLATFORM=	NetBSD-1.4[E-Z]-i386 NetBSD-1.[5-9]*-i386
a28 4
CONFDIR=		${SRCDIR}/gcc/config
# Files taken from "src/gnu/dist/gcc/config".
CONFFILES=		i386_netbsd-elf.h i386_netbsd.h

a30 8
	for FILE in ${CONFFILES}; do \
	  case "$$FILE" in \
	  *_* )	${CP} ${FILESDIR}/$$FILE ${CONFDIR}/$${FILE%%_*}/$${FILE#*_} \
		;; \
	  * )	${CP} ${FILESDIR}/$$FILE ${CONFDIR} \
	  	;; \
	  esac; \
	done
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $NetBSD$
d22 1
d24 2
a25 2
USE_GMAKE=		yes
CONFIGURE_SCRIPT=	../${DISTNAME}/configure
d27 2
a28 2
CONFIGURE_ARGS+=	--with-gnu-as --with-gnu-ld
WRKSRC=			${WRKDIR}/obj-${MACHINE_GNU_PLATFORM}
d30 1
a30 1
CONFDIR=		${WRKDIR}/${DISTNAME}/gcc/config
@


1.1.1.1
log
@Initial import of unfinished "gcc-2.95.2" package:
GNU Compiler Collection
@
text
@@
