Files
bsdports/devel/arm-eabi-binutils/Makefile
2022-09-23 15:39:50 +02:00

58 lines
1.4 KiB
Makefile

#
# $Id$
#
PORTNAME= binutils
PORTVERSION= 2.37
CATEGORIES= devel
MASTER_SITES= http://ftp.gnu.org/gnu/binutils/
PKGNAMEPREFIX= ${TARGET}-
MAINTAINER= homeunix7@gmail.com
COMMENT= GNU binary tools for ${TARGET:U}
LIB_DEPENDS+= libgmp.so:math/libgmp
LIB_DEPENDS+= libmpfr.so:math/libmpfr
TARGET= arm-eabi
CONFIGURE_TARGET=#
USES+= gmake tar:xz
GNU_CONFIGURE= yes
CFLAGS+= -I${WRKSRC}/include -I${LOCALBASE}/include
CPPFLAGS+= -I${WRKSRC}/include -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --target=${TARGET}
CONFIGURE_ARGS+= --with-system-zlib
CONFIGURE_ARGS+= --disable-werror
CONFIGURE_ARGS+= --with-gmp=${LOCALBASE}
CONFIGURE_ARGS+= --with-mpfr=${LOCALBASE}
CONFIGURE_ARGS+= --disable-nls
CONFIGURE_ARGS+= --infodir=${PREFIX}/info/${TARGET}
CONFIGURE_ARGS+= --disable-shared
PLIST_SUB+= TARGET=${TARGET}
PLIST_SUB+= VERSION=${PORTVERSION}
.include <bsd.port.pre.mk>
.if (${OSVERSION} > 1100000)
BUILD_DEPENDS+= makeinfo:system/texinfo
.endif
BINS= ar as ld nm objcopy objdump ranlib readelf strip
COMPAT_TARGET1= arm-none-eabi
COMPAT_TARGET2= arm-nuttx-eabi
post-install:
for bin in ${BINS}; do \
cd ${STAGEDIR}${PREFIX}/bin && ${LN} -sf ${TARGET}-$${bin} ${COMPAT_TARGET1}-$${bin}; \
done
for bin in ${BINS}; do \
cd ${STAGEDIR}${PREFIX}/bin && ${LN} -sf ${TARGET}-$${bin} ${COMPAT_TARGET2}-$${bin}; \
done
.include <bsd.port.post.mk>
#EOF