head	1.62;
access;
symbols
	pkgsrc-2021Q3:1.61.0.4
	pkgsrc-2021Q3-base:1.61
	pkgsrc-2021Q2:1.61.0.2
	pkgsrc-2021Q2-base:1.61
	pkgsrc-2021Q1:1.60.0.8
	pkgsrc-2021Q1-base:1.60
	pkgsrc-2020Q4:1.60.0.6
	pkgsrc-2020Q4-base:1.60
	pkgsrc-2020Q3:1.60.0.4
	pkgsrc-2020Q3-base:1.60
	pkgsrc-2020Q2:1.60.0.2
	pkgsrc-2020Q2-base:1.60
	pkgsrc-2020Q1:1.59.0.2
	pkgsrc-2020Q1-base:1.59
	pkgsrc-2019Q4:1.58.0.4
	pkgsrc-2019Q4-base:1.58
	pkgsrc-2019Q3:1.57.0.32
	pkgsrc-2019Q3-base:1.57
	pkgsrc-2019Q2:1.57.0.30
	pkgsrc-2019Q2-base:1.57
	pkgsrc-2019Q1:1.57.0.28
	pkgsrc-2019Q1-base:1.57
	pkgsrc-2018Q4:1.57.0.26
	pkgsrc-2018Q4-base:1.57
	pkgsrc-2018Q3:1.57.0.24
	pkgsrc-2018Q3-base:1.57
	pkgsrc-2018Q2:1.57.0.22
	pkgsrc-2018Q2-base:1.57
	pkgsrc-2018Q1:1.57.0.20
	pkgsrc-2018Q1-base:1.57
	pkgsrc-2017Q4:1.57.0.18
	pkgsrc-2017Q4-base:1.57
	pkgsrc-2017Q3:1.57.0.16
	pkgsrc-2017Q3-base:1.57
	pkgsrc-2017Q2:1.57.0.12
	pkgsrc-2017Q2-base:1.57
	pkgsrc-2017Q1:1.57.0.10
	pkgsrc-2017Q1-base:1.57
	pkgsrc-2016Q4:1.57.0.8
	pkgsrc-2016Q4-base:1.57
	pkgsrc-2016Q3:1.57.0.6
	pkgsrc-2016Q3-base:1.57
	pkgsrc-2016Q2:1.57.0.4
	pkgsrc-2016Q2-base:1.57
	pkgsrc-2016Q1:1.57.0.2
	pkgsrc-2016Q1-base:1.57
	pkgsrc-2015Q4:1.56.0.24
	pkgsrc-2015Q4-base:1.56
	pkgsrc-2015Q3:1.56.0.22
	pkgsrc-2015Q3-base:1.56
	pkgsrc-2015Q2:1.56.0.20
	pkgsrc-2015Q2-base:1.56
	pkgsrc-2015Q1:1.56.0.18
	pkgsrc-2015Q1-base:1.56
	pkgsrc-2014Q4:1.56.0.16
	pkgsrc-2014Q4-base:1.56
	pkgsrc-2014Q3:1.56.0.14
	pkgsrc-2014Q3-base:1.56
	pkgsrc-2014Q2:1.56.0.12
	pkgsrc-2014Q2-base:1.56
	pkgsrc-2014Q1:1.56.0.10
	pkgsrc-2014Q1-base:1.56
	pkgsrc-2013Q4:1.56.0.8
	pkgsrc-2013Q4-base:1.56
	pkgsrc-2013Q3:1.56.0.6
	pkgsrc-2013Q3-base:1.56
	pkgsrc-2013Q2:1.56.0.4
	pkgsrc-2013Q2-base:1.56
	pkgsrc-2013Q1:1.56.0.2
	pkgsrc-2013Q1-base:1.56
	pkgsrc-2012Q4:1.55.0.2
	pkgsrc-2012Q4-base:1.55
	pkgsrc-2012Q3:1.54.0.4
	pkgsrc-2012Q3-base:1.54
	pkgsrc-2012Q2:1.54.0.2
	pkgsrc-2012Q2-base:1.54
	pkgsrc-2012Q1:1.51.0.2
	pkgsrc-2012Q1-base:1.51
	pkgsrc-2011Q4:1.49.0.4
	pkgsrc-2011Q4-base:1.49
	pkgsrc-2011Q3:1.49.0.2
	pkgsrc-2011Q3-base:1.49
	pkgsrc-2011Q2:1.48.0.2
	pkgsrc-2011Q2-base:1.48
	pkgsrc-2011Q1:1.46.0.4
	pkgsrc-2011Q1-base:1.46
	pkgsrc-2010Q4:1.46.0.2
	pkgsrc-2010Q4-base:1.46
	pkgsrc-2010Q3:1.45.0.4
	pkgsrc-2010Q3-base:1.45
	pkgsrc-2010Q2:1.45.0.2
	pkgsrc-2010Q2-base:1.45
	pkgsrc-2010Q1:1.44.0.2
	pkgsrc-2010Q1-base:1.44
	pkgsrc-2009Q4:1.43.0.6
	pkgsrc-2009Q4-base:1.43
	pkgsrc-2009Q3:1.43.0.4
	pkgsrc-2009Q3-base:1.43
	pkgsrc-2009Q2:1.43.0.2
	pkgsrc-2009Q2-base:1.43
	pkgsrc-2009Q1:1.40.0.16
	pkgsrc-2009Q1-base:1.40
	pkgsrc-2008Q4:1.40.0.14
	pkgsrc-2008Q4-base:1.40
	pkgsrc-2008Q3:1.40.0.12
	pkgsrc-2008Q3-base:1.40
	cube-native-xorg:1.40.0.10
	cube-native-xorg-base:1.40
	pkgsrc-2008Q2:1.40.0.8
	pkgsrc-2008Q2-base:1.40
	cwrapper:1.40.0.6
	pkgsrc-2008Q1:1.40.0.4
	pkgsrc-2008Q1-base:1.40
	pkgsrc-2007Q4:1.40.0.2
	pkgsrc-2007Q4-base:1.40
	pkgsrc-2007Q3:1.39.0.6
	pkgsrc-2007Q3-base:1.39
	pkgsrc-2007Q2:1.39.0.4
	pkgsrc-2007Q2-base:1.39
	pkgsrc-2007Q1:1.39.0.2
	pkgsrc-2007Q1-base:1.39
	pkgsrc-2006Q4:1.36.0.2
	pkgsrc-2006Q4-base:1.36
	pkgsrc-2006Q3:1.35.0.2
	pkgsrc-2006Q3-base:1.35
	pkgsrc-2006Q2:1.34.0.2
	pkgsrc-2006Q2-base:1.34
	pkgsrc-2006Q1:1.32.0.2
	pkgsrc-2006Q1-base:1.32
	pkgsrc-2005Q4:1.28.0.2
	pkgsrc-2005Q4-base:1.28
	pkgsrc-2005Q3:1.25.0.2
	pkgsrc-2005Q3-base:1.25
	pkgsrc-2005Q2:1.24.0.2
	pkgsrc-2005Q2-base:1.24
	pkgsrc-2005Q1:1.21.0.2
	pkgsrc-2005Q1-base:1.21
	pkgsrc-2004Q4:1.20.0.2
	pkgsrc-2004Q4-base:1.20
	pkgsrc-2004Q3:1.14.0.2
	pkgsrc-2004Q3-base:1.14
	pkgsrc-base:1.1.1.1
	TNF:1.1.1;
