freebsd-ports/lang/gnatdroid-sysroot-x86/Makefile
John Marino f2189c0f29 Rebase gnatdroid to gcc6-aux (6.0), add support for MARSHMELLOW
The gnatdroid cross-compilers (*BSD => Android) were the last two users
of gcc-aux (gcc 4.9 Ada compiler).  They are now based on gcc6-aux.

The Android NDK release 11 just came out with support for Android API 23
(Marshmellow) so now gnatdroid supports it.  I removed API 8 and 9
(Froyo and Gingerbread) from gnatdroid-armv7.  Froyo currently is installed
on less than 0.1% of Android devices, and Gingerbread is dropping under 2%
soon.  Many sysroot distfiles were re-rolled to gain required headers, so
a distfiles subdirectory was added as well.
2016-03-16 14:36:10 +00:00

56 lines
1.3 KiB
Makefile

# Created by: John Marino <marino@FreeBSD.org>
# $FreeBSD$
PORTNAME= sysroot
PORTVERSION= 23
CATEGORIES= lang
MASTER_SITES= http://downloads.dragonlace.net/src/gnatdroid/
PKGNAMEPREFIX= gnatdroid-
PKGNAMESUFFIX= -x86
DISTNAME= android-${API}-x86
DIST_SUBDIR= gnatdroid-ndk11
MAINTAINER= marino@FreeBSD.org
COMMENT= Android sysroots for C/Ada Android cross-compiler (x86)
ONLY_FOR_ARCHS= i386 amd64
USES= tar:bzip2
NO_BUILD= yes
NO_MTREE= yes
PREFIX= ${LOCALBASE}/android-x86
STAT_PATCH= ${FILESDIR}/extra-stat.h
EXTRA_PATCHES= ${STAT_PATCH}
OPTIONS_SINGLE= SG1
OPTIONS_SINGLE_SG1= KITKAT LOLLIPOP MARSH
OPTIONS_DEFAULT= KITKAT
KITKAT_DESC= Android 4.4 - API level 19 - Kitkat
LOLLIPOP_DESC= Android 5.0 - API level 21 - Lollipop
MARSH_DESC= Android 6.0 - API Level 23 - Marshmellow
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MKITKAT}
API= 19
.elif ${PORT_OPTIONS:MLOLLIPOP}
API= 21
STAT_PATCH= ${FILESDIR}/extra-21-stat.h
.elif ${PORT_OPTIONS:MMARSH}
API= 23
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>