head	1.32;
access;
symbols
	pkgsrc-2021Q3:1.31.0.4
	pkgsrc-2021Q3-base:1.31
	pkgsrc-2021Q2:1.31.0.2
	pkgsrc-2021Q2-base:1.31
	pkgsrc-2021Q1:1.30.0.8
	pkgsrc-2021Q1-base:1.30
	pkgsrc-2020Q4:1.30.0.6
	pkgsrc-2020Q4-base:1.30
	pkgsrc-2020Q3:1.30.0.4
	pkgsrc-2020Q3-base:1.30
	pkgsrc-2020Q2:1.30.0.2
	pkgsrc-2020Q2-base:1.30
	pkgsrc-2020Q1:1.29.0.2
	pkgsrc-2020Q1-base:1.29
	pkgsrc-2019Q4:1.29.0.4
	pkgsrc-2019Q4-base:1.29
	pkgsrc-2019Q3:1.28.0.40
	pkgsrc-2019Q3-base:1.28
	pkgsrc-2019Q2:1.28.0.38
	pkgsrc-2019Q2-base:1.28
	pkgsrc-2019Q1:1.28.0.36
	pkgsrc-2019Q1-base:1.28
	pkgsrc-2018Q4:1.28.0.34
	pkgsrc-2018Q4-base:1.28
	pkgsrc-2018Q3:1.28.0.32
	pkgsrc-2018Q3-base:1.28
	pkgsrc-2018Q2:1.28.0.30
	pkgsrc-2018Q2-base:1.28
	pkgsrc-2018Q1:1.28.0.28
	pkgsrc-2018Q1-base:1.28
	pkgsrc-2017Q4:1.28.0.26
	pkgsrc-2017Q4-base:1.28
	pkgsrc-2017Q3:1.28.0.24
	pkgsrc-2017Q3-base:1.28
	pkgsrc-2017Q2:1.28.0.20
	pkgsrc-2017Q2-base:1.28
	pkgsrc-2017Q1:1.28.0.18
	pkgsrc-2017Q1-base:1.28
	pkgsrc-2016Q4:1.28.0.16
	pkgsrc-2016Q4-base:1.28
	pkgsrc-2016Q3:1.28.0.14
	pkgsrc-2016Q3-base:1.28
	pkgsrc-2016Q2:1.28.0.12
	pkgsrc-2016Q2-base:1.28
	pkgsrc-2016Q1:1.28.0.10
	pkgsrc-2016Q1-base:1.28
	pkgsrc-2015Q4:1.28.0.8
	pkgsrc-2015Q4-base:1.28
	pkgsrc-2015Q3:1.28.0.6
	pkgsrc-2015Q3-base:1.28
	pkgsrc-2015Q2:1.28.0.4
	pkgsrc-2015Q2-base:1.28
	pkgsrc-2015Q1:1.28.0.2
	pkgsrc-2015Q1-base:1.28
	pkgsrc-2014Q4:1.27.0.18
	pkgsrc-2014Q4-base:1.27
	pkgsrc-2014Q3:1.27.0.16
	pkgsrc-2014Q3-base:1.27
	pkgsrc-2014Q2:1.27.0.14
	pkgsrc-2014Q2-base:1.27
	pkgsrc-2014Q1:1.27.0.12
	pkgsrc-2014Q1-base:1.27
	pkgsrc-2013Q4:1.27.0.10
	pkgsrc-2013Q4-base:1.27
	pkgsrc-2013Q3:1.27.0.8
	pkgsrc-2013Q3-base:1.27
	pkgsrc-2013Q2:1.27.0.6
	pkgsrc-2013Q2-base:1.27
	pkgsrc-2013Q1:1.27.0.4
	pkgsrc-2013Q1-base:1.27
	pkgsrc-2012Q4:1.27.0.2
	pkgsrc-2012Q4-base:1.27
	pkgsrc-2012Q3:1.26.0.28
	pkgsrc-2012Q3-base:1.26
	pkgsrc-2012Q2:1.26.0.26
	pkgsrc-2012Q2-base:1.26
	pkgsrc-2012Q1:1.26.0.24
	pkgsrc-2012Q1-base:1.26
	pkgsrc-2011Q4:1.26.0.22
	pkgsrc-2011Q4-base:1.26
	pkgsrc-2011Q3:1.26.0.20
	pkgsrc-2011Q3-base:1.26
	pkgsrc-2011Q2:1.26.0.18
	pkgsrc-2011Q2-base:1.26
	pkgsrc-2011Q1:1.26.0.16
	pkgsrc-2011Q1-base:1.26
	pkgsrc-2010Q4:1.26.0.14
	pkgsrc-2010Q4-base:1.26
	pkgsrc-2010Q3:1.26.0.12
	pkgsrc-2010Q3-base:1.26
	pkgsrc-2010Q2:1.26.0.10
	pkgsrc-2010Q2-base:1.26
	pkgsrc-2010Q1:1.26.0.8
	pkgsrc-2010Q1-base:1.26
	pkgsrc-2009Q4:1.26.0.6
	pkgsrc-2009Q4-base:1.26
	pkgsrc-2009Q3:1.26.0.4
	pkgsrc-2009Q3-base:1.26
	pkgsrc-2009Q2:1.26.0.2
	pkgsrc-2009Q2-base:1.26
	pkgsrc-2009Q1:1.24.0.2
	pkgsrc-2009Q1-base:1.24
	pkgsrc-2008Q4:1.23.0.14
	pkgsrc-2008Q4-base:1.23
	pkgsrc-2008Q3:1.23.0.12
	pkgsrc-2008Q3-base:1.23
	cube-native-xorg:1.23.0.10
	cube-native-xorg-base:1.23
	pkgsrc-2008Q2:1.23.0.8
	pkgsrc-2008Q2-base:1.23
	cwrapper:1.23.0.6
	pkgsrc-2008Q1:1.23.0.4
	pkgsrc-2008Q1-base:1.23
	pkgsrc-2007Q4:1.23.0.2
	pkgsrc-2007Q4-base:1.23
	pkgsrc-2007Q3:1.21.0.2
	pkgsrc-2007Q3-base:1.21
	pkgsrc-2007Q2:1.20.0.4
	pkgsrc-2007Q2-base:1.20
	pkgsrc-2007Q1:1.20.0.2
	pkgsrc-2007Q1-base:1.20
	pkgsrc-2006Q4:1.19.0.2
	pkgsrc-2006Q4-base:1.19
	pkgsrc-2006Q3:1.18.0.2
	pkgsrc-2006Q3-base:1.18
	pkgsrc-2006Q2:1.16.0.2
	pkgsrc-2006Q2-base:1.16
	pkgsrc-2006Q1:1.15.0.2
	pkgsrc-2006Q1-base:1.15
	pkgsrc-2005Q4:1.14.0.10
	pkgsrc-2005Q4-base:1.14
	pkgsrc-2005Q3:1.14.0.8
	pkgsrc-2005Q3-base:1.14
	pkgsrc-2005Q2:1.14.0.6
	pkgsrc-2005Q2-base:1.14
	pkgsrc-2005Q1:1.14.0.4
	pkgsrc-2005Q1-base:1.14
	pkgsrc-2004Q4:1.14.0.2
	pkgsrc-2004Q4-base:1.14
	pkgsrc-2004Q3:1.13.0.2
	pkgsrc-2004Q3-base:1.13
	pkgsrc-2004Q2:1.12.0.2
	pkgsrc-2004Q2-base:1.12
	pkgsrc-2004Q1:1.9.0.2
	pkgsrc-2004Q1-base:1.9
	pkgsrc-2003Q4:1.7.0.2
	pkgsrc-2003Q4-base:1.7;