locks; strict;
comment	@# @;


1.62
date	2021.10.01.11.56.13;	author nia;	state dead;
branches;
next	1.61;
commitid	CpiodN7O0v4Pp6bD;

1.61
date	2021.05.24.19.52.31;	author wiz;	state Exp;
branches;
next	1.60;
commitid	qokaiStTApGMcrUC;

1.60
date	2020.05.13.05.02.08;	author rillig;	state Exp;
branches;
next	1.59;
commitid	FsXiw1uYdPAbo28C;

1.59
date	2020.01.26.17.31.27;	author rillig;	state Exp;
branches;
next	1.58;
commitid	4fBBvoSLJaGd0eUB;

1.58
date	2019.11.03.19.03.58;	author rillig;	state Exp;
branches;
next	1.57;
commitid	puQpdVbj8afCdrJB;

1.57
date	2016.01.24.16.14.44;	author jperkin;	state Exp;
branches;
next	1.56;
commitid	6ZtJ8Q9tACZQncSy;

1.56
date	2013.02.01.22.21.07;	author wiz;	state Exp;
branches;
next	1.55;

1.55
date	2012.10.02.20.11.40;	author asau;	state Exp;
branches;
next	1.54;

1.54
date	2012.06.08.15.42.28;	author joerg;	state Exp;
branches;
next	1.53;

1.53
date	2012.04.25.18.40.27;	author hans;	state Exp;
branches;
next	1.52;

1.52
date	2012.04.08.20.45.15;	author ryoon;	state Exp;
branches;
next	1.51;

1.51
date	2012.03.21.17.08.46;	author hans;	state Exp;
branches;
next	1.50;

1.50
date	2012.03.21.14.43.31;	author hans;	state Exp;
branches;
next	1.49;

1.49
date	2011.08.26.02.57.13;	author sbd;	state Exp;
branches;
next	1.48;

1.48
date	2011.06.03.08.32.30;	author wiz;	state Exp;
branches;
next	1.47;

1.47
date	2011.04.22.13.41.55;	author obache;	state Exp;
branches;
next	1.46;

1.46
date	2010.12.20.00.04.26;	author wiz;	state Exp;
branches;
next	1.45;

1.45
date	2010.05.04.20.46.31;	author tez;	state Exp;
branches;
next	1.44;

1.44
date	2010.03.24.19.43.25;	author asau;	state Exp;
branches
	1.44.2.1;
next	1.43;

1.43
date	2009.06.16.15.25.31;	author joerg;	state Exp;
branches;
next	1.42;

1.42
date	2009.06.14.22.58.02;	author joerg;	state Exp;
branches;
next	1.41;

1.41
date	2009.04.22.18.59.54;	author hasso;	state Exp;
branches;
next	1.40;

1.40
date	2007.10.25.21.04.22;	author jlam;	state Exp;
branches;
next	1.39;

1.39
date	2007.04.07.22.23.01;	author dmcmahill;	state Exp;
branches;
next	1.38;

1.38
date	2007.02.05.06.46.10;	author tron;	state Exp;
branches;
next	1.37;

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

1.36
date	2006.10.04.22.40.40;	author rillig;	state Exp;
branches;
next	1.35;

1.35
date	2006.09.27.15.46.11;	author abs;	state Exp;
branches;
next	1.34;

1.34
date	2006.04.13.18.23.34;	author jlam;	state Exp;
branches;
next	1.33;

1.33
date	2006.04.05.11.03.59;	author shannonjr;	state Exp;
branches;
next	1.32;

1.32
date	2006.03.05.16.27.26;	author jlam;	state Exp;
branches;
next	1.31;

1.31
date	2006.02.05.23.09.45;	author joerg;	state Exp;
branches;
next	1.30;

1.30
date	2006.01.04.18.06.17;	author shannonjr;	state Exp;
branches;
next	1.29;

1.29
date	2005.12.29.06.21.46;	author jlam;	state Exp;
branches;
next	1.28;

1.28
date	2005.12.05.23.55.09;	author rillig;	state Exp;
branches;
next	1.27;

1.27
date	2005.12.05.20.50.25;	author rillig;	state Exp;
branches;
next	1.26;

1.26
date	2005.11.05.08.43.44;	author rillig;	state Exp;
branches;
next	1.25;

1.25
date	2005.07.09.00.16.53;	author kristerw;	state Exp;
branches;
next	1.24;

1.24
date	2005.05.22.20.08.09;	author jlam;	state Exp;
branches;
next	1.23;

1.23
date	2005.05.20.19.25.21;	author shannonjr;	state Exp;
branches;
next	1.22;

1.22
date	2005.04.11.21.46.13;	author tv;	state Exp;
branches;
next	1.21;

1.21
date	2005.01.21.20.52.24;	author tv;	state Exp;
branches;
next	1.20;

1.20
date	2004.11.15.11.38.42;	author shannonjr;	state Exp;
branches;
next	1.19;

1.19
date	2004.11.12.12.31.28;	author shannonjr;	state Exp;
branches;
next	1.18;

1.18
date	2004.11.08.16.44.34;	author shannonjr;	state Exp;
branches;
next	1.17;

1.17
date	2004.11.05.12.40.23;	author shannonjr;	state Exp;
branches;
next	1.16;

1.16
date	2004.10.30.12.06.59;	author shannonjr;	state Exp;
branches;
next	1.15;

1.15
date	2004.09.21.13.32.40;	author shannonjr;	state Exp;
branches;
next	1.14;

1.14
date	2004.08.11.19.08.15;	author shannonjr;	state Exp;
branches;
next	1.13;

1.13
date	2004.08.10.15.11.14;	author shannonjr;	state Exp;
branches;
next	1.12;

1.12
date	2004.08.08.11.12.13;	author shannonjr;	state Exp;
branches;
next	1.11;

1.11
date	2004.08.06.20.56.15;	author shannonjr;	state Exp;
branches;
next	1.10;

1.10
date	2004.08.01.10.14.16;	author shannonjr;	state Exp;
branches;
next	1.9;

1.9
date	2004.07.28.21.30.19;	author shannonjr;	state Exp;
branches;
next	1.8;

1.8
date	2004.07.28.12.14.49;	author shannonjr;	state Exp;
branches;
next	1.7;

1.7
date	2004.07.28.07.37.19;	author shannonjr;	state Exp;
branches;
next	1.6;

1.6
date	2004.07.26.21.55.37;	author shannonjr;	state Exp;
branches;
next	1.5;

1.5
date	2004.07.21.16.03.33;	author shannonjr;	state Exp;
branches;
next	1.4;

1.4
date	2004.07.09.22.04.16;	author seb;	state Exp;
branches;
next	1.3;

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

1.2
date	2004.07.09.19.25.12;	author drochner;	state Exp;
branches;
next	1.1;

1.1
date	2004.06.29.18.01.24;	author shannonjr;	state Exp;
branches
	1.1.1.1;
next	;

