aboutsummaryrefslogtreecommitdiffstats
path: root/devel/arm-elf-binutils/Makefile
blob: e2e0e99f60697108cc97b7f8b0e1e827642a6b01 (plain) (blame)
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
30
# Created by: Espen Skoglund <esk@ira.uka.de>
# $FreeBSD$

PORTNAME=   binutils
PORTVERSION=    2.25
CATEGORIES= devel
MASTER_SITES=   ${MASTER_SITE_SOURCEWARE}
MASTER_SITE_SUBDIR= 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} -f ${STAGEDIR}${PREFIX}/${PKGNAMEPREFIX:S/-$//}/info/*
    ${RMDIR} ${STAGEDIR}${PREFIX}/${PKGNAMEPREFIX:S/-$//}/info

.include <bsd.port.mk>