locks; strict;
comment	@# @;


1.32
date	2021.10.08.16.38.31;	author nia;	state dead;
branches;
next	1.31;
commitid	40BbVLpGn10MK1cD;

1.31
date	2021.05.24.19.52.31;	author wiz;	state Exp;
branches;
next	1.30;
commitid	qokaiStTApGMcrUC;

1.30
date	2020.05.13.05.02.08;	author rillig;	state Exp;
branches;
next	1.29;
commitid	FsXiw1uYdPAbo28C;

1.29
date	2019.11.03.19.03.58;	author rillig;	state Exp;
branches;
next	1.28;
commitid	puQpdVbj8afCdrJB;

1.28
date	2015.03.21.01.17.08;	author tnn;	state Exp;
branches;
next	1.27;
commitid	GDIfhzKFRU3Ezpey;

1.27
date	2012.10.02.20.11.40;	author asau;	state Exp;
branches;
next	1.26;

1.26
date	2009.06.16.15.25.31;	author joerg;	state Exp;
branches;
next	1.25;

1.25
date	2009.06.14.22.58.01;	author joerg;	state Exp;
branches;
next	1.24;

1.24
date	2009.02.28.18.37.22;	author joerg;	state Exp;
branches;
next	1.23;

1.23
date	2007.10.25.21.04.22;	author jlam;	state Exp;
branches;
next	1.22;

