head	1.22;
access;
symbols
	pkgsrc-2021Q3:1.21.0.72
	pkgsrc-2021Q3-base:1.21
	pkgsrc-2021Q2:1.21.0.70
	pkgsrc-2021Q2-base:1.21
	pkgsrc-2021Q1:1.21.0.68
	pkgsrc-2021Q1-base:1.21
	pkgsrc-2020Q4:1.21.0.66
	pkgsrc-2020Q4-base:1.21
	pkgsrc-2020Q3:1.21.0.64
	pkgsrc-2020Q3-base:1.21
	pkgsrc-2020Q2:1.21.0.60
	pkgsrc-2020Q2-base:1.21
	pkgsrc-2020Q1:1.21.0.40
	pkgsrc-2020Q1-base:1.21
	pkgsrc-2019Q4:1.21.0.62
	pkgsrc-2019Q4-base:1.21
	pkgsrc-2019Q3:1.21.0.58
	pkgsrc-2019Q3-base:1.21
	pkgsrc-2019Q2:1.21.0.56
	pkgsrc-2019Q2-base:1.21
	pkgsrc-2019Q1:1.21.0.54
	pkgsrc-2019Q1-base:1.21
	pkgsrc-2018Q4:1.21.0.52
	pkgsrc-2018Q4-base:1.21
	pkgsrc-2018Q3:1.21.0.50
	pkgsrc-2018Q3-base:1.21
	pkgsrc-2018Q2:1.21.0.48
	pkgsrc-2018Q2-base:1.21
	pkgsrc-2018Q1:1.21.0.46
	pkgsrc-2018Q1-base:1.21
	pkgsrc-2017Q4:1.21.0.44
	pkgsrc-2017Q4-base:1.21
	pkgsrc-2017Q3:1.21.0.42
	pkgsrc-2017Q3-base:1.21
	pkgsrc-2017Q2:1.21.0.38
	pkgsrc-2017Q2-base:1.21
	pkgsrc-2017Q1:1.21.0.36
	pkgsrc-2017Q1-base:1.21
	pkgsrc-2016Q4:1.21.0.34
	pkgsrc-2016Q4-base:1.21
	pkgsrc-2016Q3:1.21.0.32
	pkgsrc-2016Q3-base:1.21
	pkgsrc-2016Q2:1.21.0.30
	pkgsrc-2016Q2-base:1.21
	pkgsrc-2016Q1:1.21.0.28
	pkgsrc-2016Q1-base:1.21
	pkgsrc-2015Q4:1.21.0.26
	pkgsrc-2015Q4-base:1.21
	pkgsrc-2015Q3:1.21.0.24
	pkgsrc-2015Q3-base:1.21
	pkgsrc-2015Q2:1.21.0.22
	pkgsrc-2015Q2-base:1.21
	pkgsrc-2015Q1:1.21.0.20
	pkgsrc-2015Q1-base:1.21
	pkgsrc-2014Q4:1.21.0.18
	pkgsrc-2014Q4-base:1.21
	pkgsrc-2014Q3:1.21.0.16
	pkgsrc-2014Q3-base:1.21
	pkgsrc-2014Q2:1.21.0.14
	pkgsrc-2014Q2-base:1.21
	pkgsrc-2014Q1:1.21.0.12
	pkgsrc-2014Q1-base:1.21
	pkgsrc-2013Q4:1.21.0.10
	pkgsrc-2013Q4-base:1.21
	pkgsrc-2013Q3:1.21.0.8
	pkgsrc-2013Q3-base:1.21
	pkgsrc-2013Q2:1.21.0.6
	pkgsrc-2013Q2-base:1.21
	pkgsrc-2013Q1:1.21.0.4
	pkgsrc-2013Q1-base:1.21
	pkgsrc-2012Q4:1.21.0.2
	pkgsrc-2012Q4-base:1.21
	pkgsrc-2012Q3:1.20.0.36
	pkgsrc-2012Q3-base:1.20
	pkgsrc-2012Q2:1.20.0.34
	pkgsrc-2012Q2-base:1.20
	pkgsrc-2012Q1:1.20.0.32
	pkgsrc-2012Q1-base:1.20
	pkgsrc-2011Q4:1.20.0.30
	pkgsrc-2011Q4-base:1.20
	pkgsrc-2011Q3:1.20.0.28
	pkgsrc-2011Q3-base:1.20
	pkgsrc-2011Q2:1.20.0.26
	pkgsrc-2011Q2-base:1.20
	pkgsrc-2011Q1:1.20.0.24
	pkgsrc-2011Q1-base:1.20
	pkgsrc-2010Q4:1.20.0.22
	pkgsrc-2010Q4-base:1.20
	pkgsrc-2010Q3:1.20.0.20
	pkgsrc-2010Q3-base:1.20
	pkgsrc-2010Q2:1.20.0.18
	pkgsrc-2010Q2-base:1.20
	pkgsrc-2010Q1:1.20.0.16
	pkgsrc-2010Q1-base:1.20
	pkgsrc-2009Q4:1.20.0.14
	pkgsrc-2009Q4-base:1.20
	pkgsrc-2009Q3:1.20.0.12
	pkgsrc-2009Q3-base:1.20
	pkgsrc-2009Q2:1.20.0.10
	pkgsrc-2009Q2-base:1.20
	pkgsrc-2009Q1:1.20.0.8
	pkgsrc-2009Q1-base:1.20
	pkgsrc-2008Q4:1.20.0.6
	pkgsrc-2008Q4-base:1.20
	pkgsrc-2008Q3:1.20.0.4
	pkgsrc-2008Q3-base:1.20
	cube-native-xorg:1.20.0.2
	cube-native-xorg-base:1.20
	pkgsrc-2008Q2:1.18.0.16
	pkgsrc-2008Q2-base:1.18
	cwrapper:1.18.0.14
	pkgsrc-2008Q1:1.18.0.12
	pkgsrc-2008Q1-base:1.18
	pkgsrc-2007Q4:1.18.0.10
	pkgsrc-2007Q4-base:1.18
	pkgsrc-2007Q3:1.18.0.8
	pkgsrc-2007Q3-base:1.18
	pkgsrc-2007Q2:1.18.0.6
	pkgsrc-2007Q2-base:1.18
	pkgsrc-2007Q1:1.18.0.4
	pkgsrc-2007Q1-base:1.18
	pkgsrc-2006Q4:1.18.0.2
	pkgsrc-2006Q4-base:1.18
	pkgsrc-2006Q3:1.17.0.6
	pkgsrc-2006Q3-base:1.17
	pkgsrc-2006Q2:1.17.0.4
	pkgsrc-2006Q2-base:1.17
	pkgsrc-2006Q1:1.17.0.2
	pkgsrc-2006Q1-base:1.17
	pkgsrc-2005Q4:1.14.0.6
	pkgsrc-2005Q4-base:1.14
	pkgsrc-2005Q3:1.14.0.4
	pkgsrc-2005Q3-base:1.14
	pkgsrc-2005Q2:1.14.0.2
	pkgsrc-2005Q2-base:1.14
	pkgsrc-2005Q1:1.13.0.6
	pkgsrc-2005Q1-base:1.13
	pkgsrc-2004Q4:1.13.0.4
	pkgsrc-2004Q4-base:1.13
	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.10.0.2
	pkgsrc-2004Q1-base:1.10
	pkgsrc-2003Q4:1.7.0.2
	pkgsrc-2003Q4-base:1.7;