1.44.2.1
date	2010.05.06.12.14.39;	author tron;	state Exp;
branches;
next	;

1.1.1.1
date	2004.06.29.18.01.24;	author shannonjr;	state Exp;
branches;
next	;


desc
@@


1.62
log
@Prune gcc34, gcc44.
@
text
@# $NetBSD: Makefile,v 1.61 2021/05/24 19:52:31 wiz Exp $
#

DISTNAME=	gcc-${GCC_VERSION}
PKGNAME=	gcc34-${GCC_VERSION}
PKGREVISION=	9
CATEGORIES=	lang
MASTER_SITES=	${MASTER_SITE_GNU:=gcc/gcc-${GCC_VERSION}/}
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://www.gnu.org/software/gcc/gcc.html
COMMENT=	This is the gcc 3.4 compiler
LICENSE=	gnu-gpl-v2 AND gnu-lgpl-v2.1

GCC_VERSION=		3.4.6

NOT_FOR_PLATFORM=	Interix-*-*

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

# Determine whether to use binutils
.if ${OPSYS} == "NetBSD"
.  if !defined(USE_BINUTILS)
AS_PATH:=		${AS}
.    for _dir_ in ${PATH:C/\:/ /g}
.      if empty(AS_PATH:M/*)
.        if exists(${_dir_}/${AS})
AS_PATH:=		${_dir_}/${AS}
.        endif
.      endif
.    endfor
.    if !empty(AS_PATH:M${LOCALBASE}/*)
USE_BINUTILS=		YES
.    else
AS_VERSION!=		${AS_PATH} --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
MAKEFLAGS+=		USE_BINUTILS=${USE_BINUTILS:Q}
.  endif
.elif ${OPSYS} == "SunOS"
CONFIGURE_ENV+=		OBJDUMP=/usr/sfw/bin/gobjdump
CONFIGURE_ARGS+=	--without-gnu-ld --with-ld=/usr/ccs/bin/ld
.  if !exists(/usr/sfw/bin/gas)
CONFIGURE_ARGS+=	--without-gnu-as --with-as=/usr/ccs/bin/as
.  else
CONFIGURE_ARGS+=	--with-gnu-as --with-as=/usr/sfw/bin/gas
.  endif
.endif
.if defined(USE_BINUTILS) && !empty(USE_BINUTILS:M[yY][eE][sS])
DEPENDS+=		binutils>=2.14:../../devel/binutils
CONFIGURE_ARGS+=	--with-as=${LOCALBASE}/bin/as
CONFIGURE_ARGS+=	--with-ld=${LOCALBASE}/bin/ld
CONFIGURE_ARGS+=	--with-gnu-as
CONFIGURE_ARGS+=	--with-gnu-ld
.endif

CONFIGURE_ARGS+=	--enable-languages=${LANGS:Q}
CONFIGURE_ARGS+=	--enable-shared
CONFIGURE_ARGS+=	--enable-long-long
CONFIGURE_ARGS+=	--with-local-prefix=${GCC_PREFIX:Q}
MAKE_ENV+=		SHELL=${CONFIG_SHELL}

UNLIMIT_RESOURCES+=	datasize

# GNU pth is useless here
PTHREAD_OPTS+=		native
.include "../../mk/pthread.buildlink3.mk"
.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} != "native"
CONFIGURE_ARGS+=	--disable-threads
.endif

USE_TOOLS+=		gmake makeinfo
TOOLS_BROKEN+=		perl
HAS_CONFIGURE=		YES # no GNU_CONFIGURE!
CONFIG_SHELL?=		${SH}
CONFIGURE_ENV+=		CONFIG_SHELL=${CONFIG_SHELL:Q}

GCC_SUBPREFIX=		gcc34
GCC_PREFIX=		${PREFIX}/${GCC_SUBPREFIX}
FILES_SUBST+=		PKGNAME=${PKGNAME:Q}
MESSAGE_SUBST+=		GCC_PREFIX=${GCC_PREFIX}
CONFIGURE_ARGS+=	--prefix=${GCC_PREFIX:Q}
CPPFLAGS+=		-I${BUILDLINK_DIR}/include
CFLAGS+=		-I${BUILDLINK_DIR}/include
.if ${OPSYS} == "NetBSD"
# thread / crtbegin / __cxa_atexit support depend on a "netbsd2" OS name
GCC_PLATFORM=		${MACHINE_ARCH}--${LOWER_OPSYS}${APPEND_ELF}${LOWER_OS_VERSION:C/[_a-z].*//}
CONFIGURE_ARGS+=	--host=${GCC_PLATFORM:Q}
ABI_BASELINE_PAIR=	${GCC_PLATFORM:C/--/-/}
MAKE_ENV+=		ABI_BASELINE_PAIR=${ABI_BASELINE_PAIR:Q}
.endif # NetBSD

