head	1.14;
access;
symbols
	pkgsrc-2026Q1:1.14.0.22
	pkgsrc-2026Q1-base:1.14
	pkgsrc-2025Q4:1.14.0.20
	pkgsrc-2025Q4-base:1.14
	pkgsrc-2025Q3:1.14.0.18
	pkgsrc-2025Q3-base:1.14
	pkgsrc-2025Q2:1.14.0.16
	pkgsrc-2025Q2-base:1.14
	pkgsrc-2025Q1:1.14.0.14
	pkgsrc-2025Q1-base:1.14
	pkgsrc-2024Q4:1.14.0.12
	pkgsrc-2024Q4-base:1.14
	pkgsrc-2024Q3:1.14.0.10
	pkgsrc-2024Q3-base:1.14
	pkgsrc-2024Q2:1.14.0.8
	pkgsrc-2024Q2-base:1.14
	pkgsrc-2024Q1:1.14.0.6
	pkgsrc-2024Q1-base:1.14
	pkgsrc-2023Q4:1.14.0.4
	pkgsrc-2023Q4-base:1.14
	pkgsrc-2023Q3:1.14.0.2
	pkgsrc-2023Q3-base:1.14
	pkgsrc-2023Q2:1.12.0.8
	pkgsrc-2023Q2-base:1.12
	pkgsrc-2023Q1:1.12.0.6
	pkgsrc-2023Q1-base:1.12
	pkgsrc-2022Q4:1.12.0.4
	pkgsrc-2022Q4-base:1.12
	pkgsrc-2022Q3:1.12.0.2
	pkgsrc-2022Q3-base:1.12
	pkgsrc-2022Q2:1.11.0.10
	pkgsrc-2022Q2-base:1.11
	pkgsrc-2022Q1:1.11.0.8
	pkgsrc-2022Q1-base:1.11
	pkgsrc-2021Q4:1.11.0.6
	pkgsrc-2021Q4-base:1.11
	pkgsrc-2021Q3:1.11.0.4
	pkgsrc-2021Q3-base:1.11
	pkgsrc-2021Q2:1.11.0.2
	pkgsrc-2021Q2-base:1.11
	pkgsrc-2021Q1:1.10.0.8
	pkgsrc-2021Q1-base:1.10
	pkgsrc-2020Q4:1.10.0.6
	pkgsrc-2020Q4-base:1.10
	pkgsrc-2020Q3:1.10.0.4
	pkgsrc-2020Q3-base:1.10
	pkgsrc-2020Q2:1.10.0.2
	pkgsrc-2020Q2-base:1.10
	pkgsrc-2020Q1:1.7.0.6
	pkgsrc-2020Q1-base:1.7
	pkgsrc-2019Q4:1.7.0.8
	pkgsrc-2019Q4-base:1.7
	pkgsrc-2019Q3:1.7.0.4
	pkgsrc-2019Q3-base:1.7
	pkgsrc-2019Q2:1.7.0.2
	pkgsrc-2019Q2-base:1.7
	pkgsrc-2019Q1:1.6.0.2
	pkgsrc-2019Q1-base:1.6
	pkgsrc-2018Q4:1.5.0.4
	pkgsrc-2018Q4-base:1.5
	pkgsrc-2018Q3:1.5.0.2
	pkgsrc-2018Q3-base:1.5
	pkgsrc-2018Q2:1.4.0.4
	pkgsrc-2018Q2-base:1.4
	pkgsrc-2018Q1:1.4.0.2
	pkgsrc-2018Q1-base:1.4
	pkgsrc-2017Q4:1.3.0.6
	pkgsrc-2017Q4-base:1.3
	pkgsrc-2017Q3:1.3.0.4
	pkgsrc-2017Q3-base:1.3
	pkgsrc-2017Q2:1.2.0.6
	pkgsrc-2017Q2-base:1.2
	pkgsrc-2017Q1:1.2.0.4
	pkgsrc-2017Q1-base:1.2
	pkgsrc-2016Q4:1.2.0.2
	pkgsrc-2016Q4-base:1.2;
locks; strict;
comment	@# @;


1.14
date	2023.08.09.08.24.39;	author nia;	state Exp;
branches;
next	1.13;
commitid	AfASjSFYAlCHt5AE;

1.13
date	2023.08.02.19.20.18;	author nia;	state Exp;
branches;
next	1.12;
commitid	WBs42aZhtfmDkfzE;

1.12
date	2022.06.28.11.31.15;	author wiz;	state Exp;
branches;
next	1.11;
commitid	D2UoJrTHpoHEANJD;