locks; strict;
comment	@# @;


1.22
date	2021.10.08.16.38.32;	author nia;	state dead;
branches;
next	1.21;
commitid	40BbVLpGn10MK1cD;

1.21
date	2012.10.02.20.11.40;	author asau;	state Exp;
branches;
next	1.20;

1.20
date	2008.09.07.05.19.33;	author dholland;	state Exp;
branches;
next	1.19;

1.19
date	2008.09.07.02.10.15;	author dholland;	state Exp;
branches;
next	1.18;

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

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

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

1.15
date	2006.01.26.15.35.42;	author rillig;	state Exp;
branches;
next	1.14;

1.14
date	2005.06.16.06.58.00;	author jlam;	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.15.47.09;	author seb;	state Exp;
branches;
next	1.10;

1.10
date	2004.03.02.14.46.33;	author drochner;	state Exp;
branches;
next	1.9;

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

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

1.7
date	2003.08.11.14.16.02;	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.57;	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.59;	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.09;	author drochner;	state Exp;
branches;
next	;


desc
@@


1.22
log
@lang: Remove gcc3.
@
text
@# $NetBSD: Makefile,v 1.21 2012/10/02 20:11:40 asau Exp $

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

INSTLIBS=	libstdc++-v3/libsupc++/libsupc++.la			\
		libstdc++-v3/src/libstdc++.la

