pkgsrc/cross/xtensa-esp32-elf-binutils/Makefile
rillig e99cead22a cross/*-binutils: allow unknown --enable-nls configure option
The top-level configure script does not know this option, but it calls
several sub-configures that all know it.
2020-04-26 09:47:39 +00:00

43 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.3 2020/04/26 09:47:41 rillig Exp $
DISTNAME= binutils-2.32
PKGREVISION= 1
PKGNAME= ${DISTNAME:C/.*binutils(-gdb)?/xtensa-esp32-elf-binutils/}
CATEGORIES= cross
MASTER_SITES= ${MASTER_SITE_GNU:=binutils/}
EXTRACT_SUFX= .tar.xz
# Espressif overlays
DISTFILES= ${DEFAULT_DISTFILES}
DISTFILES+= crosstool-ng-esp32-2019r1.tar.gz
SITES.crosstool-ng-esp32-2019r1.tar.gz= -https://github.com/espressif/crosstool-NG/archive/ce035ad3351127e4fdb3ff96790caba42b9f1aa3.tar.gz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/espressif/binutils-gdb
COMMENT= Cross binutils for Espressif ESP32 bare metal environment
LICENSE= gnu-gpl-v2 AND gnu-gpl-v3 AND gnu-lgpl-v2 AND gnu-lgpl-v3
INFO_FILES= yes
GNU_CONFIGURE= yes
GNU_CONFIGURE_STRICT= no # several sub-configures know --enable-nls
USE_LIBTOOL= yes
USE_TOOLS+= gmake makeinfo
OBJDIR= ../build
CONFIGURE_DIRS= ${OBJDIR}
CONFIGURE_SCRIPT= ${WRKSRC}/configure
GNU_CONFIGURE_PREFIX= ${PREFIX}/xtensa-esp32-elf
CONFIGURE_ARGS+= --disable-werror
CONFIGURE_ARGS+= --target=xtensa-esp32-elf
CONFIGURE_ARGS+= --enable-multilib
CONFIGURE_ARGS+= --disable-nls
CONFIGURE_ARGS+= --disable-gdb
post-extract:
${CP} -r ${WRKDIR}/crosstool-NG*/overlays/xtensa_esp32/binutils/. \
${WRKSRC}/.
pre-configure:
${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR}
.include "../../mk/bsd.pkg.mk"