blob: 1e09a4e1f2529fbd5a3923616869b154ccc4b798 (
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
|
PORTNAME= newlib
PORTVERSION= 2.4.0
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ftp://sources.redhat.com/pub/${PORTNAME}/ \
SOURCEWARE/${PORTNAME}
PKGNAMEPREFIX= ${NEWLIB_TARGET}-
MAINTAINER= kevans@FreeBSD.org
COMMENT= Newlib distribution for ${NEWLIB_TARGET} targets
BUILD_DEPENDS+= ${NEWLIB_TARGET}-ar:devel/binutils@${NEWLIB_TARGET:C/-/_/g} \
${NEWLIB_TARGET}-as:devel/binutils@${NEWLIB_TARGET:C/-/_/g} \
${NEWLIB_TARGET}-ld:devel/binutils@${NEWLIB_TARGET:C/-/_/g} \
${LOCALBASE}/bin/${NEWLIB_TARGET}-gcc:devel/${NEWLIB_TARGET}-gcc
NEWLIB_TARGET?= arm-none-eabi
USES= gmake makeinfo
HAS_CONFIGURE= yes
CONFIGURE_ARGS+= --prefix=${PREFIX} --target="${NEWLIB_TARGET}" --disable-newlib-supplied-syscalls
# Disable installation of .info files and fix includedir reference.
post-patch:
@${REINPLACE_CMD} -E 's/^(install.*:.*)install-info(.*)/\1\2/' ${WRKSRC}/etc/Makefile.in
.include <bsd.port.mk>
|