freebsd-ports/lang/gnatdroid-sysroot/Makefile
John Marino 41c5579e9d gnatdroid-sysroot: Add Android API Level 21 (Lollipop)
The latest Android Native Development Kit (NDK) has API Level 21
in it (but not 20, nor 22 or the latest Level 23).  Add this option
to gnatdroid's sysroot port, and change the default API from Jelly Bean 1
(Level 16) to Kitkat (Level 19).

Bump gnatdroid's binutils and gnatdroid itself as a consequence of this
default change.  A new patch had to be added to lang/gcc-aux to handle
the CTYPE changes which haven't made to GCC yet.

Gnatdroid has been testing for building on all API's but not for
functionality beyond Level 16 due to lack of hardware.  I may soon
install an Android emulator to see if that will suffice.
2015-10-19 19:42:53 +00:00

68 lines
1.7 KiB
Makefile

# Created by: John Marino <marino@FreeBSD.org>
# $FreeBSD$
PORTNAME= sysroot
PORTVERSION= 21
CATEGORIES= lang
MASTER_SITES= http://downloads.dragonlace.net/src/
PKGNAMEPREFIX= gnatdroid-
DISTNAME= android-${API}-arm
MAINTAINER= marino@FreeBSD.org
COMMENT= Android sysroots for C/Ada Android cross-compiler
USES= tar:bzip2
NO_BUILD= yes
NO_MTREE= yes
WRKSRC= ${WRKDIR}/android-${API}-arm
PREFIX= ${LOCALBASE}/android
STAT_PATCH= ${FILESDIR}/extra-stat.h
EXTRA_PATCHES= ${STAT_PATCH}
OPTIONS_SINGLE= SG1
OPTIONS_SINGLE_SG1= FROYO GBREAD ICS JBEAN16 JBEAN17 JBEAN18 KITKAT \
LOLLIPOP
OPTIONS_DEFAULT= KITKAT
FROYO_DESC= Android 2.2 - API level 08 - Froyo
GBREAD_DESC= Android 2.3 - API level 09 - Gingerbread 1
ICS_DESC= Android 4.0 - API level 15 - Ice Cream Sandwich 2
JBEAN16_DESC= Android 4.1 - API level 16 - Jelly Bean 1
JBEAN17_DESC= Android 4.2 - API level 17 - Jelly Bean 2
JBEAN18_DESC= Android 4.3 - API level 18 - Jelly Bean 3
KITKAT_DESC= Android 4.4 - API level 19 - Kitkat
LOLLIPOP_DESC= Android 5.0 - API level 21 - Lollipop
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MFROYO}
API= 8
.elif ${PORT_OPTIONS:MGBREAD}
API= 9
.elif ${PORT_OPTIONS:MICS}
API= 15
.elif ${PORT_OPTIONS:MJBEAN16}
API= 16
.elif ${PORT_OPTIONS:MJBEAN17}
API= 17
.elif ${PORT_OPTIONS:MJBEAN18}
API= 18
.elif ${PORT_OPTIONS:MKITKAT}
API= 19
.elif ${PORT_OPTIONS:MLOLLIPOP}
API= 21
STAT_PATCH= ${FILESDIR}/extra-21-stat.h
.else
IGNORE= the API option is improperly selected
.endif
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}
(cd ${WRKSRC} && ${COPYTREE_SHARE} usr ${STAGEDIR}${PREFIX})
post-install:
@(cd ${STAGEDIR}${PREFIX}; ${FIND} usr \( -type f -or -type l \) | \
${SORT} >> ${TMPPLIST})
.include <bsd.port.mk>