1.22
date	2007.10.13.15.06.29;	author heinz;	state Exp;
branches;
next	1.21;

1.21
date	2007.09.08.10.41.01;	author adrianp;	state Exp;
branches;
next	1.20;

1.20
date	2007.02.15.14.35.13;	author rillig;	state Exp;
branches;
next	1.19;

1.19
date	2006.12.07.11.24.28;	author markd;	state Exp;
branches;
next	1.18;

1.18
date	2006.09.27.15.46.11;	author abs;	state Exp;
branches;
next	1.17;

1.17
date	2006.09.27.14.20.28;	author pooka;	state Exp;
branches;
next	1.16;

1.16
date	2006.03.30.03.44.43;	author jlam;	state Exp;
branches;
next	1.15;

1.15
date	2006.02.05.23.09.44;	author joerg;	state Exp;
branches;
next	1.14;

1.14
date	2004.12.03.15.15.00;	author wiz;	state Exp;
branches;
next	1.13;

1.13
date	2004.07.02.15.40.01;	author drochner;	state Exp;
branches;
next	1.12;

1.12
date	2004.05.22.17.48.22;	author abs;	state Exp;
branches;
next	1.11;

1.11
date	2004.04.10.16.37.22;	author seb;	state Exp;
branches;
next	1.10;

1.10
date	2004.04.10.15.47.08;	author seb;	state Exp;
branches;
next	1.9;

1.9
date	2004.02.18.13.33.41;	author jlam;	state Exp;
branches;
next	1.8;

1.8
date	2004.02.01.14.05.46;	author jlam;	state Exp;
branches;
next	1.7;

1.7
date	2003.08.11.14.16.00;	author drochner;	state Exp;
branches;
next	1.6;

1.6
date	2003.08.08.09.31.02;	author grant;	state Exp;
branches;
next	1.5;

1.5
date	2003.07.17.09.07.56;	author abs;	state Exp;
branches;
next	1.4;

1.4
date	2003.07.16.20.23.59;	author drochner;	state Exp;
branches;
next	1.3;

1.3
date	2003.07.08.15.04.56;	author drochner;	state Exp;
branches;
next	1.2;

1.2
date	2003.07.06.12.31.58;	author grant;	state Exp;
branches;
next	1.1;

1.1
date	2003.07.06.12.15.07;	author drochner;	state Exp;
branches;
next	;


desc
@@


1.32
log
@lang: Remove gcc3.
@
text
@# $NetBSD: Makefile,v 1.31 2021/05/24 19:52:31 wiz Exp $

PKGNAME=	gcc3${GCC3_PKGMODIF}-c-${GCC_VERSION}
PKGREVISION=	2
COMMENT=	GNU Compiler Collection, v3 - C compiler

INFO_FILES=	yes

.include "../../lang/gcc3/Makefile.common"

TOOLS_BROKEN+=	perl

# The "gcc" frontend knows all languages (by patch)
CONFIGURE_ARGS+=	--enable-languages=c

MAKE_ENV+=	ALL_GCC=${ALL_GCC:Q}
MAKE_ENV+=	ALL_GCC_C=${ALL_GCC_C:Q}
MAKE_ENV+=	ALL_GCC_CCC=${ALL_GCCXX_C:Q}

.include "../../mk/compiler.mk"