1.11
date	2021.05.24.19.49.26;	author wiz;	state Exp;
branches;
next	1.10;
commitid	qokaiStTApGMcrUC;

1.10
date	2020.05.13.05.03.08;	author rillig;	state Exp;
branches;
next	1.9;
commitid	DVt9FLP8s4Ruo28C;

1.9
date	2020.05.09.17.52.27;	author rillig;	state Exp;
branches;
next	1.8;
commitid	qSuhAzesLyAjMA7C;

1.8
date	2020.05.09.17.49.37;	author rillig;	state Exp;
branches;
next	1.7;
commitid	9KDMoJSCzX1rLA7C;

1.7
date	2019.06.08.10.53.28;	author rillig;	state Exp;
branches;
next	1.6;
commitid	2yYl7OuEoMYCfnqB;

1.6
date	2019.03.22.13.16.33;	author tnn;	state Exp;
branches;
next	1.5;
commitid	BJyrnHxCiQ0SymgB;

1.5
date	2018.07.18.00.06.12;	author joerg;	state Exp;
branches;
next	1.4;
commitid	9fkLzQuPlqFC7yKA;

1.4
date	2018.01.28.16.24.12;	author wiz;	state Exp;
branches;
next	1.3;
commitid	LOrJXggMMAXd2FoA;

1.3
date	2017.09.09.15.17.12;	author dholland;	state Exp;
branches;
next	1.2;
commitid	JgWWMFB94F2jcx6A;

1.2
date	2016.10.24.22.34.19;	author ryoon;	state Exp;
branches;
next	1.1;
commitid	OdzMJmv7NyqYTrrz;

1.1
date	2016.10.19.12.38.41;	author ryoon;	state Exp;
branches;
next	;
commitid	9iihCUjubG3DLKqz;


desc
@@


1.14
log
@cross: Mark various versions of gcc unsuitable for MKPIE.

This follows lang/gcc* already having it, but the new wrapper behaviour
appears to have resulted in new fallout from these packages
previously being overlooked.

While here, use FORTIFY_SUPPORTED in mingw-w64-gcc instead of
overriding the user's choice of a FORTIFY pkgsrc variable.
@
text
@# $NetBSD: Makefile,v 1.13 2023/08/02 19:20:18 nia Exp $

DISTNAME=		gcc-6.2.0
PKGNAME=		cross-h8300-elf-${DISTNAME}
PKGREVISION=		4
CATEGORIES=		cross
MASTER_SITES=		${MASTER_SITE_GNU:=gcc/gcc-${PKGVERSION_NOREV}/}
EXTRACT_SUFX=		.tar.bz2
DISTFILES=		${DISTNAME}${EXTRACT_SUFX} \
			newlib-${NEWLIBVER}.tar.gz

MAINTAINER=		pkgsrc-users@@NetBSD.org
HOMEPAGE=		#empty
COMMENT=		GCC compiler for h8300-elf

NEWLIBVER=		2.4.0
SITES.newlib-${NEWLIBVER}.tar.gz=	https://www.sourceware.org/pub/newlib/

DEPENDS+=	cross-h8300-elf-binutils-[0-9]*:../../cross/h8300-elf-binutils

# Fails with C++14 default language.
FORCE_CXX_STD=		c++03

# Relocations result in a linker error.
MKPIE_SUPPORTED=	no

.include "../../mk/bsd.prefs.mk"
# To avoid an internal compiler error of a library for h8300h
#  on NetBSD/amd64 7.99.39 (GCC 5.4)
.if ${OPSYS} == "NetBSD"
GCC_REQD+=		6
.endif

USE_LANGUAGES=		c c++

H8300_PREFIX=		${PREFIX}/cross-h8300-elf
OBJDIR=			../build
CONFIGURE_DIRS=		${OBJDIR}
CONFIGURE_SCRIPT=	${WRKSRC}/configure

