freebsd-ports/lang/gnat_util/Makefile
John Marino d0c4d21a83 Change Ada Framework foundation from gcc5-aux to gcc6-aux
GCC 6.1 was released this week.  The Ada Framework in FreeBSD ports has
been based on GCC 5.3 GNAT although GCC 6.x has been supported for awhile
via the ADA_DEFAULT option in make.conf.

Now that GCC 6 has been officially released, switch to it by default.
People can maintain the old foundation by putting "ADA_DEFAULT=5" in
/etc/make.conf.

Libraries built by one GNAT are unusable by another, so almost every Ada
port has been bumped as a result.  Noticable exceptions are dns/ironsides
which fails to build on gcc6 (thus USES=ada:5 is set) and cad/ghdl which
needs additional testing as it may require gcc5 on FreeBSD (DragonFly
uses the LLVM backend only).
2016-04-30 06:44:27 +00:00

51 lines
1.4 KiB
Makefile

# Created by: John Marino <marino@FreeBSD.org>
# $FreeBSD$
PORTNAME= gnat_util
PORTVERSION= ${SNAPSHOT}
PORTREVISION= ${UTIL_PR}
CATEGORIES= lang
MASTER_SITES= GCC/${MS_SUBDIR}
DISTNAME= ${IDENTIFICATION}
MAINTAINER= marino@FreeBSD.org
COMMENT= Library used to build GNAT tools such as ASIS
LICENSE= GPLv3 GPLv3RLE
LICENSE_COMB= multi
USES= ada tar:bzip2
NO_MTREE= yes
DISTINFO_FILE= ${.CURDIR}/../${ADAXX}-aux/distinfo
WRKSRC= ${WRKDIR}/${PORTNAME}
MAKE_ENV= MAKEOBJDIR=${WRKSRC}/obj
.include "${.CURDIR}/Makefile.sources"
.if defined(ADA_DEFAULT) && ${ADA_DEFAULT} == 49
.include "${.CURDIR}/../gcc-aux/Makefile.version"
.elif defined(ADA_DEFAULT) && ${ADA_DEFAULT} == 5
.include "${.CURDIR}/../gcc5-aux/Makefile.version"
.else
.include "${.CURDIR}/../gcc6-aux/Makefile.version"
.endif
post-extract:
@${MKDIR} ${WRKSRC}/obj
.for F in Makefile gnat_util.gpr sdefault_adb.gnat_util osint_scars.c
@${CP} ${FILESDIR}/${F} ${WRKSRC}/
.endfor
.for F in ${GNAT_SRCS}
@${CP} ${WRKDIR}/${DISTNAME}/gcc/ada/${F} ${WRKSRC}/
.endfor
post-install:
# impunit is needed for GPS menus, just provide the source files
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/gcc/ada/impunit.* \
${STAGEDIR}${PREFIX}/include/gnat_util
# gnat_ugn.texi is used to generate gnat_switches.py for GPS
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/gcc/ada/gnat_ugn.texi \
${STAGEDIR}${DATADIR}
.include <bsd.port.mk>