summaryrefslogtreecommitdiff
path: root/devel/arm-elf-binutils/Makefile
blob: fdede1ca79f94c42eec9642a9ff296a94e40ffc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Created by: Espen Skoglund <esk@ira.uka.de>
# $FreeBSD$

PORTNAME=	binutils
PORTVERSION=	2.27
CATEGORIES=	devel
MASTER_SITES=	SOURCEWARE/binutils/releases
PKGNAMEPREFIX=	arm-elf-

MAINTAINER=	danilo@FreeBSD.org
COMMENT=	GNU binutils for vanilla ARM cross-development

USES=		gettext gmake tar:bzip2
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--target=${PKGNAMEPREFIX:S/-$//} --disable-werror \
		--disable-nls CFLAGS="-I/usr/local/include"
INFO_PATH=	${PKGNAMEPREFIX:S/-$//}/info

post-install:
.for F in addr2line c++filt elfedit gprof objcopy objdump readelf size strings
	${LN} -f ${STAGEDIR}${PREFIX}/bin/${PKGNAMEPREFIX}$F  \
		${STAGEDIR}${PREFIX}/${PKGNAMEPREFIX:S/-$//}/bin/$F
.endfor
	cd ${WRKSRC}/libiberty ; ${CP} libiberty.a \
		${STAGEDIR}${PREFIX}/${PKGNAMEPREFIX:S/-$//}/lib
	${RM} ${STAGEDIR}${PREFIX}/${PKGNAMEPREFIX:S/-$//}/info/*
	${RMDIR} ${STAGEDIR}${PREFIX}/${PKGNAMEPREFIX:S/-$//}/info

.include <bsd.port.mk>