USE_TOOLS+=		gmake makeinfo
TOOLS_BROKEN+=		perl
GNU_CONFIGURE=		yes
GNU_CONFIGURE_STRICT=	no # has sub-configures
CHECK_PORTABILITY_SKIP+= contrib/* # not needed for building

GNU_CONFIGURE_PREFIX=	${H8300_PREFIX}

CONFIGURE_ARGS+=	--disable-nls
CONFIGURE_ARGS+=	--target=h8300-elf
CONFIGURE_ARGS+=	--enable-languages=c
CONFIGURE_ARGS+=	--with-newlib
CONFIGURE_ARGS+=	--disable-libstdcxx-pch
CONFIGURE_ARGS+=	--with-gmp=${BUILDLINK_PREFIX.gmp}
CONFIGURE_ARGS+=	--with-mpc=${BUILDLINK_PREFIX.mpcomplex}
CONFIGURE_ARGS+=	--with-mpfr=${BUILDLINK_PREFIX.mpfr}
MAKE_ENV+=		SHELL=${CONFIG_SHELL}
INFO_FILES=		yes

post-extract:
	${LN} -s ${WRKDIR}/newlib-${NEWLIBVER}/newlib ${WRKSRC}/newlib

pre-configure:
	${MKDIR} ${WRKSRC}/${OBJDIR}
	${CP} ${PKGSRCDIR}/mk/gnu-config/config.guess ${WRKSRC}
	${CP} ${PKGSRCDIR}/mk/gnu-config/config.sub ${WRKSRC}

.include "../../devel/gmp/buildlink3.mk"
.include "../../math/mpcomplex/buildlink3.mk"
.include "../../math/mpfr/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@


1.13
log
@*: Mark packages that were originally identified as requiring
C++03 due to failing to build with a C++14 default compiler
with FORCE_CXX_STD instead of USE_LANGUAGES.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2022/06/28 11:31:15 wiz Exp $
d24 3
@


1.12
log
@*: recursive bump for perl 5.36
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2021/05/24 19:49:26 wiz Exp $
d21 3
d31 1
a31 1
USE_LANGUAGES=		c c++03
@


1.11
log
@*: recursive bump for perl 5.34
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2020/05/13 05:03:08 rillig Exp $
d5 1
a5 1
PKGREVISION=		3
@


1.10
log
@cross/h8300-elf-gcc: suppress USE_TOOLS+=perl warning
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2020/05/09 17:52:27 rillig Exp $
d5 1
a5 1
PKGREVISION=		2
@


1.9
log
@cross/h8300-elf-gcc: fix typo from previous commit
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2020/05/09 17:49:37 rillig Exp $
d36 1
@


1.8
log
@cross/h8300-elf-gcc: fix build in strict environment
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2019/06/08 10:53:28 rillig Exp $
d38 1
a38 1
CHECK_PORTABILITY_CHECK+= contrib/* # not needed for building
@


1.7
log
@cross/*: let pkglint autofix indentation and variable alignment

pkglint -Wall -F -r cross

xtensa-esp32-elf-gcc has been manually edited afterwards because when
realigning variable assignments, pkglint only allows one long outlier
line. This package has two long SITES.* lines, therefore pkglint wanted
to indent the variable values much further to the right. This needs to be
fixed in pkglint.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2019/03/22 13:16:33 tnn Exp $
d37 2
@


1.6
log
@use http master site for newlib
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2018/07/18 00:06:12 joerg Exp $
d25 1
a25 1
GCC_REQD+=		6.2
@


1.5
log
@Mark packages that require C++03 (or the GNU variants) if they fail with
C++14 default language.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2018/01/28 16:24:12 wiz Exp $
d17 1
a17 1
SITES.newlib-${NEWLIBVER}.tar.gz=	ftp://sources.redhat.com/pub/newlib/
@


1.4
log
@recursive bump after mpfr shlib major bump
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2017/09/09 15:17:12 dholland Exp $
d28 1
a28 1
USE_LANGUAGES=		c c++
@


1.3
log
@shut up pkglint
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2016/10/24 22:34:19 ryoon Exp $
d5 1
a5 1
PKGREVISION=		1
@


1.2
log
@Bump PKGREVISION

* Enable multilib for h8300h etc.
* Disable C++ support. It causes internal compiler error for h8300h
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2016/10/19 12:38:41 ryoon Exp $
a10 2
NEWLIBVER=		2.4.0
SITES.newlib-${NEWLIBVER}.tar.gz=	ftp://sources.redhat.com/pub/newlib/
d16 3
d45 3
a47 3
CONFIGURE_ARGS+=        --with-gmp=${BUILDLINK_PREFIX.gmp}
CONFIGURE_ARGS+=        --with-mpc=${BUILDLINK_PREFIX.mpcomplex}
CONFIGURE_ARGS+=        --with-mpfr=${BUILDLINK_PREFIX.mpfr}
@


1.1
log
@Import cross-h8300-elf-gcc-6.2.0 as cross/h8300-elf-gcc.

gcc for Hitachi/Renesas H8/300 ELF cross-compile environment.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2016/10/17 13:44:38 ryoon Exp $
d5 1
d20 7
d41 1
a41 2
CONFIGURE_ARGS+=	--enable-languages=c,c++
CONFIGURE_ARGS+=	--disable-multilib
@

