1b41af41b8
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.
62 lines
1.7 KiB
Makefile
62 lines
1.7 KiB
Makefile
# $NetBSD: Makefile,v 1.7 2019/06/08 10:53:28 rillig Exp $
|
|
|
|
DISTNAME= gcc-6.2.0
|
|
PKGNAME= cross-h8300-elf-${DISTNAME}
|
|
PKGREVISION= 2
|
|
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
|
|
|
|
.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++03
|
|
|
|
H8300_PREFIX= ${PREFIX}/cross-h8300-elf
|
|
OBJDIR= ../build
|
|
CONFIGURE_DIRS= ${OBJDIR}
|
|
CONFIGURE_SCRIPT= ${WRKSRC}/configure
|
|
|
|
USE_TOOLS+= gmake makeinfo
|
|
GNU_CONFIGURE= yes
|
|
|
|
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"
|