.include "../../lang/gcc3/language.mk"

CONFIGURE_ARGS+=	--enable-languages="c++"

MAKE_ENV+=	ALL_GCC_CXX=${ALL_GCC_CXX:Q}

do-build:
	cd ${WRKSRC}/gcc && ${SETENV} ${MAKE_ENV} ${GMAKE} c++
	cd ${WRKSRC}/gcc && ${SETENV} ${MAKE_ENV} ${GMAKE} g++
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} all-target-libstdc++-v3

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

do-install:
	${INSTALL_PROGRAM_DIR} ${DESTDIR}${GCC_ARCHDIR}
	${INSTALL_PROGRAM} ${WRKSRC}/gcc/cc1plus ${DESTDIR}${GCC_ARCHDIR}
	cd ${WRKSRC}/gcc && ${SETENV} ${MAKE_ENV} ${INSTALL_ENV} ${GMAKE} \
		c++.install-common c++.install-man
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${INSTALL_ENV} ${GMAKE} \
		install-target-libstdc++-v3

post-install:
	${INSTALL_DATA_DIR} ${DESTDIR:Q}${GCC_PREFIX}/mk
	${INSTALL_DATA} ${WRKDIR}/gcc3.mk ${DESTDIR:Q}${GCC_PREFIX}/mk/c++.mk

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


1.21
log
@Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2008/09/07 05:19:33 dholland Exp $
@


1.20
log
@Use ${INSTALL_ENV} instead of passing DESTDIR explicitly, at the
suggestion of bjs@@.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2008/09/07 02:10:15 dholland Exp $
a5 2
PKG_DESTDIR_SUPPORT=	user-destdir

@


1.19
log
@Add DESTDIR support.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2006/12/07 11:24:28 markd Exp $
d28 4
a31 6
	cd ${WRKSRC}/gcc && ${SETENV} ${MAKE_ENV} ${GMAKE} \
		c++.install-common c++.install-man \
		DESTDIR=${DESTDIR:Q}
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} \
		install-target-libstdc++-v3 \
		DESTDIR=${DESTDIR:Q}
@


1.18
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.17 2006/03/14 20:43:23 jlam Exp $
d6 2
d23 1
a23 1
	@@${SED} ${FILES_SUBST_SED} ${FILESDIR}/gcc3.mk > ${WRKDIR}/gcc3.mk
d26 2
a27 2
	${INSTALL_PROGRAM_DIR} ${GCC_ARCHDIR}
	${INSTALL_PROGRAM} ${WRKSRC}/gcc/cc1plus ${GCC_ARCHDIR}
d29 2
a30 1
		c++.install-common c++.install-man
d32 2
a33 1
		install-target-libstdc++-v3
d36 2
a37 1
	${INSTALL_DATA} ${WRKDIR}/gcc3.mk ${GCC_PREFIX}/mk/c++.mk
@


1.17
log
@USE_PKGINSTALL isn't needed here to make these packagse use the
pkginstall framework.  In the case of libtool-base, avoid using
FILES_SUBST_SED where it isn't needed.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2006/02/05 23:09:44 joerg Exp $
a3 1
PKGREVISION=	1
@