post-patch:
.if ${OPSYS} == "NetBSD"
.  if exists(${FILESDIR}/${MACHINE_ARCH}-baseline_symbols${LOWER_OS_VERSION:C/\..*//}.txt)
	(${TEST} -d ${WRKSRC}/libstdc++-v3/config/abi/${ABI_BASELINE_PAIR} || \
		${MKDIR} ${WRKSRC}/libstdc++-v3/config/abi/${ABI_BASELINE_PAIR})
	${CP} ${FILESDIR}/${MACHINE_ARCH}-baseline_symbols${LOWER_OS_VERSION:C/\..*//}.txt \
		${WRKSRC}/libstdc++-v3/config/abi/${ABI_BASELINE_PAIR}/baseline_symbols.txt
.  endif
.endif

.if ${OPSYS} == "DragonFly"
pre-configure:
	${CP} ${FILESDIR}/dragonfly.h ${WRKSRC}/gcc/config/dragonfly.h
	${CP} ${FILESDIR}/dragonfly-spec.h ${WRKSRC}/gcc/config/dragonfly-spec.h
	${CP} ${FILESDIR}/i386-dragonfly.h ${WRKSRC}/gcc/config/i386/dragonfly.h
	${CP} ${FILESDIR}/i386-dragonfly64.h ${WRKSRC}/gcc/config/i386/dragonfly64.h
.endif

do-configure:
	${MKDIR} ${WRKDIR}/obj
	cd ${WRKDIR}/obj; ${SETENV} ${CONFIGURE_ENV} ${CONFIG_SHELL} ${WRKSRC}/configure ${CONFIGURE_ARGS}

do-build:
	(${_ULIMIT_CMD} cd ${WRKDIR}/obj && ${SETENV} ${MAKE_ENV} ${GMAKE} bootstrap)
.if !empty(PKG_OPTIONS:Mgcc-ada)
	(${_ULIMIT_CMD} cd ${WRKDIR}/obj/gcc && ${SETENV} ${MAKE_ENV} ${GMAKE} gnatlib-shared)
	(${_ULIMIT_CMD} cd ${WRKDIR}/obj/gcc && ${SETENV} ${MAKE_ENV} ${GMAKE} gnatlib_and_tools)
.endif

do-test:
.if (${MACHINE_GNU_ARCH} == "x86_64")
	(cd ${FILESDIR} && ${CP} netbsd64macro.dfs ${WRKSRC}/gcc/testsuite/ada/acats/support/macro.dfs)
.endif
	(cd ${WRKDIR}/obj && ${GMAKE} -k check)

do-install:
	(cd ${WRKDIR}/obj && ${SETENV} ${INSTALL_ENV} ${MAKE_ENV} ${GMAKE} install \
	 && ${TEST} -f ${GCC_PREFIX}/bin/cc || ${LN} -f ${DESTDIR}${GCC_PREFIX}/bin/gcc ${DESTDIR}${GCC_PREFIX}/bin/cc)
.if !empty(PKG_OPTIONS:Mgcc-ada)
	(SPECPATH=`${GCC_PREFIX}/bin/gcc -print-file-name=specs` && \
	for EXPANDEDSPECPATH in $${SPECPATH} ; do \
		SPECDIR=`${DIRNAME} $${EXPANDEDSPECPATH}`; \
		${ECHO} $${SPECDIR}/adainclude > $${SPECDIR}/ada_source_path;	\
		${ECHO} $${SPECDIR}/adalib > $${SPECDIR}/ada_object_path;	\
	done )
.endif

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

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


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


1.60
log
@lang/gcc3*: suppress USE_TOOLS+=perl warning
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.59 2020/01/26 17:31:27 rillig Exp $
d6 1
a6 1
PKGREVISION=	8
@


1.59
log
@all: migrate homepages from http to https

pkglint -r --network --only "migrate"

As a side-effect of migrating the homepages, pkglint also fixed a few
indentations in unrelated lines. These and the new homepages have been
checked manually.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.58 2019/11/03 19:03:58 rillig Exp $
d79 1
@


1.58
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.57 2016/01/24 16:14:44 jperkin Exp $
d12 1
a12 1
HOMEPAGE=	http://www.gnu.org/software/gcc/gcc.html
d37 5
a41 5
AS_VERSION!=		${AS_PATH} --version | ${AWK} '{			\
		    split($$3, v, /[.]/);				\
		    printf "%02d%02d%02d%02d\n",v[1],v[2],v[3],v[4];	\
		    exit;						\
		}'
d146 1
a146 1
	${FIND} ${DESTDIR}${GCC_PREFIX} \( -type f -o -type l \) -print		\
@


1.57
log
@Attempt to bring sanity to how ABI and MACHINE_ARCH are set.

Previously there were at least 5 different ways MACHINE_ARCH could be set,
some statically and some at run time, and in many cases these settings
differed, leading to issues at pkg_add time where there was conflict
between the setting encoded into the package and that used by pkg_install.

Instead, move to a single source of truth where the correct value based on
the host and the chosen (or default) ABI is determined in the bootstrap
script.  The value can still be overridden in mk.conf if necessary, e.g.
for cross-compiling.

ABI is now set by default and if unset a default is calculated based on
MACHINE_ARCH.  This fixes some OS, e.g. Linux, where the wrong default was
previously chosen.

As a result of the refactoring there is no need for LOWER_ARCH, with
references to it replaced by MACHINE_ARCH.  SPARC_TARGET_ARCH is also
removed.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.56 2013/02/01 22:21:07 wiz Exp $
d26 1
a26 1
AS_PATH:=	${AS}
d30 1
a30 1
AS_PATH:=	${_dir_}/${AS}
d35 1
a35 1
USE_BINUTILS=	YES
d37 1
a37 1
AS_VERSION!=	${AS_PATH} --version | ${AWK} '{			\
d42 1
a42 1
USE_BINUTILS!=	${TEST} ${AS_VERSION} -lt 02130201 && ${ECHO} YES || ${ECHO} NO
d44 1
a44 1
MAKEFLAGS+=	USE_BINUTILS=${USE_BINUTILS:Q}
d56 1
a56 1
DEPENDS+=	binutils>=2.14:../../devel/binutils
d88 2
a89 2
CPPFLAGS+=	-I${BUILDLINK_DIR}/include
CFLAGS+=	-I${BUILDLINK_DIR}/include
d92 1
a92 1
GCC_PLATFORM=	${MACHINE_ARCH}--${LOWER_OPSYS}${APPEND_ELF}${LOWER_OS_VERSION:C/[_a-z].*//}
d95 1
a95 1
MAKE_ENV+=	ABI_BASELINE_PAIR=${ABI_BASELINE_PAIR:Q}
d137 6
a142 6
		(SPECPATH=`${GCC_PREFIX}/bin/gcc -print-file-name=specs` && \
		for EXPANDEDSPECPATH in $${SPECPATH} ; do \
			SPECDIR=`${DIRNAME} $${EXPANDEDSPECPATH}`; \
			${ECHO} $${SPECDIR}/adainclude > $${SPECDIR}/ada_source_path;	\
			${ECHO} $${SPECDIR}/adalib > $${SPECDIR}/ada_object_path;	\
		done )
@


1.56
log
@Reset MAINTAINER/OWNER (became observers)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.55 2012/10/02 20:11:40 asau Exp $
d92 1
a92 1
GCC_PLATFORM=	${LOWER_ARCH}--${LOWER_OPSYS}${APPEND_ELF}${LOWER_OS_VERSION:C/[_a-z].*//}
d100 1
a100 1
.  if exists(${FILESDIR}/${LOWER_ARCH}-baseline_symbols${LOWER_OS_VERSION:C/\..*//}.txt)
d103 1
a103 1
	${CP} ${FILESDIR}/${LOWER_ARCH}-baseline_symbols${LOWER_OS_VERSION:C/\..*//}.txt \
@


1.55
log
@Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.54 2012/06/08 15:42:28 joerg Exp $
d11 1
a11 1
MAINTAINER=	shannonjr@@NetBSD.org
@


1.54
log
@Redo netbsd/ctype_base.h patch to not pollute the namespace as much with
sys/param.h.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.53 2012/04/25 18:40:27 hans Exp $
a15 2
PKG_DESTDIR_SUPPORT=	user-destdir

@


1.53
log
@Clean up lang/gcc34 to be similar to lang/gcc4*.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.52 2012/04/08 20:45:15 ryoon Exp $
d6 1
a6 1
PKGREVISION=	7
@


1.52
log
@Fix PR pkg/46029
* Make gcc handle -fPIC properly.
  from http://gcc.gnu.org/viewcvs/branches/csl-sol210-3_4-branch/gcc/config/sol2.h?r1=87927&r2=87928&pathrev=178719
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.51 2012/03/21 17:08:46 hans Exp $
d23 1
d48 8
a64 30
REPLACE_AWK+=		libjava/addr2name.awk
USE_TOOLS+=		awk:run

# Optional languages - change as required
#   If BUILD_ADA is YES, then you'll need to specify
#   an Ada in the "Ada bootstrap compiler section"
BUILD_DEFS+=	BUILD_ADA BUILD_CXX BUILD_F77 \
		BUILD_JAVA BUILD_OBJC
BUILD_ADA?=	NO
BUILD_CXX?=	YES
BUILD_F77?=	YES
BUILD_JAVA?=	YES
BUILD_OBJC?=	YES

LANGS='c'
.if !empty(BUILD_ADA:M[Yy][Ee][Ss])
LANGS+='ada'
.endif
.if !empty(BUILD_CXX:M[Yy][Ee][Ss])
LANGS+='c++'
.endif
.if !empty(BUILD_F77:M[Yy][Ee][Ss])
LANGS+='f77'
.endif
.if !empty(BUILD_JAVA:M[Yy][Ee][Ss])
LANGS+='java'
.endif
.if !empty(BUILD_OBJC:M[Yy][Ee][Ss])
LANGS+='objc'
.endif
a65 1
CONFIGURE_ARGS+=	--with-system-zlib
a66 1
CONFIGURE_ARGS+=	--enable-__cxa_atexit
a68 2
CONFIGURE_ARGS+=	--with-libiconv-prefix=${BUILDLINK_PREFIX.iconv}
MAKE_ENV+=		ICONVPREFIX=${BUILDLINK_PREFIX.iconv}
a70 6
# FIXME Because gcc ignores rpath for some reason, it breaks on DragonFly -
# binaries are linked against libintl. Disabling NLS for now.
.if ${OPSYS} == "DragonFly"
CONFIGURE_ARGS+=	--disable-nls
.endif

a72 7
.if !empty(BUILD_F77:M[Yy][Ee][Ss])
.include "../../devel/gmp/buildlink3.mk"
CONFIGURE_ARGS+=	--with-gmp=${BUILDLINK_PREFIX.gmp}
USE_TOOLS+=		chmod
MAKE_ENV+=		ac_cv_path_ac_cv_prog_chmod=${TOOLS_CHMOD:Q}
.endif

a73 4
.if !empty(BUILD_ADA:M[Yy][Ee][Ss])
# ADA tasking strictly requires native threads
PTHREAD_OPTS+=		require native
.else
a74 1
.endif
d80 1
a80 1
USE_TOOLS+=		gmake makeinfo msgfmt
a84 26
.if !empty(BUILD_ADA:M[Yy][Ee][Ss])

# Ada bootstrap compiler section
# An Ada compiler is required to build the Ada compiler. You
# may specify:
#USE_GCC34ADA	=# Define to use gcc-3.4.x-ada
# Or, you may specify the path of any gcc/gnat Ada compiler
# by providing the full path of the compiler (example) below:
#ALT_GCC=	prefix/bin/gcc
.  if defined(ALT_GCC)
.     if exists(${ALT_GCC})
ALT_GCC_RTS!=	${ALT_GCC} --print-file-name=adalib
.        if !empty(ALT_GCC_RTS)
RALT_GCC_RTS=	${ALT_GCC_RTS:S%${LOCALBASE}%%:S%/%%}
.        else
PKG_SKIP_REASON+=	"${ALT_GCC} does not appear to be an Ada compiler"
.        endif
.     else
PKG_SKIP_REASON+=	"Missing bootstrap Ada compiler"
.     endif
.  endif
.  if !defined(USE_GCC34ADA) && !defined(ALT_GCC)
PKG_SKIP_REASON+=	"An Ada bootstrap compiler must be specified to BUILD_ADA"
.  endif
.endif

d109 2
a110 11
	(cd ${FILESDIR}; \
		${CP} adasignal.c ${WRKSRC}/gcc/ada; \
		${CP} ada_lwp_self.c ${WRKSRC}/gcc/ada; \
		${CP} dummy_pthreads.c ${WRKSRC}/gcc/ada; \
		for i in *.adb *.ads ; do \
		${CP} $$i ${WRKSRC}/gcc/ada; \
	done )

.if !empty(BUILD_ADA:M[Yy][Ee][Ss])
.  if defined(USE_GCC34ADA)
# Overide compiler.mk setup to use gcc-3.4.x-ada
a111 18
.include "../../lang/gcc34-ada/preconfigure.mk"
.  elif defined(ALT_GCC)
pre-configure:
	(${TEST} -d ${WRKDIR}/.gcc/bin/ || ${MKDIR} ${WRKDIR}/.gcc/bin/)
	(cd ${WRKDIR}/.buildlink && ${MKDIR} ${RALT_GCC_RTS} && \
	cd ${RALT_GCC_RTS} && ${LN} -sf ${ALT_GCC_RTS}/libgnat.a .)
	(cd ${ALT_GCC:H} && \
	bin_files=`${FIND} . -type f \( -perm -0100 \) -print` && \
	cd ${WRKDIR}/.gcc/bin/ && \
	for filename in ${ALT_GCC:T} $${bin_files} ; do \
		${ECHO} '#!${TOOLS_SHELL}' > $${filename}; \
		${ECHO} -n "exec ${ALT_GCC:H}/$${filename} " >>$${filename}; \
		${ECHO} '"$$@@"' >>$${filename}; \
		${CHMOD} +x $${filename}; \
	done )
.  endif
.endif
.if ${OPSYS} == "DragonFly"
d124 1
a124 1
.if !empty(BUILD_ADA:M[Yy][Ee][Ss])
d138 1
a138 1
.if !empty(BUILD_ADA:M[Yy][Ee][Ss])
a151 9
.if !empty(BUILD_ADA:M[Yy][Ee][Ss])
.  if  defined(USE_GCC34ADA)
BUILDLINK_DEPMETHOD.gcc34-ada=build
.include "../../lang/gcc34-ada/buildlink3.mk"
.  endif
.endif
.include "../../devel/zlib/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
@


1.51
log
@Revbump for PLIST change due to BUILD_F77=YES.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.50 2012/03/21 14:43:31 hans Exp $
d6 1
a6 1
PKGREVISION=	6
@


1.50
log
@Re-enable F77 build. This was accidentally lost in 2005 with r1.21.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.49 2011/08/26 02:57:13 sbd Exp $
d6 1
a6 1
PKGREVISION=	5
@


1.49
log
@Do DESTDIR support The Right Way(tm) by passing ${INSTALL_ENV} to
the 'make install' process and _not_ using MAKEFLAGS.

Should fix PR pkg/45290
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.48 2011/06/03 08:32:30 wiz Exp $
d66 1
a66 1
BUILD_F77?=	NO
@


1.48
log
@Convert to destdir, from Makoto Fujiwara <makoto@@ki.nu>.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.47 2011/04/22 13:41:55 obache Exp $
a54 1
MAKEFLAGS+=	DESTDIR=${DESTDIR}
d232 1
a232 1
	(cd ${WRKDIR}/obj && ${SETENV} ${MAKE_ENV} ${GMAKE} install \
@


1.47
log
@recursive bump from gettext-lib shlib bump.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.46 2010/12/20 00:04:26 wiz Exp $
d6 1
a6 1
PKGREVISION=	4
d16 2
d55 1
d234 1
a234 1
	 && ${TEST} -f ${GCC_PREFIX}/bin/cc || ${LN} -f ${GCC_PREFIX}/bin/gcc ${GCC_PREFIX}/bin/cc)
d245 2
a246 2
	${FIND} ${GCC_PREFIX} \( -type f -o -type l \) -print		\
		| ${SORT} | ${SED} -e "s,${PREFIX}/,,g";
@


1.46
log
@Set LICENSE.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.45 2010/05/04 20:46:31 tez Exp $
d6 1
a6 1
PKGREVISION=	3
@


1.45
log
@Add patch to embedded libltdl for CVE-2009-3736 from:
 http://lists.gnu.org/archive/html/libtool/2009-11/msg00065.html
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.44 2010/03/24 19:43:25 asau Exp $
d14 1
@


1.44
log
@Recursive revision bump for GMP update.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.43 2009/06/16 15:25:31 joerg Exp $
d6 1
a6 1
PKGREVISION=	2
@


1.44.2.1
log
@Pullup ticket #3106 - requested by tez
lang/gcc34: security patch

Revisions pulled up:
- lang/gcc34/Makefile			1.45
- lang/gcc34/distinfo			1.20
---
Module Name:    pkgsrc
Committed By:   tez
Date:           Tue May  4 20:46:31 UTC 2010

Modified Files:
        pkgsrc/lang/gcc34: Makefile distinfo
Added Files:
        pkgsrc/lang/gcc34/patches: patch-cd

Log Message:
Add patch to embedded libltdl for CVE-2009-3736 from:
 http://lists.gnu.org/archive/html/libtool/2009-11/msg00065.html
@
text
@d1 1
a1 1
# $NetBSD$
d6 1
a6 1
PKGREVISION=	3
@


1.43
log
@Fix a number of GENERATE_PLIST entries to always have a terminating ;
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.42 2009/06/14 22:58:02 joerg Exp $
d6 1
a6 1
PKGREVISION=	1
@


1.42
log
@Remove @@dirrm related logic.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.41 2009/04/22 18:59:54 hasso Exp $
d242 1
a242 1
		| ${SORT} | ${SED} -e "s,${PREFIX}/,,g"
@


1.41
log
@Hack it to work on DragonFly.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.40 2007/10/25 21:04:22 jlam Exp $
d242 1
a242 3
		| ${SORT} | ${SED} -e "s,${PREFIX}/,,g";		\
	${FIND} ${GCC_PREFIX} -type d -print				\
		| ${SORT} -r | ${SED} -e "s,${PREFIX}/,@@dirrm ,g";
@


1.40
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.39 2007/04/07 22:23:01 dmcmahill Exp $
d93 6
d204 6
@


1.39
log
@_ULIMIT_CMD already includes a trailing ";" so don't follow that with
"&&" as some shells do not like this.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.38 2007/02/05 06:46:10 tron Exp $
a117 1
PLIST_SRC=		${WRKDIR}/PLIST_DYNAMIC
d228 5
a232 8
post-install:
	${CP} -f ${PKGDIR}/PLIST ${PLIST_SRC}
	${FIND} ${GCC_PREFIX} \( -type f -o -type l \) -print	\
		| ${SORT} | ${SED} -e "s,${PREFIX}/,,g"	\
		>> ${PLIST_SRC}
	${FIND} ${GCC_PREFIX} -type d -print	\
		| ${SORT} -r | ${SED} -e "s,${PREFIX}/,@@dirrm ,g"	\
		>> ${PLIST_SRC}
@


1.38
log
@Apply resource limits for ADA build, too.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.37 2007/02/04 22:54:13 tron Exp $
d205 1
a205 1
	(${_ULIMIT_CMD} && cd ${WRKDIR}/obj && ${SETENV} ${MAKE_ENV} ${GMAKE} bootstrap)
d207 2
a208 2
	(${_ULIMIT_CMD} && cd ${WRKDIR}/obj/gcc && ${SETENV} ${MAKE_ENV} ${GMAKE} gnatlib-shared)
	(${_ULIMIT_CMD} && cd ${WRKDIR}/obj/gcc && ${SETENV} ${MAKE_ENV} ${GMAKE} gnatlib_and_tools)
@


1.37
log
@Unlimit datasize to fix build under (at least) NetBSD-i386 3.3.1 using
NetBSD's GCC 3.3.3.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.36 2006/10/04 22:40:40 rillig Exp $
d207 2
a208 2
	(cd ${WRKDIR}/obj/gcc && ${SETENV} ${MAKE_ENV} ${GMAKE} gnatlib-shared)
	(cd ${WRKDIR}/obj/gcc && ${SETENV} ${MAKE_ENV} ${GMAKE} gnatlib_and_tools)
@


1.36
log
@Fixed the AWK interpreter. Bumped PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.35 2006/09/27 15:46:11 abs Exp $
d93 2
d205 1
a205 1
	(cd ${WRKDIR}/obj && ${SETENV} ${MAKE_ENV} ${GMAKE} bootstrap)
@


1.35
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.34 2006/04/13 18:23:34 jlam Exp $
d6 1
d53 3
@


1.34
log
@BUILD_USE_MSGFMT and USE_MSGFMT_PLURALS are obsolete.  Replace with
USE_TOOLS+=msgfmt.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.33 2006/04/05 11:03:59 shannonjr Exp $
d87 1
@


1.33
log
@Update to 3.4.6. This is a bugfix release.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.32 2006/03/05 16:27:26 jlam Exp $
a13 1
BUILD_USES_MSGFMT=	YES
d107 1
a107 1
USE_TOOLS+=		gmake makeinfo
@


1.32
log
@* Teach the tools framework how to supply the pkgsrc version of
  makeinfo if no native makeinfo executable exists.  Honor TEXINFO_REQD
  when determining whether the native makeinfo can be used.

* Remove USE_MAKEINFO and replace it with USE_TOOLS+=makeinfo.

* Get rid of all the "split" argument deduction for makeinfo since
  the PLIST module already handles varying numbers of split info files
  correctly.

NOTE: Platforms that have "makeinfo" in the base system should check
      that the makeinfo entries of pkgsrc/mk/tools.${OPSYS}.mk are
      correct.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.31 2006/02/05 23:09:45 joerg Exp $
a5 2
#PKGREVISION=	1
PKGREVISION=	1
d15 1
a15 1
GCC_VERSION=		3.4.5
@


1.31
log
@Recursive revision bump / recommended bump for gettext ABI change.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.30 2006/01/04 18:06:17 shannonjr Exp $
d110 1
a110 1
USE_TOOLS+=		gmake
d114 1
a114 2
USE_MAKEINFO=		YES
PLIST_SRC=	${WRKDIR}/PLIST_DYNAMIC
@


1.30
log
@Update to 3.4.5. This is a bug fix release.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.29 2005/12/29 06:21:46 jlam Exp $
d7 1
@


1.29
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.28 2005/12/05 23:55:09 rillig Exp $
d6 1
a6 1
PKGREVISION=	1
d16 1
a16 1
GCC_VERSION=		3.4.4
@


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


1.27
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.26 2005/11/05 08:43:44 rillig Exp $
d81 1
a81 1
CONFIGURE_ARGS+=	--enable-languages="${LANGS}"
d86 1
a86 1
CONFIGURE_ARGS+=	--with-local-prefix=${GCC_PREFIX}
d147 1
a147 1
CONFIGURE_ARGS+=	--prefix=${GCC_PREFIX}
d153 1
a153 1
CONFIGURE_ARGS+=	--host=${GCC_PLATFORM}
@


1.26
log
@The Solaris /bin/sh doesn't like two adjacent open parentheses. Removed
them completely, as they had been unnecessary. As ${MKDIR} already
includes the -p option, the ${TEST} is not necessary and has been
dropped, too. Fixes PR 32002.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2005/07/09 00:16:53 kristerw Exp $
d43 1
a43 1
MAKEFLAGS+=	USE_BINUTILS=${USE_BINUTILS}
d57 1
a57 1
BUILD_DEFS=	BUILD_ADA BUILD_CXX BUILD_F77 \
d94 1
a94 1
MAKE_ENV+=		ac_cv_path_ac_cv_prog_chmod="${TOOLS_CHMOD}"
d100 1
a100 1
PTHREAD_OPTS=		require native
d102 1
a102 1
PTHREAD_OPTS=		native
d113 1
a113 1
CONFIGURE_ENV+=		CONFIG_SHELL=${CONFIG_SHELL}
d132 1
a132 1
PKG_SKIP_REASON=	"${ALT_GCC} does not appear to be an Ada compiler"
d135 1
a135 1
PKG_SKIP_REASON=	"Missing bootstrap Ada compiler"
d139 1
a139 1
PKG_SKIP_REASON=	"An Ada bootstrap compiler must be specified to BUILD_ADA"
d145 1
a145 1
FILES_SUBST+=		PKGNAME=${PKGNAME}
d155 1
a155 1
MAKE_ENV+=	ABI_BASELINE_PAIR=${ABI_BASELINE_PAIR}
@


1.25
log
@Prevent paths to the build directories from being included in the
package for BUILD_F77.  Solves PR pkg/30628.

Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2005/05/22 20:08:09 jlam Exp $
d198 2
a199 2
	((${TEST} -d  ${WRKDIR}/obj || ${MKDIR} ${WRKDIR}/obj) && \
	 (cd ${WRKDIR}/obj && ${SETENV} ${CONFIGURE_ENV} ${WRKSRC}/configure ${CONFIGURE_ARGS}))
@


1.24
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.23 2005/05/20 19:25:21 shannonjr Exp $
d6 1
a6 1
#PKGREVISION=	1
d93 2
@


1.23
log
@Update from 3.3.3 to 3.3.4. This is a bugfix release. There is a very
significant reduction in the number of regressions, particularily with
libstdc++.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2005/04/11 21:46:13 tv Exp $
d108 1
a108 1
USE_GNU_TOOLS+=		make
@


1.22
log
@Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2005/01/21 20:52:24 tv Exp $
d16 1
a16 1
GCC_VERSION=		3.4.3
@


1.21
log
@Temporarily mark as not for Interix, until platform config and libtool fixed.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2004/11/15 11:38:42 shannonjr Exp $
a106 1
USE_BUILDLINK3=		YES
@


1.20
log
@Add missing '-print' to FIND
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2004/11/12 12:31:28 shannonjr Exp $
d18 2
d61 2
a62 2
BUILD_F77?=	YES
BUILD_JAVA?=	NO
@


1.19
log
@If Fortran frontend is being built, dependency on gmp is added. This
follows the stated prerequisites in the gcc installation documentation.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2004/11/08 16:44:34 shannonjr Exp $
d183 1
a183 1
	bin_files=`${FIND} . -type f \( -perm -0100 \)` && \
@


1.18
log
@Update to 3.4.3. This release is a bug-fix release, containing fixes for
regressions in GCC relative to previous releases of GCC.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2004/11/05 12:40:23 shannonjr Exp $
d88 5
@


1.17
log
@Re: pkg/27775 programs compiled with gcc34 don't find gcc34's libraries
Added patch patterned after the one in lang/gcc3 to set rpath for libgcc
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2004/10/30 12:06:59 shannonjr Exp $
d6 1
a6 1
#PKGREVISION=	4
d16 1
a16 1
GCC_VERSION=		3.4.2
@


1.16
log
@Revised to build dynamic (in addition to static) libgnat if Ada language
frontend is built.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2004/09/21 13:32:40 shannonjr Exp $
d84 1
@


1.15
log
@Upgrade from 3.4.1 to 3.4.2. gcc 3.4.2 is a bug fix release containing fixes
for regressions in GCC 3.4.1 relative to previous releases of GCC.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2004/08/11 19:08:15 shannonjr Exp $
d195 1
@


1.14
log
@1) Locate adalib for bootstrap compiler with ${ALT_GCC} --print-file-name=adalib
   rather than find. This behaves better if ${ALT_GCC} does not specify
   a gcc executable.
2) Change to uniform handling of ABI baseline-pairs for NetBSD. There
   must be agreement between the Makefile and libstdc++-v3/configure.host;
   this change ensures consistency by introducing ABI_BASELINE_PAIR
   variable used in both.
3) Bump revision number.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2004/08/10 15:11:14 shannonjr Exp $
d6 1
a6 1
PKGREVISION=	4
d16 1
a16 1
GCC_VERSION=		3.4.1
@


1.13
log
@Introduce several changes so that package builds successfully on
alpha--netbsd1.6.2:
1) Rename the baseline_symbols.txt files that define abi and implement
   logic in Makefile that uses these according to architecture and
   NetBSD version (1.x versus 2.x)
2) Add several patches that allow code to compile on alpha--netbsd1.6.2
3) Revise Makefile so that libiconv is found under NetBSD 1.6.2
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2004/08/08 11:12:13 shannonjr Exp $
d6 1
a6 1
PKGREVISION=	3
d119 2
a120 2
ALT_GCC_PREFIX:=	${ALT_GCC:H}/..
ALT_GCC_RTS!=	${FIND} ${ALT_GCC_PREFIX} -name adalib
d122 3
d143 1
a143 1
GCC_PLATFORM=	${LOWER_ARCH}--${LOWER_OPSYS}${APPEND_ELF}${LOWER_OS_VERSION:C/_.*//}
d145 2
d152 2
a153 2
	(${TEST} -d ${WRKSRC}/libstdc++-v3/config/abi/${GCC_PLATFORM:C/--/-/} || \
		${MKDIR} ${WRKSRC}/libstdc++-v3/config/abi/${GCC_PLATFORM:C/--/-/})
d155 1
a155 1
		${WRKSRC}/libstdc++-v3/config/abi/${GCC_PLATFORM:C/--/-/}/baseline_symbols.txt
@


1.12
log
@The make target is install not ${INSTALL}. Thank you Georg Schwarz for
pointing this out.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2004/08/06 20:56:15 shannonjr Exp $
d15 1
d84 3
d102 1
a102 1
HAS_CONFIGURE=		YES
d139 1
d142 1
a142 3
GCC_ARCHSUBDIR=	${GCC_SUBPREFIX}/lib/gcc/${GCC_PLATFORM}/${GCC_VERSION}
GCC_ARCHDIR=	${PREFIX}/${GCC_ARCHSUBDIR}
.endif
d145 7
a151 8
.if (${MACHINE_GNU_ARCH} == "x86_64")
	(${TEST} -d ${WRKSRC}/libstdc++-v3/config/abi/x86_64-netbsdelf2.0 || \
	${MKDIR} ${WRKSRC}/libstdc++-v3/config/abi/x86_64-netbsdelf2.0 )
	${CP} ${FILESDIR}/baseline_symbols64.txt ${WRKSRC}/libstdc++-v3/config/abi/x86_64-netbsdelf2.0/baseline_symbols.txt
.else
	(${TEST} -d ${WRKSRC}/libstdc++-v3/config/abi/i386-netbsdelf2.0 || \
	${MKDIR} ${WRKSRC}/libstdc++-v3/config/abi/i386-netbsdelf2.0 )
	${CP} ${FILESDIR}/baseline_symbols.txt ${WRKSRC}/libstdc++-v3/config/abi/i386-netbsdelf2.0
@


1.11
log
@Override "host" in configure only for NetBSD. This was requested because
the operating system for irix was not as expected. The choice for NetBSD
is maintained for backward compatibility.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2004/08/01 10:14:16 shannonjr Exp $
d198 1
a198 1
	(cd ${WRKDIR}/obj && ${SETENV} ${MAKE_ENV} ${GMAKE} ${INSTALL} \
a224 1
.include "../../converters/libiconv/buildlink3.mk"
d227 1
@


1.10
log
@Check the version of as using the just-computed ${AS_PATH}, not ${AS},
following the change to gcc3/Makefile.common submitted by jlam@@netbsd.org
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2004/07/28 21:30:19 shannonjr Exp $
d134 1
d139 1
@


1.9
log
@1) Fixed two Ada bootstrap issues reported by Matthias Drochner:
   a) The BUILD_ADA must be YES (strictly capitalized) for the
      pre-configure target to work, which is inconsistent.
   b) For me (using ALT_GCC), the directory .work/.gcc was not
      present at pre-configure time, which made some "cd" fail.
2) Makefile cleanup as recommended by Lubomir.
3) pkglint cleanup
4) Increment PKGREVISION
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2004/07/28 12:14:49 shannonjr Exp $
d33 1
a33 1
AS_VERSION!=	${AS} --version | ${AWK} '{				\
d46 1
@


