1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/devel/avr-binutils/Makefile
Mark Linimon a8693b8dee Force numerous ports that fail to build with clang over to instead always
rely on gcc.  The patch uses the new USE_GCC=any code in Mk/bsd.gcc.mk to
accomplish this.

The ports chosen were ports that blocked 2 or more ports from building with
clang.  (There are several hundred other ports that still fail to build with
clang, even with this patch.  This is merely one step along the way.)

Those interested in fixing these ports with clang, and have clang as their
default compiler, can simply set FORCE_BASE_CC_FOR_TESTING=yes.

For those who have gcc as their default compiler, this change is believed
to cause no change.

Hat:		portmgr
Tested with:	multiple runs on amd64-8-exp-bcm and 9-exp-clang, with various
		combinations of patch/no-patch and flag settings.
2012-10-09 22:12:13 +00:00

61 lines
1.3 KiB
Makefile

# New ports collection makefile for: avr-gcc
# Date created: 30 Nov 2000
# Whom: Joerg Wunsch <joerg@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= binutils
PORTVERSION= 2.20.1
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEWARE}
MASTER_SITE_SUBDIR= binutils/releases
PKGNAMEPREFIX= avr-
MAINTAINER= joerg@FreeBSD.org
COMMENT= GNU binutils for Atmel AVR 8-bit RISC cross-development
WRKSRC= ${WRKDIR}/binutils-${PORTVERSION}
USE_BZIP2= yes
USE_GCC= any
USE_GMAKE= yes
USE_GETTEXT= yes
CONFIGURE_ARGS= --target=avr
GNU_CONFIGURE= yes
LDFLAGS+= -L${LOCALBASE}/lib
CFLAGS+= -I${LOCALBASE}/include
.if (${MACHINE_ARCH} == "amd64")
MACHINE_ARCH= x86_64
.endif
MAN1= \
avr-addr2line.1 \
avr-ar.1 \
avr-as.1 \
avr-c++filt.1 \
avr-dlltool.1 \
avr-gprof.1 \
avr-ld.1 \
avr-nlmconv.1 \
avr-nm.1 \
avr-objcopy.1 \
avr-objdump.1 \
avr-ranlib.1 \
avr-readelf.1 \
avr-size.1 \
avr-strings.1 \
avr-strip.1 \
avr-windmc.1 \
avr-windres.1
INFO= as binutils gprof ld bfd standards configure
INFO_PATH= ${PKGNAMEPREFIX:S/-$//}/info
add-plist-post:
@${ECHO_CMD} "@unexec rm %D/${INFO_PATH}/dir 2> /dev/null || true" >> ${TMPPLIST}
@${ECHO_CMD} "@unexec rmdir %D/${INFO_PATH} 2> /dev/null || true" >> ${TMPPLIST}
@${ECHO_CMD} "@unexec rmdir %D/${PKGNAMEPREFIX:S/-$//} 2> /dev/null || true" >> ${TMPPLIST}
.include <bsd.port.mk>