.if empty(PKGSRC_COMPILER:Mgcc)
BUILD_TARGET=	bootstrap
# make it find it's own libgcc_s.so.1, the system might not provide it
MAKE_ENV+=	LD_LIBRARY_PATH=${WRKSRC}/gcc
.endif

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

GENERATE_PLIST+=							\
	${FIND} ${DESTDIR:Q}${GCC_PREFIX} \( -type f -o -type l \) -print \
		| ${SORT} | ${SED} -e "s,${DESTDIR}${PREFIX}/,,g";

post-install:
.if ${OPSYS} == "SunOS"
	cd ${DESTDIR:Q}${GCC_ARCHDIR}/include && ${RM} -f fixed
.  if exists(${DESTDIR}${GCC_ARCHDIR}/include/v7)
	${RMDIR} ${DESTDIR:Q}${GCC_ARCHDIR}/include/v7
.  endif
.  if exists(${DESTDIR}${GCC_ARCHDIR}/include/v9)
	${RMDIR} ${DESTDIR:Q}${GCC_ARCHDIR}/include/v9
.  endif
.endif
	${INSTALL_DATA_DIR} ${DESTDIR:Q}${GCC_PREFIX}/mk
	${INSTALL_DATA} ${WRKDIR}/gcc3.mk ${DESTDIR:Q}${GCC_PREFIX}/mk/c.mk
	${LN} -f ${DESTDIR:Q}${GCC_PREFIX}/bin/gcc ${DESTDIR:Q}${GCC_PREFIX}/bin/cc

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


1.31
log
@*: recursive bump for perl 5.34
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.30 2020/05/13 05:02:08 rillig Exp $
@


1.30
log
@lang/gcc3*: suppress USE_TOOLS+=perl warning
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.29 2019/11/03 19:03:58 rillig Exp $
d4 1
a4 1
PKGREVISION=	1
@


1.29
log
@lang: align variable assignments

pkglint -Wall -F --only aligned --only indent -r

No manual corrections.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.28 2015/03/21 01:17:08 tnn Exp $
d11 2
@


1.28
log
@Fix build on MKGCC=no systems
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.27 2012/10/02 20:11:40 asau Exp $
d36 1
a36 1
.if exists(${DESTDIR}${GCC_ARCHDIR}/include/v7)
d38 2
a39 2
.endif
.if exists(${DESTDIR}${GCC_ARCHDIR}/include/v9)
d41 1
a41 1
.endif
@


1.27
log
@Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.26 2009/06/16 15:25:31 joerg Exp $
d20 1
a20 1
.if empty(CC_VERSION:Mgcc-*)
d22 2
@


1.26
log
@Fix a number of GENERATE_PLIST entries to always have a terminating ;
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2009/06/14 22:58:01 joerg Exp $
a6 2
PKG_DESTDIR_SUPPORT=	user-destdir

@


1.25
log
@Remove @@dirrm related logic.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2009/02/28 18:37:22 joerg Exp $
d31 1
a31 1
		| ${SORT} | ${SED} -e "s,${DESTDIR}${PREFIX}/,,g"
@


1.24
log
@Fix C++ build on NetBSD 5.x. Bump revision of gcc3-c.
Inspired by patch from Aran Clauson in the GCC Bugzilla.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2007/10/25 21:04:22 jlam Exp $
d31 1
a31 3
		| ${SORT} | ${SED} -e "s,${DESTDIR}${PREFIX}/,,g";	\
	${FIND} ${DESTDIR:Q}${GCC_PREFIX} -type d -print		\
		| ${SORT} -r | ${SED} -e "s,${DESTDIR}${PREFIX}/,@@dirrm ,g";
@


1.23
log
@Move code that generates a dynamic PLIST from the {pre,do,post}-install
targets and into a GENERATE_PLIST variable definition.  Remove some
unnecessary empty PLISTs as a result of properly setting GENERATE_PLIST.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2007/10/13 15:06:29 heinz Exp $
d4 1
@