1.8
log
@1) Renamed patch-libstdc++-v3_configure_host to follow naming convention
2) Removed USE_GCC33ADA option. gcc3-ada may still be used as a bootstrap
   Ada compiler by specifying ALT_GCC
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2004/07/28 07:37:19 shannonjr Exp $
d6 1
a6 1
PKGREVISION=	2
d133 1
a133 2
LOWER_OPSYS_VERSUFFIX!=	echo ${LOWER_OS_VERSION} | ${CUT} -d _ -f 1
GCC_PLATFORM=	${LOWER_ARCH}--${LOWER_OPSYS}${APPEND_ELF}${LOWER_OPSYS_VERSUFFIX}
d156 1
a156 1
.if ${BUILD_ADA} == "YES"
d163 1
d170 4
a173 4
	  $(ECHO) '#!/bin/sh' > $${filename}; \
	  $(ECHO) -n "exec ${ALT_GCC:H}/$${filename} " >>$${filename}; \
	  $(ECHO) '"$$@@"' >>$${filename}; \
	  $(CHMOD) +x $${filename}; \
d190 1
a190 1
	(cd files && ${CP} netbsd64macro.dfs ${WRKSRC}/gcc/testsuite/ada/acats/support/macro.dfs)
@


1.7
log
@1) Removed two patches because the problem, corrected by the patches, has
   been corrected in 3.4.1 source
