freebsd-ports/devel/arm-elf-binutils/Makefile
2014-04-26 14:53:10 +00:00

30 lines
965 B
Makefile

# Created by: Espen Skoglund <esk@ira.uka.de>
# $FreeBSD$
PORTNAME= binutils
PORTVERSION= 2.24
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>