pkgsrc/cross/aarch64-none-elf-gcc/Makefile
rillig 1b41af41b8 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.
2019-06-08 10:53:26 +00:00

57 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.11 2019/06/08 10:53:26 rillig Exp $
DISTNAME= gcc-8.2.0
PKGNAME= cross-aarch64-none-elf-${DISTNAME}
CATEGORIES= cross
MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${PKGVERSION_NOREV}/}
NEWLIBVER= 3.0.0
SITES.newlib-${NEWLIBVER}.tar.gz= https://www.sourceware.org/pub/newlib/
DISTFILES= ${DEFAULT_DISTFILES} \
newlib-${NEWLIBVER}.tar.gz
EXTRACT_USING= bsdtar
MAINTAINER= port-arm@NetBSD.org
HOMEPAGE= # none
COMMENT= GCC for bare metal AArch64 ELF
EXTRACT_SUFX= .tar.xz
# for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33549
# use makeinfo from pkgsrc/devel/gtexinfo.
TOOL_DEPENDS+= gtexinfo>=5.1:../../devel/gtexinfo
_TOOLS_USE_PKGSRC.makeinfo= yes
DEPENDS+= cross-aarch64-none-elf-binutils-[0-9]*:../../cross/aarch64-none-elf-binutils
USE_LANGUAGES+= c c++
AARCH64ELF_PREFIX= ${PREFIX}/cross-aarch64-none-elf
OBJDIR= ../build
CONFIGURE_DIRS= ${OBJDIR}
CONFIGURE_SCRIPT= ${WRKSRC}/configure
CONFIG_SHELL= ${TOOLS_PATH.bash}
WRAPPER_SHELL= ${TOOLS_PATH.bash}
USE_TOOLS+= bash gmake makeinfo perl
GNU_CONFIGURE= yes
GNU_CONFIGURE_PREFIX= ${AARCH64ELF_PREFIX}
CONFIGURE_ARGS+= --target=aarch64-none-elf
CONFIGURE_ARGS+= --enable-languages=c,c++
CONFIGURE_ARGS+= --with-newlib
CONFIGURE_ARGS+= --disable-nls
CONFIGURE_ARGS+= --disable-libstdcxx-pch
INFO_FILES= yes
post-extract:
${LN} -s ${WRKDIR}/newlib-${NEWLIBVER}/newlib ${WRKSRC}/newlib
${LN} -s ${WRKDIR}/newlib-${NEWLIBVER}/libgloss ${WRKSRC}/libgloss
pre-configure:
${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR}
.include "../../devel/gmp/buildlink3.mk"
.include "../../math/mpfr/buildlink3.mk"
.include "../../math/mpcomplex/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"