2) Incremented PKGREVISION
3) Corrected attempt to elimiate hardcoded
   GCC_PLATFORM=${MACHINE_GNU_ARCH}--netbsdelf2.0
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2004/07/26 21:55:37 shannonjr Exp $
d106 2
a107 3
# An Ada compiler is required to build the Ada compiler. Two
may be used:
#USE_GCC33ADA	=# Define to use gcc-3.3.x-ada
d109 2
a110 3
# You may also specify the path of a gcc/gnat Ada compiler
# outside of the pkgsrc system by specifying the full path
# of the compiler (example) below:
d121 1
a121 1
.  if !defined(USE_GCC33ADA) && !defined(USE_GCC34ADA) && !defined(ALT_GCC)
d217 2
a218 4
.  if defined(USE_GCC33ADA)
.include "../../lang/gcc3-ada/buildlink3.mk"
.  elif  defined(USE_GCC34ADA)
BUILDLINK_DEPMETHOD.gcc3-ada=build
@


1.6
log
@1) Revised ABI specification (baseline_symbols.txt) to go with release 3.4.1
2) Added include statment for zlib/buildlink3.mk to Makefile to go with
   CONFIGURE_ARGS+=--with-system-zlib already there. Thank you
   Georg Schwarz <geos@@epost.de> for pointing out this ommision.