1.22
log
@Added support for installation to DESTDIR.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2007/09/08 10:41:01 adrianp Exp $
a13 1
PLIST_SRC=		${WRKDIR}/PLIST_DYNAMIC
d28 6
a46 7
	${CP} -f ${PKGDIR}/PLIST ${PLIST_SRC}
	${FIND} ${DESTDIR:Q}${GCC_PREFIX} \( -type f -o -type l \) -print \
		| ${SORT} | ${SED} -e "s,${DESTDIR}${PREFIX}/,,g"	\
		>> ${PLIST_SRC}
	${FIND} ${DESTDIR:Q}${GCC_PREFIX} -type d -print		\
		| ${SORT} -r | ${SED} -e "s,${DESTDIR}${PREFIX}/,@@dirrm ,g" \
		>> ${PLIST_SRC}
@


1.21
log
@The v7 and v9 directories on SunOS may not exist so only try and remove
them if they do exist.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2007/02/15 14:35:13 rillig Exp $
d6 2
d31 3
a33 3
	cd ${GCC_ARCHDIR}/include && ${RM} -f fixed
.if exists(${GCC_ARCHDIR}/include/v7)
	${RMDIR} ${GCC_ARCHDIR}/include/v7
d35 2
a36 2
.if exists(${GCC_ARCHDIR}/include/v9)
	${RMDIR} ${GCC_ARCHDIR}/include/v9
d39 3
a41 3
	${INSTALL_DATA_DIR} ${GCC_PREFIX}/mk
	${INSTALL_DATA} ${WRKDIR}/gcc3.mk ${GCC_PREFIX}/mk/c.mk
	${LN} -f ${GCC_PREFIX}/bin/gcc ${GCC_PREFIX}/bin/cc
d43 2
a44 2
	${FIND} ${GCC_PREFIX} \( -type f -o -type l \) -print		\
		| ${SORT} | ${SED} -e "s,${PREFIX}/,,g"			\
d46 2
a47 2
	${FIND} ${GCC_PREFIX} -type d -print				\
		| ${SORT} -r | ${SED} -e "s,${PREFIX}/,@@dirrm ,g"	\
@


1.20
log
@Fixed pkglint warnings.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2006/12/07 11:24:28 markd Exp $
d29 7
a35 1
	cd ${GCC_ARCHDIR}/include && ${RM} -f fixed && ${RMDIR} v7 v9
@


1.19
log
@Update gcc3-* to 3.3.6.  Fix build of gcc3-f77 and gcc3-java on
NetBSD-current.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2006/09/27 15:46:11 abs Exp $
d6 1
a6 1
INFO_FILES=	# PLIST
d25 1
a25 1
	@@${SED} ${FILES_SUBST_SED} ${FILESDIR}/gcc3.mk > ${WRKDIR}/gcc3.mk
d29 1
a29 1
	-cd ${GCC_ARCHDIR}/include && ${RM} -f fixed && ${RMDIR} v7 v9
@


1.18
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.17 2006/09/27 14:20:28 pooka Exp $
a3 1
PKGREVISION=	1
@


1.17
log
@run make with env SHELL=/bin/sh.  avoids shell hell and makes the
build work if your shell happens to be hell (i.e. tcsh)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2006/03/30 03:44:43 jlam Exp $
a17 1
MAKE_ENV+=	SHELL=/bin/sh
@


1.16
log
@* Honor PKGINFODIR.
* List the info files directly in the PLIST.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2006/02/05 23:09:44 joerg Exp $
d18 1
@


1.15
log
@Recursive revision bump / recommended bump for gettext ABI change.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2004/12/03 15:15:00 wiz Exp $
d7 1
a7 1
INFO_FILES=	cpp.info gcc.info gccint.info cppinternals.info
@


1.14
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.13 2004/07/02 15:40:01 drochner Exp $
d4 1
@


1.13
log
@update to 3.3.4
bugfixes only afaict, no new features, no new files
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2004/05/22 17:48:22 abs Exp $
d21 1
a21 1
ALL_TARGET=	bootstrap
@


1.12
log
@Update gcc3-ada to 3.3.3nb1
Update gcc3-c++ to 3.3.3nb1
Update gcc3-c	to 3.3.3nb2
Update gcc3-f77 to 3.3.3nb1
Update gcc3-java to 3.3.3nb1
Update gcc3-objc to 3.3.3nb1
Update gcc3 to 3.3.3nb1

