Files
bsdports/devel/arm-eabi-binutils/Makefile
2025-08-25 16:16:32 +02:00

46 lines
1.0 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
.include <bsd.port.post.mk>
#EOF