3) Incorporated logic from gcc3 that determines whether to add
   binutils dependency or not.
4) Eliminated hardcoded target of netbsdelf2.0 as a step toward supporting
   other architectures.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2004/07/21 16:03:33 shannonjr Exp $
d6 1
a6 1
PKGREVISION=	1
d22 1
a22 1
AS_PATH:=   ${AS}
d26 1
a26 1
AS_PATH:=   ${_dir_}/${AS}
d135 5
@


1.5
log
@Update from 3.4.1 RC1 to 3.4.1 (release). I do not believe that any actual
changes to the gcc codebase occurred with this delta.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2004/07/09 22:04:16 seb Exp $
d6 1
d19 31
a80 2
CONFIGURE_ARGS+=	--enable-nls
CONFIGURE_ARGS+=	--without-included-gettext
a81 1
CONFIGURE_ARGS+=	--enable-clocale=generic
d98 2
a132 1
GCC_PLATFORM=		${MACHINE_GNU_ARCH}--netbsdelf2.0
a134 3
CONFIGURE_ARGS+=	--host=${GCC_PLATFORM}
GCC_ARCHSUBDIR=	${GCC_SUBPREFIX}/lib/gcc/${GCC_PLATFORM}/${GCC_VERSION}
GCC_ARCHDIR=	${PREFIX}/${GCC_ARCHSUBDIR}
d222 1
@