gcc arm: fix GCC _P_R_ target/14302

        Apply gcc fix for gcc PR target/14302 to fix ARM compiler
        issues triggered by at least glib, glib2, and pkgconfig.

             2004-02-26  Richard Earnshaw  <rearnsha@@arm.com>
                   Daniel Jacobowitz  <drow@@mvista.com>

                   PR target/14302
                   * arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS): Don't check the mode
                   size for minipool references.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2004/04/10 16:37:22 seb Exp $
a3 1
PKGREVISION=	2
@


1.11
log
@Apply sparc64 fix from gcc cvs via
src/gnu/dist/gcc/gcc/config/sparc/sparc.h revision 1.2.

Bump PKGREVISION of gcc3-c package.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2004/04/10 15:47:08 seb Exp $
d4 1
a4 1
PKGREVISION=	1
@


1.10
log
@Make all gcc3-* packages use a single distinfo file from gcc3/distinfo and
a single patch directory from gcc3/patches/.
Also Move gcc3-c/{Makefile.common,language.mk} into gcc3/.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2004/02/18 13:33:41 jlam Exp $
d4 1
@


1.9
log
@Include "../../mk/compiler.mk" to get the value of CC_VERSION before
testing it.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2004/02/01 14:05:46 jlam Exp $
d8 1
a8 1
.include "Makefile.common"
d14 4
@


1.8
log
@bl3ify the gcc3-* packages.  Also provide buildlink[23].mk files for use
by bsd.compiler.mk.  Note that in the buildlink3.mk files, the dependency
is always added regardless of the BUILDLINK_DEPTH.  This is because these
buildlink3.mk files may be included by bsd.prefs.mk, which is often
included other buildlink3.mk files, and we need to ensure that regardless
of the depth, we are using the correct compiler.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2003/08/11 14:16:00 drochner Exp $
d14 2
@


1.7
log
@update to 3.3.1
@
text
@d1 1
a1 2
# $NetBSD: Makefile,v 1.6 2003/08/08 09:31:02 grant Exp $
#
d3 2
a4 2
PKGNAME=		gcc3${GCC3_PKGMODIF}-c-${GCC_VERSION}
COMMENT=		GNU Compiler Collection, version 3, C compiler
d10 1
a10 1
# the "gcc" frontend knows all languages (by patch)
d12 5
a16 1
PLIST_SRC=	${WRKDIR}/PLIST_DYNAMIC
@


1.6
log
@include major version number in COMMENT for distinction, some minor
COMMENT tweaks.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2003/07/17 09:07:56 abs Exp $
a4 1
PKGREVISION=		1
@


1.5
log
@Update:
        gcc3 to 3.3nb5
        gcc3-c to 3.3nb1
        gcc3-c++ to 3.3nb1
In gcc3.mk set CPP to '.../cpp -gcc' rather than '.../cpp'
Ensure __GNUC__ and similar are defined.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2003/07/16 20:23:59 drochner Exp $
d6 1
a6 1
COMMENT=		GNU Compiler Collection, C compiler
@


1.4
log
@elaborate the INSTALLTO_SUBPREFIX thing a bit more: modify the
PKGNAME if we are installing to an alternative location so that the
pkg system doesn't complain about conflicts.
Now it is possible to install a gcc3 tree to some location where
it can be used to bootstrap another instance of itself...
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2003/07/08 15:04:56 drochner Exp $
d5 1
@


1.3
log
@some cleanup:
-USE_NEW_TEXINFO, saves some patches
-symlink libiberty.a into build tree instead of buildlink/lib,
 saves some patches
-put common make rules into Makefile.common (for all) and
 buildaddon.mk (for all but the base "c" pkg)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2003/07/06 12:31:58 grant Exp $
d4 1
a4 1
PKGNAME=		gcc3-c-${GCC_VERSION}
@


1.2
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.1 2003/07/06 12:15:07 drochner Exp $
d4 2
a5 42
DISTNAME=		gcc-3.3
PKGNAME=		gcc3-c-3.3
CATEGORIES=		lang
MASTER_SITES=		${MASTER_SITE_GNU:=gcc/gcc-3.3/}
EXTRACT_SUFX=		.tar.bz2