1.16
log
@Recursive revision bump / recommended bump for gettext ABI change.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2006/01/26 15:35:42 rillig Exp $
a14 1
USE_PKGINSTALL=	yes
@


1.15
log
@This package uses FILES_SUBST_SED, so USE_PKGINSTALL must be set to "yes".
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2005/06/16 06:58:00 jlam Exp $
d4 1
@


1.14
log
@Create directories before installing files into them.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2004/07/02 15:40:01 drochner Exp $
d14 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 $
d24 1
@


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 15:47:09 seb Exp $
a3 1
PKGREVISION=    1
@


1.11
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.10 2004/03/02 14:46:33 drochner Exp $
d4 1
@


1.10
log
@update to gcc-3.3.3
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2004/02/13 15:13:01 jlam Exp $
d9 1
a9 1
.include "../gcc3-c/language.mk"
d13 2
@


1.9
log
@Bump the PKGREVISION after fixing up the installed *.la files to remove
references to the buildlink work directories.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2004/02/01 14:05:47 jlam Exp $
a3 1
PKGREVISION=	1
@


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:02 drochner Exp $
d4 1
d7 3
@


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
d6 1
a6 1
.include "../gcc3-c/buildaddon.mk"
d11 3
a13 3
	(cd ${WRKSRC}/gcc && ${SETENV} ${MAKE_ENV} ${GMAKE} c++)
	(cd ${WRKSRC}/gcc && ${SETENV} ${MAKE_ENV} ${GMAKE} g++)
	(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} all-target-libstdc++-v3)
d20 4
a23 4
	(cd ${WRKSRC}/gcc && ${SETENV} ${MAKE_ENV} ${GMAKE} \
		c++.install-common c++.install-man)
	(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} \
		install-target-libstdc++-v3)
@


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:57 abs Exp $
d4 1
a4 2
PKGNAME=		gcc3${GCC3_PKGMODIF}-c++-3.3
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:59 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++-3.3
@


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:09 drochner Exp $
a3 1
DISTNAME=		gcc-3.3
d5 1
a5 3
CATEGORIES=		lang
MASTER_SITES=		${MASTER_SITE_GNU:=gcc/gcc-3.3/}
EXTRACT_SUFX=		.tar.bz2
d7 1
a7 3
MAINTAINER=		tech-pkg@@netbsd.org
HOMEPAGE=		http://www.gnu.org/software/gcc/gcc.html
COMMENT=		GNU Compiler Collection
a8 10
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}
a10 38
# as this is named gcc3, use DISTNAME instead.
FILES_SUBST+=		PKGNAME_NOREV=${DISTNAME} GCC_PREFIX=${GCC_PREFIX}
MESSAGE_SUBST+=		PKGNAME_NOREV=${DISTNAME}

.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD" && exists(/usr/include/pthread.h)
GCC_PLATFORM=	${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
GCC_PLATFORM=	${MACHINE_GNU_PLATFORM}
.endif
CONFIGURE_ARGS+=	--host=${GCC_PLATFORM}
PLIST_SUBST+=	GCC_PLATFORM=${GCC_PLATFORM}

.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/${GCC_PLATFORM}/${GCC_VERSION}

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

a11 1
	${LN} -sf ${GCC_PREFIX}/bin/gcc ${WRKSRC}/gcc/xgcc
d27 1
a27 2
	${INSTALL_DATA} ${WRKDIR}/gcc3.mk \
		${PREFIX}/share/examples/gcc/mk-g++.conf
a28 1
.include "../../lang/gcc3-c/buildlink2.mk"
@


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.26 2003/07/03 11:58:05 drochner Exp $
a55 1
# as this is named gcc3, use DISTNAME instead.
d57 2
a58 1
GCC_ARCHDIR=	${GCC_PREFIX}/lib/gcc-lib/${GCC_PLATFORM}/${PKGVERSION}
@