1.4
log
@Remove USE_NEW_TEXINFO, it is a noop now.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2004/07/09 20:11:36 drochner Exp $
d4 1
a4 1
DISTNAME=	gcc-${GCC_VERSION}-${GCC_VERSION_DATE}
d7 1
a7 2
#MASTER_SITES=	${MASTER_SITE_GNU:=gcc/gcc-${GCC_VERSION}/}
MASTER_SITES=	ftp://gcc.gnu.org/pub/gcc/prerelease-${GCC_VERSION}-${GCC_VERSION_DATE}/
a14 1
GCC_VERSION_DATE=	20040625
@


1.3
log
@oops - have to order the includes / tests a bit differently to avoid
an unwanted dependency on pth on 1.6.x
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2004/07/09 19:25:12 drochner Exp $
a71 1
USE_NEW_TEXINFO=	YES
@


1.2
log
@make this usable on 1.6.x, w/o native threads:
-disable thread support if no native threads are available
-require native threads only if ADA is built
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1.1.1 2004/06/29 18:01:24 shannonjr Exp $
d56 4
d61 2
a76 3
# ADA tasking strictly requires native threads
PTHREAD_OPTS=	require native

a196 1
.include "../../mk/pthread.buildlink3.mk"
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1.1.1 2004/06/01 19:18:15 shannonjr Exp $
d55 5
a66 1
PTHREAD_OPTS+=	require native
d70 4
@


1.1.1.1
log
@This is the gcc 3.4 compiler suite. 
@
text
@@