MAINTAINER=		tech-pkg@@netbsd.org
HOMEPAGE=		http://www.gnu.org/software/gcc/gcc.html
COMMENT=		GNU Compiler Collection

# XXX just because of .info files
#CONFLICTS+=		gcc-3* pgcc-[0-9]* gcc3-[0-9]*

NOT_FOR_PLATFORM=	Darwin-*-*

USE_BUILDLINK2=		YES
USE_PKGINSTALL=		YES
USE_GMAKE=		YES

HAS_CONFIGURE=		YES

CONFIGURE_ARGS+=	--infodir=${PREFIX}/info
CONFIGURE_ARGS+=	--prefix=${GCC_PREFIX}

# as this is named gcc3, use DISTNAME instead.
FILES_SUBST+=		PKGNAME_NOREV=${DISTNAME} GCC_PREFIX=${GCC_PREFIX}
MESSAGE_SUBST+=		PKGNAME_NOREV=${DISTNAME}

TEXINFO_REQD=		4.2
INFO_FILES=		cpp.info gcc.info

.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD" && exists(/usr/include/pthread.h)
CONFIGURE_ARGS+=	--host=${MACHINE_GNU_ARCH}--netbsdelf2.0
PTHREAD_OPTS+=		require native
.include "../../mk/pthread.buildlink2.mk"
CPPFLAGS+=	-I${BUILDLINK_DIR}/include
CFLAGS+=	-I${BUILDLINK_DIR}/include
.else
CONFIGURE_ARGS+=	--host=${MACHINE_GNU_PLATFORM}
.endif
CONFIGURE_ARGS+=	--enable-languages="c"
d7 1
a7 8
.if ${OPSYS} == "NetBSD" && !defined(USE_BINUTILS)
AS_VERSION!=		${AS} --version | ${AWK} '{				\
			    split($$3, v, /[.]/);				\
			    printf "%02d%02d%02d%02d\n",v[1],v[2],v[3],v[4];	\
			    exit;						\
			}'
USE_BINUTILS!=		${TEST} ${AS_VERSION} -lt 02130201 && echo YES || echo NO
.endif
d9 1
a9 5
.if defined(USE_BINUTILS) && ${USE_BINUTILS} == "YES"
DEPENDS=		binutils>=2.13.2.1:../../devel/binutils
CONFIGURE_ARGS+=	--with-as=${PREFIX}/${MACHINE_GNU_PLATFORM}/bin/as
#.  include "../../devel/binutils/buildlink2.mk"
.endif
d11 2
a12 16
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "Linux"
CONFIGURE_ARGS+=	--enable-shared
.else
.  if ${OPSYS} == "SunOS"
CONFIGURE_ARGS+=	--enable-shared
.  else
CONFIGURE_ARGS+=	--disable-shared
.  endif
.  if ${CC:M*gcc*} == ""
ALL_TARGET=		bootstrap
.  endif
.endif

GCC_PREFIX=	${PREFIX}/gcc3
GCC_VERSION=	${PKGVERSION:C|nb*||}
GCC_ARCHDIR=	${GCC_PREFIX}/lib/gcc-lib/${MACHINE_GNU_PLATFORM}/${GCC_VERSION}
a14 4
pre-configure:
	${MKDIR} ${BUILD_DIRS}
	cd ${WRKSRC} && contrib/gcc_update --touch

d22 2
a23 2
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gcc
	${INSTALL_DATA} ${WRKDIR}/gcc3.mk ${PREFIX}/share/examples/gcc/mk.conf
a32 1
.include "../../mk/texinfo.mk"
a33 4

# Make bootstrap with compiler != gcc possible.
CONFIGURE_ENV+=	LDFLAGS="${_STRIPFLAG_CC}"
MAKE_ENV+=	GCC_PREFIX="${GCC_PREFIX}"
@


1.1
log
@Split the gcc3 pkg into per-language pieces.
Needs some cleanup and integration; eventually lang/gcc3 can turn into
a meta-pkg.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.29 2003/07/03 18:04:23 drochner Exp $
d76 2
a78 1
GCC_ARCHDIR=	${GCC_PREFIX}/lib/gcc-lib/${MACHINE_GNU_PLATFORM}/${PKGVERSION}
@

