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.
34 lines
891 B
Makefile
34 lines
891 B
Makefile
# $NetBSD: Makefile,v 1.28 2019/06/08 10:53:27 rillig Exp $
|
|
|
|
DISTNAME= bfd-crunchide-1.2
|
|
PKGREVISION= 1
|
|
CATEGORIES= cross
|
|
MASTER_SITES= # empty
|
|
DISTFILES= # empty
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
COMMENT= Crunchide using libbfd, used for cross-building distributions
|
|
|
|
BUILDLINK_DEPMETHOD.cross-binutils= build
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
NO_CONFIGURE= yes
|
|
|
|
CPPFLAGS+= -I${PREFIX}/cross/include
|
|
MAKE_ENV+= LIBS=${BFD_LIBS:Q}
|
|
MAKE_ENV+= ${BSD_MAKE_ENV}
|
|
USE_BSD_MAKEFILE= yes
|
|
MAKE_FLAGS+= PREFIX=${PREFIX}/cross
|
|
MAKE_FLAGS+= BINDIR=${PREFIX}/cross/bin
|
|
|
|
BFD_LIBS= ${PREFIX}/cross/lib/libbfd.a ${PREFIX}/cross/lib/libiberty.a ${PREFIX}/cross/lib/libintl.a
|
|
|
|
INSTALLATION_DIRS= cross/bin
|
|
|
|
do-extract:
|
|
@${MKDIR} ${WRKSRC}
|
|
@${CP} ${FILESDIR}/Makefile ${FILESDIR}/crunchide.1 ${FILESDIR}/crunchide.c \
|
|
${WRKSRC}
|
|
|
|
.include "../../cross/cross-binutils/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|