blob: f3928d099f7866c574e93afa6e6fa00072847d4c (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Created by: John Marino <marino@FreeBSD.org>
# $FreeBSD$
PORTNAME= binutils
PORTVERSION= 2.26.1
CATEGORIES= lang
MASTER_SITES= SOURCEWARE/binutils/releases
PKGNAMEPREFIX= gnatdroid-
MAINTAINER?= marino@FreeBSD.org
COMMENT?= Infrastructure for C/Ada Android cross-compiler (ARMv7)
LICENSE= GPLv3 LGPL3
LICENSE_COMB= multi
BUILD_DEPENDS= ${SYSROOT}>=19:lang/${SYSROOT} \
${LOCALBASE}/lib/libgmp.so:math/gmp \
${LOCALBASE}/lib/libmpfr.so:math/mpfr
RUN_DEPENDS:= ${BUILD_DEPENDS}
USES= gmake tar:bzip2
HAS_CONFIGURE= yes
NO_MTREE= yes
NO_LICENSES_INSTALL= yes
WRKSRC= ${WRKDIR}/binutils-${PORTVERSION}
PREFIX?= ${LOCALBASE}/android
BRANCH2?= ARMv7
BR2_PREFIX= ${PREFIX}/${BRANCH2}
XCCTARGET?= arm-aux-linux-androideabi
SYSROOT?= gnatdroid-sysroot
PLIST_SUB+= TARGET="${XCCTARGET}"
PLIST_SUB+= BRANCH2="${BRANCH2}"
CONFIGURE_ARGS+= --target=${XCCTARGET}
CONFIGURE_ARGS+= --prefix=${BR2_PREFIX}
CONFIGURE_ARGS+= --with-sysroot=${PREFIX}
CONFIGURE_ARGS+= --with-gmp=${LOCALBASE}
CONFIGURE_ARGS+= --with-mpfr=${LOCALBASE}
CONFIGURE_ARGS+= --disable-werror
CONFIGURE_ARGS+= --disable-nls
post-install:
# Move the unwanted documentation out of the stage directory
${MV} ${STAGEDIR}${BR2_PREFIX}/share ${WRKDIR}
.include <bsd.port.mk>
|